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(snap): build snap with Go 1.22 to fix CVE-2024-24790 #448

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

cjdcordeiro
Copy link
Collaborator

Although not shown in the CI (because Trivy is being run with trivy fs, which doesn't consider the Pebble binary), there currently is a reported CVE in the Pebble snap (CVE-2024-24790).

This CVE seems to have been fixed on newer versions of Go, but we are still using Go 1.20 to build the Pebble snap.

This PR bumps this build dependency to Go 1.22.

@cjdcordeiro cjdcordeiro added the Simple Nice for a quick look on a minute or two label Jul 12, 2024
@benhoyt
Copy link
Contributor

benhoyt commented Jul 15, 2024

Though I believe this CVE doesn't actually affect Pebble, I have no problems merging this -- thanks.

However, I also need to fix the Snap versioning before this goes out to the snap. Currently the (recent) snap versions are showing as hex commit hashes rather than version numbers (even for releases). I'll work on figuring this out today.

@benhoyt benhoyt changed the title fix(snap): use Go 1.22 to fix CVE-2024-24790 fix(snap): build snap with Go 1.22 to fix CVE-2024-24790 Jul 15, 2024
@benhoyt benhoyt merged commit 4e6e89c into canonical:master Jul 15, 2024
16 checks passed
benhoyt pushed a commit that referenced this pull request Jul 15, 2024
Although not shown in the CI (because Trivy is being run with `trivy
fs`, which [doesn't consider the Pebble
binary](https://aquasecurity.github.io/trivy/v0.24.4/vulnerability/detection/language/)),
there currently is a reported CVE in the Pebble snap (CVE-2024-24790).

This CVE seems to have been fixed on newer versions of Go, but we are
still using Go 1.20 to build the Pebble snap.

This PR bumps this build dependency to Go 1.22.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Simple Nice for a quick look on a minute or two
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants