{"cve":"CVE-2024-35192","nvd":{"published":"2024-05-20T21:15:09.550","modified":"2026-06-17T07:34:31.020","status":"Deferred","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N","score":5.5},"cwes":["CWE-522"],"references":["https://github.com/aquasecurity/trivy/commit/e7f14f729de259551203f313e57d2d9d3aa2ff87","https://github.com/aquasecurity/trivy/security/advisories/GHSA-xcq4-m2r3-cmrj","https://github.com/aquasecurity/trivy/commit/e7f14f729de259551203f313e57d2d9d3aa2ff87","https://github.com/aquasecurity/trivy/security/advisories/GHSA-xcq4-m2r3-cmrj"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:50:30.954589733+00:00"},"epss":{"cve":"CVE-2024-35192","score":0.0019,"percentile":0.08714,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-xcq4-m2r3-cmrj","url":"https://osv.dev/vulnerability/GHSA-xcq4-m2r3-cmrj","summary":"Trivy possibly leaks registry credential when scanning images from malicious registries","modified":"2026-09-10T03:50:14.730511419Z","packages":[{"ecosystem":"Go","name":"github.com/aquasecurity/trivy","purl":"pkg:golang/github.com/aquasecurity/trivy","ranges":["<0.51.2"],"fixed":["0.51.2"]}]},{"id":"GO-2024-2870","url":"https://osv.dev/vulnerability/GO-2024-2870","summary":"Credential leakage in github.com/aquasecurity/trivy","modified":"2026-02-04T04:15:07.344080Z","packages":[{"ecosystem":"Go","name":"github.com/aquasecurity/trivy","purl":"pkg:golang/github.com/aquasecurity/trivy","ranges":["<0.51.2"],"fixed":["0.51.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}