Medium severity · published May 20, 2024
CVE-2024-35192
Trivy possibly leaks registry credential when scanning images from malicious registries
5.5
CVSS
0.2%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N
Attack vector
Local
Complexity
High
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
None
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 9% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
TR
trivy · aquasecurity
< 0.51.2 · source: vendor
Affected product
TR
trivy
aquasecurity
More from trivy
8.8
CVE-2026-33634
Trivy ecosystem supply chain briefly compromised
7.5
CVE-2026-55092
Trivy: Path traversal via a crafted vulnerability database or other downloaded artifacts
6.8
CVE-2026-63328
Trivy: Path Traversal in Trivy Plugin Manager Allows Arbitrary File Write
6.5
CVE-2026-54448
Trivy: Helm chart tar bomb causes OOM via unbounded io.ReadAll in parser