Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update go dependency to fix CVE-2022-1996 #328

Merged
merged 1 commit into from
Feb 16, 2023

Conversation

ckadner
Copy link
Member

@ckadner ckadner commented Feb 16, 2023

Motivation

Address a security vulnerability in old version of the go-restful library

Modifications

Update go dependency

Result

No longer vulnerable to the "Authorization Bypass Through User-Controlled Key".

Related Issues:

https://github.com/kserve/modelmesh-serving/security/dependabot/4
emicklei/go-restful#489
https://www.cve.org/CVERecord?id=CVE-2022-1996
https://huntr.dev/bounties/be837427-415c-4d8c-808b-62ce20aa84f1/

Signed-off-by: Christian Kadner <ckadner@us.ibm.com>

// Update prometheus client to avoid CVE-2022-21698
github.com/prometheus/client_golang => github.com/prometheus/client_golang v1.12.1

go.uber.org/atomic => github.com/uber-go/atomic v1.9.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ckadner presumably this is no longer needed (it was there originally to address an earlier CVE I think)

Copy link
Member Author

@ckadner ckadner Feb 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, obsolete, since the same version is already being pulled as a direct dependency:
https://github.com/kserve/modelmesh-serving/blame/main/go.mod#L23

Being used here:
https://github.com/kserve/modelmesh-serving/blame/main/pkg/mmesh/modelmesh_service.go#L27

$ cat go.mod | grep "atomic\|replace\|require"

require (
        go.uber.org/atomic v1.9.0
require (
replace (
        go.uber.org/atomic => github.com/uber-go/atomic v1.9.0

@kserve-oss-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ckadner, njhill

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@njhill
Copy link
Contributor

njhill commented Feb 16, 2023

/lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants