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

gh-112844: Fix xz CPE identifier #117656

Merged
merged 1 commit into from
Apr 16, 2024
Merged

gh-112844: Fix xz CPE identifier #117656

merged 1 commit into from
Apr 16, 2024

Conversation

sethmlarson
Copy link
Contributor

@sethmlarson sethmlarson commented Apr 8, 2024

Previous CPE identifier was for an xz Go package, not for the upstream package (isn't CPE fun?) Confirmed that this CPE works to detect the recent backdoor CVE by manually faking the metadata for 5.6.1 and running Grype. Will need a backport to 3.12 as well.

@zooba
Copy link
Member

zooba commented Apr 9, 2024

LGTM. How do we interpret that reference? Since tukaani isn't literally the name of the GitHub org, I'm not quite sure where I should look to find it.

@sethmlarson
Copy link
Contributor Author

@zooba You have to go the the CVE Dictionary and search it or download the entire dataset. They helpfully disallow queries under 3 characters so "xz" won't do, and this caused me to not find the right CPE. Searching for "xz tukaani" lets you find the right one and confirm the linkage to CVE-2024-3094 (xz-utils backdoor).

@zooba
Copy link
Member

zooba commented Apr 9, 2024

I just searched the whole string as shown in the file and it found the right one (not the one with the most recent CVE, of course). So that's good to know.

@zooba zooba merged commit d70ee13 into python:main Apr 16, 2024
31 checks passed
@zooba zooba added the needs backport to 3.12 bug and security fixes label Apr 16, 2024
@miss-islington-app
Copy link

Thanks @sethmlarson for the PR, and @zooba for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Apr 16, 2024
(cherry picked from commit d70ee13)

Co-authored-by: Seth Michael Larson <seth@python.org>
@bedevere-app
Copy link

bedevere-app bot commented Apr 16, 2024

GH-117951 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 bug and security fixes label Apr 16, 2024
zooba pushed a commit that referenced this pull request Apr 16, 2024
(cherry picked from commit d70ee13)

Co-authored-by: Seth Michael Larson <seth@python.org>
@sethmlarson
Copy link
Contributor Author

Thanks @zooba! 🙏

diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.12 bugs and security fixes skip news type-security A security issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants