CVE-2025-0377
go-slug: HashiCorp go-slug Vulnerable to Zip Slip Attack
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (high), Red Hat (high).
Description
HashiCorp’s go-slug library is vulnerable to a zip-slip style attack when a non-existing user-provided path is extracted from the tar entry.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| chainguard | opentofu-1.8, opentofu-1.9, opentofu-fips-1.8 and 7 more | 1.8.8-r2 and 9 more |
| go::GitHub Security Advisory Go | github.com/hashicorp/go-slug | 0.16.3 |
| wolfi | opentofu-1.9, terraform | 1.9.0-r2 and 1 more |
Show all 13 entries from 3 sources
| Source | Package | Fixed in |
|---|---|---|
| chainguard | opentofu-1.8 | 1.8.8-r2 |
| chainguard | opentofu-1.9 | 1.9.0-r2 |
| chainguard | opentofu-fips-1.8 | 1.8.8-r1 |
| chainguard | opentofu-fips-1.9 | 1.9.0-r1 |
| chainguard | terraform | 1.5.7-r36 |
| chainguard | terraform-1.10 | 1.10.4-r1 |
| chainguard | terraform-1.9 | 1.9.8-r5 |
| chainguard | vault-1.16 | 1.16.3-r9 |
| chainguard | vault-1.17 | 1.17.6-r3 |
| chainguard | vault-1.18 | 1.18.3-r2 |
| go::GitHub Security Advisory Go | github.com/hashicorp/go-slug | 0.16.3 |
| wolfi | opentofu-1.9 | 1.9.0-r2 |
| wolfi | terraform | 1.5.7-r36 |