-
Notifications
You must be signed in to change notification settings - Fork 60
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(deps): Update Go deps with critical/high CVEs #101
Draft
hairyhenderson
wants to merge
1
commit into
docker-library:master
Choose a base branch
from
hairyhenderson:update-go-deps-for-vulns
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
chore(deps): Update Go deps with critical/high CVEs #101
hairyhenderson
wants to merge
1
commit into
docker-library:master
from
hairyhenderson:update-go-deps-for-vulns
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Dave Henderson <[email protected]>
Have you checked whether any of these apply to our actual codepaths via |
Checking a freshly built root@4283178c24dd:/app# govulncheck -mode=binary ./bin/bashbrew
=== Symbol Results ===
Vulnerability #1: GO-2024-2887
Unexpected behavior from Is methods for IPv4-mapped IPv6 addresses in
net/netip
More info: https://pkg.go.dev/vuln/GO-2024-2887
Standard library
Found in: net/[email protected]
Fixed in: net/[email protected]
Vulnerable symbols found:
#1: netip.Addr.IsGlobalUnicast
#2: netip.Addr.IsInterfaceLocalMulticast
#3: netip.Addr.IsLinkLocalMulticast
#4: netip.Addr.IsLoopback
#5: netip.Addr.IsMulticast
Use '-show traces' to see the other 1 found symbols
Vulnerability #2: GO-2024-2687
HTTP/2 CONTINUATION flood in net/http
More info: https://pkg.go.dev/vuln/GO-2024-2687
Module: golang.org/x/net
Found in: golang.org/x/[email protected]
Fixed in: golang.org/x/[email protected]
Vulnerable symbols found:
#1: http2.ConnectionError.Error
#2: http2.ErrCode.String
#3: http2.FrameHeader.String
#4: http2.FrameType.String
#5: http2.Framer.ReadFrame
Use '-show traces' to see the other 22 found symbols
Standard library
Found in: net/[email protected]
Fixed in: net/[email protected]
Vulnerable symbols found:
#1: http.CanonicalHeaderKey
#2: http.Client.CloseIdleConnections
#3: http.Client.Do
#4: http.Client.Get
#5: http.Client.Head
Use '-show traces' to see the other 108 found symbols
Vulnerability #3: GO-2024-2610
Errors returned from JSON marshaling may break template escaping in
html/template
More info: https://pkg.go.dev/vuln/GO-2024-2610
Standard library
Found in: html/[email protected]
Fixed in: html/[email protected]
Vulnerable symbols found:
#1: template.Template.Execute
#2: template.Template.ExecuteTemplate
Vulnerability #4: GO-2024-2600
Incorrect forwarding of sensitive headers and cookies on HTTP redirect in
net/http
More info: https://pkg.go.dev/vuln/GO-2024-2600
Standard library
Found in: net/[email protected]
Fixed in: net/[email protected]
Vulnerable symbols found:
#1: http.Client.Do
#2: http.Client.Get
#3: http.Client.Head
#4: http.Client.Post
#5: http.Client.PostForm
Use '-show traces' to see the other 1 found symbols
Vulnerability #5: GO-2024-2599
Memory exhaustion in multipart form parsing in net/textproto and net/http
More info: https://pkg.go.dev/vuln/GO-2024-2599
Standard library
Found in: net/[email protected]
Fixed in: net/[email protected]
Vulnerable symbols found:
#1: textproto.Reader.ReadLine
#2: textproto.Reader.ReadMIMEHeader
Vulnerability #6: GO-2024-2598
Verify panics on certificates with an unknown public key algorithm in
crypto/x509
More info: https://pkg.go.dev/vuln/GO-2024-2598
Standard library
Found in: crypto/[email protected]
Fixed in: crypto/[email protected]
Vulnerable symbols found:
#1: x509.Certificate.Verify
Vulnerability #7: GO-2024-2466
Denial of service in github.com/go-git/go-git/v5 and
gopkg.in/src-d/go-git.v4
More info: https://pkg.go.dev/vuln/GO-2024-2466
Module: github.com/go-git/go-git/v5
Found in: github.com/go-git/go-git/[email protected]
Fixed in: github.com/go-git/go-git/[email protected]
Vulnerable symbols found:
#1: config.Branch.Validate
#2: config.Config.Unmarshal
#3: config.Config.Validate
#4: config.LoadConfig
#5: config.ReadConfig
Use '-show traces' to see the other 30 found symbols
Vulnerability #8: GO-2024-2456
Path traversal and RCE in github.com/go-git/go-git/v5 and
gopkg.in/src-d/go-git.v4
More info: https://pkg.go.dev/vuln/GO-2024-2456
Module: github.com/go-git/go-git/v5
Found in: github.com/go-git/go-git/[email protected]
Fixed in: github.com/go-git/go-git/[email protected]
Vulnerable symbols found:
#1: config.Branch.Validate
#2: config.Config.Unmarshal
#3: config.Config.Validate
#4: config.LoadConfig
#5: config.ReadConfig
Use '-show traces' to see the other 30 found symbols
Vulnerability #9: GO-2023-2402
Man-in-the-middle attacker can compromise integrity of secure channel in
golang.org/x/crypto
More info: https://pkg.go.dev/vuln/GO-2023-2402
Module: golang.org/x/crypto
Found in: golang.org/x/[email protected]
Fixed in: golang.org/x/[email protected]
Vulnerable symbols found:
#1: ssh.Client.Dial
#2: ssh.Client.DialTCP
#3: ssh.Client.Listen
#4: ssh.Client.ListenTCP
#5: ssh.Client.ListenUnix
Use '-show traces' to see the other 43 found symbols
Vulnerability #10: GO-2023-2153
Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc
More info: https://pkg.go.dev/vuln/GO-2023-2153
Module: google.golang.org/grpc
Found in: google.golang.org/[email protected]
Fixed in: google.golang.org/[email protected]
Vulnerable symbols found:
#1: grpc.Server.Serve
#2: transport.NewServerTransport
Your code is affected by 10 vulnerabilities from 3 modules and the Go standard library.
This scan also found 2 vulnerabilities in packages you import and 6
vulnerabilities in modules you require, but your code doesn't appear to call
these vulnerabilities.
Use '-show verbose' for more details. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note: this depends on #100 being merged first
There are a number of outdated dependencies with high and critical CVEs, which trip up scanners, not to mention the potential risk. I've scanned the
go.mod
with Trivy and updated affected packages until it scans clean. Here's the initial scan: