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

Drastically different reports generated for nginx:latest image in span of 1 day. #1537

Closed
chitti-intel opened this issue Oct 3, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@chitti-intel
Copy link

What happened:
Scan result for "nginx:latest" returns 0 vulnerability on running grype with "GRYPE_DB_AUTO_UPDATE=false" and using "vulnerability-db_v5_2023-09-29T01:24:33Z_fa7e2e17bf5b75256d23.tar.gz".

grype-nginx-sep-29-no-vuln

On switching to "vulnerability-db_v5_2023-09-30T01:22:53Z_5f6448225b9e81917b9f.tar.gz" grype reported vulnerabilities for nginx:latest.
grype-nginx-sep-30-vuln-fixed

What you expected to happen:

If the image's digest was the same and the Grype DBs were built a day apart, the reports shouldn't have varied this drastically unless all the CVEs were fixed or added within that day.

How to reproduce it (as minimally and precisely as possible):

  1. Turn off auto grype db update by setting "GRYPE_DB_AUTO_UPDATE=false"
  2. Download "vulnerability-db_v5_2023-09-29T01:24:33Z_fa7e2e17bf5b75256d23.tar.gz" grype db.
  3. Import the db by running "grype db import vulnerability-db_v5_2023-09-29T01:24:33Z_fa7e2e17bf5b75256d23.tar.gz "
  4. Scan nginx:latest image "grype nginx:latest"

Anything else we should know?:

I have been using the nginx:latest image to test the scanner for a few months. This behavior was observed only for this Grype db built on September 29th 2023. All the previous scans have reported vulnerabilities.

Environment:

  • Output of grype version:
    Application: grype
    Version: 0.69.1
    BuildDate: 2023-09-27T16:51:03Z
    GitCommit: dec5636
    GitDescription: v0.69.1
    Platform: linux/amd64
    GoVersion: go1.21.1
    Compiler: gc
    Syft Version: v0.92.0
    Supported DB Schema: 5

  • OS (e.g: cat /etc/os-release or similar):
    PRETTY_NAME="Ubuntu 22.04.3 LTS"
    NAME="Ubuntu"
    VERSION_ID="22.04"
    VERSION="22.04.3 LTS (Jammy Jellyfish)"
    VERSION_CODENAME=jammy

@chitti-intel chitti-intel added the bug Something isn't working label Oct 3, 2023
@wagoodman
Copy link
Contributor

@chitti-intel thanks for the issue and the details. We merged a PR upstream in vunnel that ended up breaking the debian provider from the 27th through the 29th. We got the fix in on the 29th and rebuilt/republished. We have some future changes inbound in vunnel and the shared vulnerability-match-label data we use in our quality gates to protect against these kinds of regressions in the future. I'll close this for now since the data issue has been resolved, but feel free to shout out more questions about this.

@wagoodman wagoodman closed this as not planned Won't fix, can't repro, duplicate, stale Oct 4, 2023
@github-project-automation github-project-automation bot moved this to Done in OSS Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants