Gobinary scan gives inconsistent results on image #6669
Closed
FlorisFeddema
started this conversation in
Bugs
Replies: 2 comments 3 replies
-
@DmitriyLewen Can you please take a look? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello @FlorisFeddema I discovered the reason for this behavior. Regards, Dmitriy |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Our pipeline is inconsistent with the CVE results it generates.
When we scan quay.io/argoproj/argocd:v2.11.0 we sometimes get more vulnerabilities in usr/local/bin/argocd than the next time it runs. This means we can not correctly evaluate which CVE's are present on the product.
An example of a package showing this weird behaviour:
VulnerabilityID: CVE-2022-29165
PkgName: github.com/argoproj/argo-cd/v2
PkgIdentifier: { "PURL": "pkg:golang/github.com/argoproj/argo-cd/[email protected]", "UID": "6b7f96766b3680e6" }
InstalledVersion: v0.26.11
FixedVersion: 2.3.4, 2.2.9, 2.1.15
This is a CVE from an ArgoCD version in 2022 but it is showing in the latest ArgoCD image.
When we compare the output of 2 runs (one with the old vulnerabilities and one without) there are no differences in trivyDB size, used trivy or argocd image sha.
While we run this in our Azure Devops pipelines it happens a lot, if we try to run the trivy command locally it does not happen.
Desired Behavior
It should not show the old ArgoCD vulnerabilities and be consistent over each run.
Actual Behavior
Every other pipeline run it deletes or adds the same old ArgoCD CVE's. We only see this behaviour happen with pkg:golang/github.com/argoproj/argo-cd/[email protected], while this version of the package should not be available on the scanned image.
Reproduction Steps
1. Scan quay.io/argoproj/argocd:v2.11.0 2. Save results 3. Scan quay.io/argoproj/argocd:v2.11.0 again 4. Save results 5. Compare results and see the difference in vulnerabilities.
Target
Container Image
Scanner
Vulnerability
Output Format
JSON
Mode
Standalone
Debug Output
Operating System
ubuntu 22.04
Version
Checklist
trivy image --reset
Beta Was this translation helpful? Give feedback.
All reactions