GO-2024-2870

    Dashboard / Vulnerabilities / GO-2024-2870

    GO-2024-2870

    Published: 22 May 2024Last Modified: 4 Feb 2026

    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.

    Affected packages

    Package

    Name: github.com/aquasecurity/trivy

    Purl: pkg:golang/github.com/aquasecurity/trivy

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -0.51.2

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GO-2024-2870 | CVE-DB