{"id":"GO-2024-2870","revision":"9b84f85e99374e3e8b9b5ef7c123942b","records":[{"revision":"9b84f85e99374e3e8b9b5ef7c123942b","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2024-2870","aliases":["CVE-2024-35192","GHSA-xcq4-m2r3-cmrj"],"title":"Credential leakage in github.com/aquasecurity/trivy","description":"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.","state":0,"publishedAt":"2024-05-22T16:46:37+00:00","modifiedAt":"2026-02-04T04:15:07.34408+00:00","affected":[{"ecosystem":"Go","name":"github.com/aquasecurity/trivy","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.51.2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/aquasecurity/trivy/security/advisories/GHSA-xcq4-m2r3-cmrj","https://github.com/aquasecurity/trivy/commit/e7f14f729de259551203f313e57d2d9d3aa2ff87"],"sourceUrl":"https://osv.dev/vulnerability/GO-2024-2870","license":"OSV · upstream source license applies","key":"osv:GO-2024-2870","identifiers":["GO-2024-2870","CVE-2024-35192","GHSA-xcq4-m2r3-cmrj"]},"retained":false,"historicalAffected":[]}],"coverage":[]}