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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-05-20 · Modified: 2024-08-02
- Aliases: CGA-3q42-m25r-3vqc, CGA-6mmm-8xw9-63m7, CGA-8xh6-jph4-fjq3, CGA-93m7-vq9f-hf8c, CGA-gjxv-jwjv-xx6h, CGA-ph49-w9wm-5f9v, GHSA-xcq4-m2r3-cmrj, GO-2024-2870, openSUSE-SU-2024:14030-1
- Record: https://cvemate.com/vulnerability/CVE-2024-35192 · JSON: https://cvemate.com/vulnerability/CVE-2024-35192/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N
- EPSS: 0.19%, percentile 9.084%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard k8sgpt (Chainguard): \< 0.3.32-r1
- chainguard kubescape (Chainguard): \< 3.0.12-r0
- chainguard zot (Chainguard): \< 2.0.4-r4
- wolfi k8sgpt (Wolfi): \< 0.3.32-r1
- wolfi kubescape (Wolfi): \< 3.0.12-r0
- wolfi zot (Wolfi): \< 2.0.4-r4
- aquasecurity trivy: \< 0.51.2
- github.com/aquasecurity trivy (Go): \< 0.51.2
- opensuse trivy&distro=openSUSE Tumbleweed (openSUSE): \< 0.52.0-1.1

## References

- <https://github.com/aquasecurity/trivy/security/advisories/GHSA-xcq4-m2r3-cmrj>
- <https://github.com/aquasecurity/trivy/commit/e7f14f729de259551203f313e57d2d9d3aa2ff87>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35192.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-35192>
- <https://github.com/aquasecurity/trivy>
- <https://www.suse.com/security/cve/CVE-2024-35192>

---

Data as of 2026-12-05T10:24:25.432Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
