Skip to content

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
@zooba zooba added the needs backport to 3.12 only 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 <[email protected]>
@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 only 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 <[email protected]>
@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 only security fixes skip news type-security A security issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants