Trivy possibly leaks registry credential when scanning images from malicious registries
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-522.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Aquasecurity | trivy | before 0.51.2 | 0.51.2 | Patch available | CNA |
| — | github.com/aquasecurity/trivy (Go) | before 0.51.2 | 0.51.2 | Patch available | GHSA-xcq4-m2r3-cmrj |
- trivy VendorAquasecurity Affected before 0.51.2 Fixed in 0.51.2 Patch available CNA
- github.com/aquasecurity/trivy (Go) Vendor— Affected before 0.51.2 Fixed in 0.51.2 Patch available GHSA-xcq4-m2r3-cmrj
Remediation
- Fix · CNA trivy (aquasecurity) Fixed in 0.51.2
- Fix · GHSA-xcq4-m2r3-cmrj github.com/aquasecurity/trivy (Go) Fixed in 0.51.2 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2024-35192
- 2026-10-03 Alias added: GHSA-xcq4-m2r3-cmrj
References
More Aquasecurity vulnerabilities
- TI-2026-26015 Trivy ecosystem supply chain briefly compromised KEVCVSS 4.0CRITICAL 9.4
- TI-2026-39311 Trivy: Helm chart tar bomb causes OOM via unbounded io.ReadAll in parser CVSS 4.0MEDIUM 6.9
- TI-2026-22633 Trivy Vulnerability Scanner: Unauthorized AI Agent Execution Code Included in OpenVSX Extension Release CVSS 4.0CRITICAL 10.0
- TI-2026-21180 Trivy Action has a script injection via sourced env file in composite action CVSS 3.1HIGH 8.1
- TI-2026-39796 Trivy: Path traversal via a crafted vulnerability database or other downloaded artifacts CVSS 4.0HIGH 7.0
- TI-2026-45161 Trivy: Path Traversal in Trivy Plugin Manager Allows Arbitrary File Write CVSS 4.0MEDIUM 6.8
Sources
- CVE-2024-35192 · CVE Program
- CVE-2024-35192 · NVD
- FIRST EPSS
- GHSA-xcq4-m2r3-cmrj · GitHub Advisory Database · CC BY 4.0
- CVE-2024-35192 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences