Skip to main content
← All vulnerabilities
CVE-2024-35192GO-2024-2870GHSA-XCQ4-M2R3-CMRJ

Trivy possibly leaks registry credential when scanning images from malicious registries

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.51.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • aquasecurity trivy

    fixed in 0.51.2

  • github.com/aquasecurity/trivyGo

    fixed in 0.51.2

References 2

GitHub · aquasecurity/trivy