-
Notifications
You must be signed in to change notification settings - Fork 580
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
PyPI Kubernetes library generating invalid CPE kubernetes:kubernetes #2005
Comments
Examples of this include flagging:
With a representative CPE list in scan results of: "cpes": [
"cpe:2.3:a:kubernetes_project:python-kubernetes:20.13.0:*:*:*:*:*:*:*",
"cpe:2.3:a:kubernetes_project:python_kubernetes:20.13.0:*:*:*:*:*:*:*",
"cpe:2.3:a:kubernetesproject:python-kubernetes:20.13.0:*:*:*:*:*:*:*",
"cpe:2.3:a:kubernetesproject:python_kubernetes:20.13.0:*:*:*:*:*:*:*",
"cpe:2.3:a:python-kubernetes:python-kubernetes:20.13.0:*:*:*:*:*:*:*",
"cpe:2.3:a:python-kubernetes:python_kubernetes:20.13.0:*:*:*:*:*:*:*",
"cpe:2.3:a:python_kubernetes:python-kubernetes:20.13.0:*:*:*:*:*:*:*",
"cpe:2.3:a:python_kubernetes:python_kubernetes:20.13.0:*:*:*:*:*:*:*",
"cpe:2.3:a:kubernetes_project:kubernetes:20.13.0:*:*:*:*:*:*:*",
"cpe:2.3:a:kubernetes:python-kubernetes:20.13.0:*:*:*:*:*:*:*",
"cpe:2.3:a:kubernetes:python_kubernetes:20.13.0:*:*:*:*:*:*:*",
"cpe:2.3:a:kubernetesproject:kubernetes:20.13.0:*:*:*:*:*:*:*",
"cpe:2.3:a:python-kubernetes:kubernetes:20.13.0:*:*:*:*:*:*:*",
"cpe:2.3:a:python_kubernetes:kubernetes:20.13.0:*:*:*:*:*:*:*",
"cpe:2.3:a:python:python-kubernetes:20.13.0:*:*:*:*:*:*:*",
"cpe:2.3:a:python:python_kubernetes:20.13.0:*:*:*:*:*:*:*",
"cpe:2.3:a:kubernetes:kubernetes:20.13.0:*:*:*:*:*:*:*",
"cpe:2.3:a:python:kubernetes:20.13.0:*:*:*:*:*:*:*"
], |
Thanks for the additional details, @jgwright-eitccorp. I think we understand what is going on here: our CPE generation is broad, as it needs to be, but this does generate false positives. We are working on some alternative solutions that should greatly improve this situation. Please stay tuned! |
It looks like this was fixed by: #1921 🎉 |
What happened:
Grype is shadowing the Kubernetes's vulnerabilities over the pypi kubernetes package
What you expected to happen:
No vulnerabilities should be reported since the package isn't vulnerable.
How to reproduce it (as minimally and precisely as possible):
File
Command
Output
Anything else we need to know?:
Very similar to anchore/grype#800
Environment:
grype version
:0.47.0
cat /etc/os-release
or similar):The text was updated successfully, but these errors were encountered: