CVE-2024-35192 Trivy possibly leaks registry credential when scanning images from malicious registries
MediumCVSS 5.5
EPSS 0.19%
- Published
- Updated
- Exploit status
- No public exploit known
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 products
| Product | Affected versions | Fixed in |
|---|---|---|
| aquasecurity trivy(Go) | < 0.51.2 | 0.51.2 |
| aquasecurity trivy | = < 0.51.2 | No fix listed |
References
- https://github.com/aquasecurity/trivy/security/advisories/GHSA-xcq4-m2r3-cmrj vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/aquasecurity/trivy/commit/e7f14f729de259551203f313e57d2d9d3aa2ff87 patch
- github.com product
- github.com