CVE-2024-35192 Trivy possibly leaks registry credential when scanning images from malicious registries
Trivy may leak cloud registry credentials when scanning images from malicious registries, allowing attackers to access legitimate container repositories.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-35192?
CVE-2024-35192 is a medium-severity vulnerability in aquasecurity trivy, published on 20 May 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-522
Which versions are affected by CVE-2024-35192?
3 open source packages ship an affected version, including github.com/aquasecurity/trivy.
| Package | Affected | Fixed in |
|---|---|---|
github.com/aquasecurity/trivy Go | All versions | 0.51.2 |
github.com/aquasecurity/trivy Go | All versions | 0.51.2 |
github.com/aquasecurity/trivy Go | All versions | 0.51.2 |
Linux distribution packages (1)
trivy openSUSE:Tumbleweed | All versions | 0.52.0-1.1 |
How do I fix CVE-2024-35192?
Upgrade github.com/aquasecurity/trivy to 0.51.2 or later.
Is CVE-2024-35192 being exploited?
There is no known exploitation of CVE-2024-35192 in the wild and no public exploit code.
Sources
Also known as GHSA-xcq4-m2r3-cmrj, GO-2024-2870, openSUSE-SU-2024:14030-1.