CVE-2024-35192
Trivy possibly leaks registry credential when scanning images from malicious registries
Reported by github_m · Published May 20, 2024
github.com/aquasecurity/trivy is fixed in 0.51.2 (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/aquasecurity/trivy | Go Modules | 0.51.2 |
| trivy | DHI | 0.51.2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| aquasecurity | trivy | < 0.51.2 |
| aquasecurity | trivy | 0 |
| chainguard | zot | 0 |
| wolfi | kubescape | 0 |
| wolfi | k8sgpt | 0 |
| chainguard | kubescape | 0 |
| wolfi | zot | 0 |
| chainguard | k8sgpt | 0 |
| github.com | aquasecurity/trivy | 0 |
Timeline
- May 20, 2024 CVE Published
- May 21, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (8 in total, the first dated here)
- Jan 10, 2026 Security Advisory (3 in total, the first dated here)
- Mar 1, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-35192
vulnetix vdb fixes CVE-2024-35192
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-35192/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/aquasecurity/trivy/security/advisories/GHSA-xcq4-m2r3-cmrj x_refsource_CONFIRM
- https://github.com/aquasecurity/trivy/commit/e7f14f729de259551203f313e57d2d9d3aa2ff87 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2024-35192 advisory
- https://github.com/advisories/GHSA-xcq4-m2r3-cmrj advisory
- https://github.com/aquasecurity/trivy url