# CVE-2024-35192: GO-2024-2870 - Credential leakage in github.com/aquasecurity/trivy

Source: https://junglewise.ai/threats/cve-2024-35192-trivy-possibly-leaks-registry-credential-when-scanning-images  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-05-22  
License: CC BY 4.0 with a link back

CVE-2024-35192 · Severity: low · CVSS 3.1 · Published 2024-05-22

Credential leakage in github.com/aquasecurity/trivy

Technologies: [github.com/aquasecurity/trivy (Go)](https://junglewise.ai/threats/technologies/github-com-aquasecurity-trivy). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2024-35192 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-35192 being exploited in the wild.

**How severe is CVE-2024-35192?** Low severity, with a CVSS score of 3.1, published 22 May 2024.

**Which products and versions are affected?** github.com/aquasecurity/trivy (Go) SEMVER:introduced=0,fixed=0.51.2.

**Is there a fix for CVE-2024-35192?** Yes. github.com/aquasecurity/trivy (Go): upgrade to 0.51.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-35192?** Check whether you run github.com/aquasecurity/trivy (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/aquasecurity/trivy (Go): upgrade to 0.51.2 or later

  ```sh
  go get github.com/aquasecurity/trivy@v0.51.2
  ```


## Affected products

- github.com/aquasecurity/trivy (Go) SEMVER:introduced=0,fixed=0.51.2

## Identifiers

- CVE-2024-35192
- GHSA-xcq4-m2r3-cmrj
- GO-2024-2870

## Related threats

- [Aqua Trivy plugin manager path traversal arbitrary file write](https://junglewise.ai/threats/cve-2026-63328-aqua-trivy-plugin-manager-path-traversal-arbitrary-file-write)
- [Aqua Security Trivy path traversal in OCI artifact downloading](https://junglewise.ai/threats/cve-2026-55092-aqua-security-trivy-path-traversal-in-oci-artifact-downloading)
- [Aqua Security Trivy denial of service via Helm chart tar bomb](https://junglewise.ai/threats/cve-2026-54448-aqua-security-trivy-denial-of-service-via-helm-chart-tar-bomb)
- [GO-2026-4919 - Trivy ecosystem supply chain was briefly compromised in github.com/aquasecurity/trivy](https://junglewise.ai/threats/cve-2026-33634-aqua-security-trivy-supply-chain-compromise-via-malicious-code)
