Live threats

All CVEs / aquasecurity

CVE-2024-35192aquasecurity trivy

Medium 5.5

Priority
33
CVSS 3.1
5.5
EPSS
0.3%
probability of exploitation in 30 days · percentile 12
Auth required
Yes
Published
May 20, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-522
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N

What happens

Trivy is a security scanner. Prior to 0.51.2, if a malicious actor is able to trigger Trivy to scan container images from a crafted malicious registry, it could result in the leakage of credentials for legitimate registries such as AWS Elastic Container Registry (ECR), Google Cloud Artifact/Container Registry, or Azure Container Registry (ACR). These tokens can then be used to push/pull images from those registries to which the identity/user running Trivy has access. Systems are not affected if the default credential provider chain is unable to obtain valid credentials. This vulnerability only applies when scanning container images directly from a registry. This vulnerability is fixed in 0.51.2.

Original NVD text.

What to do

  1. Apply the vendor's security update for trivy.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/aquasecurity/trivy < 0.51.2 0.51.2 go get github.com/aquasecurity/trivy@v0.51.2
Go github.com/aquasecurity/trivy < 0.51.2 0.51.2 go get github.com/aquasecurity/trivy@v0.51.2

Per OSV / GitHub Advisories (GHSA-xcq4-m2r3-cmrj, GO-2024-2870). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.