Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| aquasecurity | trivy | < 0.51.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP6 | trivy | 0.54.1-bp156.2.3.1 | openSUSE-SU-2024:0269-1 |
| SUSE Package Hub 15 SP5 | trivy | 0.54.1-bp155.2.3.1 | openSUSE-SU-2024:0268-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | trivy | 0.52.0-1.1 | openSUSE-SU-2024:14030-1 |
| openSUSE Leap 15.6 | trivy | 0.54.1-bp156.2.3.1 | openSUSE-SU-2024:0269-1 |
| openSUSE Leap 15.5 | trivy | 0.54.1-bp155.2.3.1 | openSUSE-SU-2024:0268-1 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | k8sgpt | 0.3.32-r1 | — |
| Wolfi rolling | kubescape | 3.0.12-r0 | — |
| Wolfi rolling | zot | 2.0.4-r4 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/aquasecurity/trivy | < 0.51.2 | 0.51.2 | GHSA-xcq4-m2r3-cmrj |
Advisories 3
- openSUSE-SU-2024:14030-1 trivy-0.52.0-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:0269-1 Security update for trivy SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:0268-1 Security update for trivy SUSE / openSUSE Security Updates · Feb 4, 2026