VDB

CVE-2024-35192

CVE-2024-35192 PUBLISHED CVSS 5.5 MEDIUM

Trivy possibly leaks registry credential when scanning images from malicious registries

Reported by github_m · Published May 20, 2024

github.com/aquasecurity/trivy is fixed in 0.51.2 (Go Modules)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
github.com/aquasecurity/trivyGo Modules0.51.2
trivyDHI0.51.2

Risk scores

CVSS 3.1
5.5
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N

Affected products

VendorProductVersions
aquasecuritytrivy< 0.51.2
aquasecuritytrivy0
chainguardzot0
wolfikubescape0
wolfik8sgpt0
chainguardkubescape0
wolfizot0
chainguardk8sgpt0
github.comaquasecurity/trivy0

Timeline

  • May 20, 2024 CVE Published
  • May 21, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (8 in total, the first dated here)
  • Jan 10, 2026 Security Advisory (3 in total, the first dated here)
  • Mar 1, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-35192
vulnetix vdb fixes CVE-2024-35192

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-35192/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›