Skip to content

trivy

Trivy possibly leaks registry credential when scanning images from malicious registries

CVE-2024-35192Published 20 May 2024, 20:36 UTC

Real-world risk

1.1/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

5.5

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from GitHub_M)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
trivyCommon< 0.51.20.51.2

What to do

Update to a fixed version: 0.51.2.

Why this score

FactorValueEvidence×
ImpactMajor data exposureReads secrets, credentials, databases, arbitrary filesFrom the CVSS vector0.80
Attacker positionLocalMust already run code or have a shell on the machineFrom the CVSS vector0.50
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionRoutineA normal action: open a file, visit a page, click a linkFrom the CVSS vector0.70
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityHardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bugFrom the CVSS vector0.45

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.2% chance of exploitation in 30 days (percentile 9), as of 2026-12-03.

The arithmetic
  1. Prerequisites multiplied together0.158
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.8 × prerequisites 0.1575 × threat 0.851.071
  4. Rounded to one decimal between 0.1 and 101.1

How the score works

Exploitation and evidence timeline

  1. 20 May 2024 Published
  2. 3 Dec 2026 Risk 1.1 (cvss fallback)

Weakness

CWE-522

References

Get alerts for trivy

Free email or text alerts when a vulnerability in trivy reaches risk 8 or higher. Nothing else.