Advisory

GO-2024-2870

Also known as: CVE-2024-35192, GHSA-xcq4-m2r3-cmrj

Summary

Credential leakage in github.com/aquasecurity/trivy

Details

A malicious registry can cause Trivy to leak credentials for legitimate registries such as AWS Elastic Container Registry (ECR), Google Cloud Artifact/Container Registry, or Azure Container Registry (ACR) if the registry is scanned from directly using Trivy. These tokens can then be used to push/pull images from those registries to which the identity/user running Trivy has access. This vulnerability only applies when scanning container images directly from a registry. If you use Docker, containerd or other runtime to pull images locally and scan them with Trivy, you are not affected. To enforce this behavior, you can use the --image-src flag to select which sources you trust.

Severity

Not rated by the source.

Dates

Published
2024-05-22 16:46 UTC
Modified
2026-02-04 04:15 UTC

Affected packages and fixes

github.com/aquasecurity/trivy

Go · All systems

Affected

  • introduced 0, fixed 0.51.2 (semver)

Fixed versions

0.51.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences