# CVE-2024-35192: Trivy possibly leaks registry credential when scanning images from malicious registries

- Severity: Medium 5.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2024-05-20T20:36:53.000Z
- Modified: 2026-09-10T03:50:14.730Z
- Also known as: GHSA-xcq4-m2r3-cmrj, GO-2024-2870
- Related: CGA-8cxc-c6v2-w87x
- Weaknesses: CWE-522
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- aquasecurity trivy: < 0.51.2
- github.com/aquasecurity/trivy (Go): before 0.51.2

## Every score

- GitHub_M: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N`

## References

- <https://github.com/aquasecurity/trivy/security/advisories/GHSA-xcq4-m2r3-cmrj> (advisory, web)
- <https://github.com/aquasecurity/trivy/commit/e7f14f729de259551203f313e57d2d9d3aa2ff87> (fix, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-35192> (advisory)
- <https://github.com/aquasecurity/trivy> (package)

## Sources

- CVE List: [CVE-2024-35192](https://www.cve.org/CVERecord?id=CVE-2024-35192), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-xcq4-m2r3-cmrj](https://github.com/advisories/GHSA-xcq4-m2r3-cmrj), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2024-2870](https://pkg.go.dev/vuln/GO-2024-2870), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2024-35192](https://nvd.nist.gov/vuln/detail/CVE-2024-35192), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-35192 · Whole record: https://cve.day/CVE-2024-35192.json · Rebuilt by cve.day 2026-11-25T22:58:40.676Z
