Skip to content
Heist/ feed
Back to feed
Medium

Trivy possibly leaks registry credential when scanning images from malicious registries

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-35192
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 16:33 UTC · Revision 1

Source evidence

Trivy possibly leaks registry credential when scanning images from malicious registries

core-osv · Original source

Published 20 May 2024, 20:36 UTC

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.

osv:CVE-2024-35192
Complete source record
{
  "id": "142df6a9378a3dab4565fb3f022120bbd537e41b7b29a074dda6ea4aefad4908",
  "url": "https://osv.dev/vulnerability/CVE-2024-35192",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Trivy possibly leaks registry credential when scanning images from malicious registries",
    "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.",
    "evidence": "osv:CVE-2024-35192",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-35192",
      "aliases": [
        "CVE-2024-35192",
        "GHSA-xcq4-m2r3-cmrj",
        "GO-2024-2870"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/aquasecurity/trivy",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "eadc6fb64196510ca75657c749398d2f73d617c3"
                },
                {
                  "fixed": "e7f14f729de259551203f313e57d2d9d3aa2ff87"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.51.2"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "e7f14f729de259551203f313e57d2d9d3aa2ff87"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.51.1",
            "v0.51.0",
            "v0.50.1",
            "v0.50.0",
            "v0.49.1",
            "v0.49.0",
            "v0.48.2",
            "v0.48.1",
            "v0.43.1",
            "v0.48.0",
            "v0.47.0",
            "v0.46.0",
            "v0.45.1",
            "v0.45.0",
            "v0.44.1",
            "v0.44.0",
            "v0.43.0",
            "v0.42.1",
            "v0.42.0",
            "v0.41.0",
            "v0.40.0",
            "v0.39.1",
            "v0.39.0",
            "v0.38.3",
            "v0.38.2",
            "v0.38.1",
            "v0.38.0",
            "v0.37.3",
            "v0.37.2",
            "v0.37.1",
            "v0.37.0",
            "v0.36.1",
            "v0.36.0",
            "v0.35.0",
            "v0.34.0",
            "v0.33.0",
            "v0.32.1",
            "v0.32.0",
            "v0.31.3",
            "v0.31.2",
            "v0.31.1",
            "v0.31.0",
            "v0.30.4",
            "v0.30.3",
            "v0.30.2",
            "v0.30.1",
            "v0.30.0",
            "v0.29.2",
            "v0.29.1",
            "v0.29.0",
            "v0.28.1",
            "v0.28.0",
            "v0.27.1",
            "v0.27.0",
            "v0.26.0",
            "v0.25.4",
            "v0.25.3",
            "v0.25.2",
            "v0.25.1",
            "v0.25.0",
            "v0.24.4",
            "v0.24.3",
            "v0.24.2",
            "v0.24.1",
            "v0.24.0",
            "v0.23.0",
            "v0.22.0",
            "v0.21.3",
            "v0.21.2",
            "v0.21.1",
            "v0.21.0",
            "v0.20.2",
            "v0.20.1",
            "v0.20.0",
            "v0.19.2",
            "v0.19.1",
            "v0.19.0",
            "v0.18.3",
            "v0.18.2",
            "v0.18.1",
            "v0.18.0",
            "v0.17.2",
            "v0.17.1",
            "v0.17.0",
            "v0.16.0",
            "v0.15.0",
            "v0.14.0",
            "v0.13.0",
            "v0.12.0",
            "v0.11.0",
            "v0.10.2",
            "v0.10.1",
            "v0.10.0",
            "v0.9.2",
            "v0.9.1",
            "v0.9.0",
            "v0.8.0",
            "v0.7.0",
            "v0.6.0",
            "v0.5.4",
            "v0.5.3",
            "v0.5.2",
            "v0.5.1",
            "v0.5.0",
            "v0.4.4",
            "v0.4.3",
            "v0.4.2",
            "v0.4.1",
            "v0.4.0",
            "v0.3.1",
            "v0.3.0",
            "v0.2.1",
            "v0.2.0",
            "v0.1.7",
            "v0.1.6",
            "v0.1.5",
            "v0.1.4",
            "v0.1.3",
            "v0.1.2",
            "v0.1.1",
            "v0.1.0",
            "v0.0.16",
            "v0.0.15",
            "v0.0.14",
            "v0.0.13",
            "v0.0.12",
            "v0.0.11",
            "v0.0.10",
            "v0.0.9",
            "v0.0.8",
            "v0.0.7",
            "v0.0.6",
            "v0.0.5",
            "v0.0.4",
            "v0.0.3",
            "v0.0.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35192.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:37.607693866Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35192.json",
        "https://github.com/aquasecurity/trivy/security/advisories/GHSA-xcq4-m2r3-cmrj",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-35192",
        "https://github.com/aquasecurity/trivy/commit/e7f14f729de259551203f313e57d2d9d3aa2ff87"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-522"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35192.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-35192",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 504703,
  "published_at": "2024-05-20T20:36:56.695+00:00"
}