Vulnerability · Published May 20, 2024 · Assigned by GitHub_M
CVE-2024-35192Trivy possibly leaks registry credential when scanning images from malicious registries
Medium 5.5
In plain English
A medium-severity security flaw in trivy from aquasecurity. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 9% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/aquasecurity/trivy | 0.51.2 | GHSA-xcq4-m2r3-cmrj |
| Go | github.com/aquasecurity/trivy | 0.51.2 | GO-2024-2870 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| aquasecurity | trivy | < 0.51.2 |
Weakness: CWE-522 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N