Read the docs
TI-2024-23265 Aliases CVE-2024-35192GHSA-xcq4-m2r3-cmrj

Trivy possibly leaks registry credential when scanning images from malicious registries

Priority LOW 24CWE-522Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0019 8th percentileScored 2026-11-07
Fix Fixed trivy (aquasecurity): 0.51.2github.com/aquasecurity/trivy (Go): 0.51.2

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

VendorProductAffected versionsFixed inStatusSource
Aquasecuritytrivybefore 0.51.20.51.2Patch availableCNA
—github.com/aquasecurity/trivy (Go)before 0.51.20.51.2Patch availableGHSA-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

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-35192
  2. 2026-10-03 Alias added: GHSA-xcq4-m2r3-cmrj

References

  • 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
See all 7 →

Sources