-
Notifications
You must be signed in to change notification settings - Fork 571
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
Grype is not recognizing python-certifi is patched for GHSA-43fp-rhv2-5gv8 #1172
Comments
Please note that this is now also being called out for CVE-2022-23491, and continues to be a false positive. |
Hi @ssullivan, thank you for reporting this and for the detailed info. I've reproduced it on my side and we will take a closer look as soon as we can. |
I just did a little digging here, and I think I see why
So even in So it seems like I'm open to suggestions as to how |
@willmurphyscode - it's the same as with #1034 and #986 - we really just need to implement a PEP 440 version comparer in grype - #986 (comment) |
What happened:
Grype is detecting that I have an unpatched version of certifi when it is patched. I've seen Grype
report this error on multiple platforms and operating systems. The following logs were generated on a Windows 10 system.
What you expected to happen:
I expected the CVE to not show up in the Grype output.
How to reproduce it (as minimally and precisely as possible):
Test 1
I created a Dockerfile like the following
docker build . -t example:latest
Test 2
I noticed that the python certifi library has defined their version as 2022.12.07 in their
init.py file here like this
I decided to create a new Dockerfile like the following to install from source since 2022.12.07 is not
on PYPI and the source repo has the version that Grype says the CVE is patched.
and got the following output
pip is indicating that the version installed is
I believe this is because under the hood distutils is parsing the version and converting the
07
to7
Grype still says that the version of certifi has a CVE despite installing from source
Anything else we need to know?:
Environment:
grype version
:cat /etc/os-release
or similar):The text was updated successfully, but these errors were encountered: