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

Fix CVE-2025-22870 #2012

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

masap
Copy link
Contributor

@masap masap commented Mar 14, 2025

What this PR does / why we need it:
trivy reports trailing CVE. This PR fixes it.

sonobuoy (gobinary)

Total: 1 (UNKNOWN: 0, LOW: 0, MEDIUM: 1, HIGH: 0, CRITICAL: 0)

┌──────────────────┬────────────────┬──────────┬────────┬───────────────────┬───────────────┬─────────────────────────────────────────────────────────┐
│     Library      │ Vulnerability  │ Severity │ Status │ Installed Version │ Fixed Version │                          Title                          │
├──────────────────┼────────────────┼──────────┼────────┼───────────────────┼───────────────┼─────────────────────────────────────────────────────────┤
│ golang.org/x/net │ CVE-2025-22870 │ MEDIUM   │ fixed  │ v0.33.0           │ 0.36.0        │ Matching of hosts against proxy patterns can improperly │
│                  │                │          │        │                   │               │ treat an IPv6 ...                                       │
│                  │                │          │        │                   │               │ https://avd.aquasec.com/nvd/cve-2025-22870              │
└──────────────────┴────────────────┴──────────┴────────┴───────────────────┴───────────────┴─────────────────────────────────────────────────────────┘

Which issue(s) this PR fixes

  • Fixes #

Special notes for your reviewer:

Release note:

Fix CVE-2025-22870

@masap
Copy link
Contributor Author

masap commented Mar 18, 2025

@lubronzhan Could you take a look this PR when you have a time?

go.mod Outdated
@@ -1,6 +1,8 @@
module github.com/vmware-tanzu/sonobuoy

go 1.23
go 1.23.0
Copy link
Collaborator

Choose a reason for hiding this comment

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

I remember there is a golang related CVE on 1.23.0, could you update this to 1.23.1? Thanks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for comment. I updated it to 1.23.2.

@lubronzhan
Copy link
Collaborator

LGTM! Just a minor comment

We could also consider adding this github workflow so we don't have to manually patch CVEs https://github.com/projectcontour/contour/blob/main/.github/workflows/trivy-scan.yaml

sonobuoy (gobinary)

Total: 1 (UNKNOWN: 0, LOW: 0, MEDIUM: 1, HIGH: 0, CRITICAL: 0)

┌──────────────────┬────────────────┬──────────┬────────┬───────────────────┬───────────────┬─────────────────────────────────────────────────────────┐
│     Library      │ Vulnerability  │ Severity │ Status │ Installed Version │ Fixed Version │                          Title                          │
├──────────────────┼────────────────┼──────────┼────────┼───────────────────┼───────────────┼─────────────────────────────────────────────────────────┤
│ golang.org/x/net │ CVE-2025-22870 │ MEDIUM   │ fixed  │ v0.33.0           │ 0.36.0        │ Matching of hosts against proxy patterns can improperly │
│                  │                │          │        │                   │               │ treat an IPv6 ...                                       │
│                  │                │          │        │                   │               │ https://avd.aquasec.com/nvd/cve-2025-22870              │
└──────────────────┴────────────────┴──────────┴────────┴───────────────────┴───────────────┴─────────────────────────────────────────────────────────┘

Signed-off-by: Masashi Honma <[email protected]>
@masap masap force-pushed the fix-cve-2025-22870 branch from eb2bb08 to e315b84 Compare March 19, 2025 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants