[go: up one dir, main page]

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

fix(apk): find secdb entries for origin packages #1602

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

luhring
Copy link
Contributor
@luhring luhring commented Nov 13, 2023

This fixes a bug in Grype's APK matching logic (affecting Alpine and Wolfi) where if there was an NVD match to a package, Grype wasn't doing the resolution-to-origin-package to find relevant data in the secdb for the match. This created a case where Grype would show a distro package as vulnerable even though the distro had marked the package as fixed or a false positive already.

This PR adds the missing check to the matcher and adds a unit test to cover this case.

@luhring
Copy link
Contributor Author
luhring commented Aug 23, 2024

@wagoodman Just hit this bug again (which produces false positives) — maybe we could try to land this? I can add a test to matcher_test.go and then anything else? Done! ✅

Signed-off-by: Dan Luhring <dluhring@chainguard.dev>
@luhring luhring marked this pull request as ready for review September 15, 2024 15:24
@wagoodman wagoodman added the bug Something isn't working label Sep 16, 2024
@wagoodman wagoodman merged commit c40aab2 into anchore:main Sep 16, 2024
10 checks passed
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
None yet
Development

Successfully merging this pull request may close these issues.

2 participants