Security mailing lists by PureSourceCode

CVE-2024-35192

MEDIUM 5.5CVSS 3.1

Trivy possibly leaks registry credential when scanning images from malicious registries

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.

Published
20 May 2024
Last modified
10 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Deferred
Weakness
CWE-522
Also known as
GHSA-xcq4-m2r3-cmrjGO-2024-2870
Sources
NVDJSONOSV GHSA-xcq4-m2r3-cmrjJSONOSV GO-2024-2870JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 5.5 CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.5 CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Go github.com/aquasecurity/trivy < 0.51.2 0.51.2

References

History

  • 25 Nov 2026 20:55 UTC · NVD: first stored (published 20 May 2024)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 May 2024)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 20 May 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.