CVE-2024-35192
published medium CVSS 3.1 · 5.5Trivy possibly leaks registry credential when scanning images from malicious registries
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| aquasecurity | — | trivy< 0.51.2 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | openSUSE-Leap-15.5 | trivyaarch64 | Advisory build | 0.54.1-bp155.2.3.1 | OPENSUSE-SU-2024:0268-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | trivyi586 | Advisory build | 0.54.1-bp155.2.3.1 | OPENSUSE-SU-2024:0268-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | trivyppc64le | Advisory build | 0.54.1-bp155.2.3.1 | OPENSUSE-SU-2024:0268-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | trivys390x | Advisory build | 0.54.1-bp155.2.3.1 | OPENSUSE-SU-2024:0268-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | trivyx86_64 | Advisory build | 0.54.1-bp155.2.3.1 | OPENSUSE-SU-2024:0268-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | trivyaarch64 | Advisory build | 0.54.1-bp156.2.3.1 | OPENSUSE-SU-2024:0269-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | trivyi586 | Advisory build | 0.54.1-bp156.2.3.1 | OPENSUSE-SU-2024:0269-1 |
Show 7 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Leap-15.6 | trivyppc64le | Advisory build | 0.54.1-bp156.2.3.1 | OPENSUSE-SU-2024:0269-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | trivys390x | Advisory build | 0.54.1-bp156.2.3.1 | OPENSUSE-SU-2024:0269-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | trivyx86_64 | Advisory build | 0.54.1-bp156.2.3.1 | OPENSUSE-SU-2024:0269-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | trivyaarch64 | Advisory build | 0.52.0-1.1 | OPENSUSE-SU-2024:14030-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | trivyppc64le | Advisory build | 0.52.0-1.1 | OPENSUSE-SU-2024:14030-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | trivys390x | Advisory build | 0.52.0-1.1 | OPENSUSE-SU-2024:14030-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | trivyx86_64 | Advisory build | 0.52.0-1.1 | OPENSUSE-SU-2024:14030-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| aquasecurity | trivy | < 0.51.2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-522 CWE-522: Insufficiently Protected Credentials
References
2Provider assertions
3GitHub_M · cna
Trivy possibly leaks registry credential when scanning images from malicious registries
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 4f85caaeaadc6a10f2c2334b0266a64799d56dedede48c1ee7110ac3c2a7ae7e
- Ingested
- 23 Sep 2026, 08:23:37 UTC
- Source record
- Official CVE record