Description
Trivy is a security scanner. Prior to 0.71.1, when Trivy downloads an OCI artifact, it uses the org.opencontainers.image.title annotation from the artifact manifest as the destination filename without validation. An attacker who can make Trivy fetch an attacker-controlled artifact can supply a crafted annotation that resolves to a path outside the intended destination, causing Trivy to write the layer content to an arbitrary location on the host filesystem. This vulnerability is fixed in 0.71.1.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| aquasecurity | trivy | < 0.71.1 | — |
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 |
|---|---|---|---|
| SLES for SAP 16.0 | govulncheck-vulndb | 0.0.20260827T195228-160000.1.1 | SUSE-SU-2026:23625-1 |
| SLES 16.0 | govulncheck-vulndb | 0.0.20260827T195228-160000.1.1 | SUSE-SU-2026:23625-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | trivy | 0.71.2-2.1 | openSUSE-SU-2026:11162-1 |
| openSUSE Leap 16.0 | govulncheck-vulndb | 0.0.20260827T195228-160000.1.1 | openSUSE-SU-2026:21761-1 |
| openSUSE Leap 16.0 | trivy | 0.72.0-160000.1.1 | openSUSE-SU-2026:21249-1 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | kubescape | 4.0.15-r1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/aquasecurity/trivy | < 0.71.1 | 0.71.1 | GHSA-mcj4-mphf-j9ff |
Advisories 5
- SUSE-SU-2026:23625-1 Security update for govulncheck-vulndb SUSE / openSUSE Security Updates · Sep 29, 2026
- openSUSE-SU-2026:21761-1 Security update for govulncheck-vulndb SUSE / openSUSE Security Updates · Sep 9, 2026
- WID-SEC-2026-1924 Aqua Security Trivy: Schwachstelle ermöglicht Manipulation von Dateien BSI CERT-Bund (WID) · Jul 26, 2026
- openSUSE-SU-2026:21249-1 Security update for trivy SUSE / openSUSE Security Updates · Jul 9, 2026
- openSUSE-SU-2026:11162-1 trivy-0.71.2-2.1 on GA media SUSE / openSUSE Security Updates · Jul 1, 2026