Vulnerabilities / CVE-2025-0377

critical

CVE-2025-0377

go-slug: HashiCorp go-slug Vulnerable to Zip Slip Attack

Published Modified CWE 59
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
GHSA7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Red Hat7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

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

SourcePackageFixed in
chainguardopentofu-1.8, opentofu-1.9, opentofu-fips-1.8 and 7 more1.8.8-r2 and 9 more
go::GitHub Security Advisory Gogithub.com/hashicorp/go-slug0.16.3
wolfiopentofu-1.9, terraform1.9.0-r2 and 1 more
Show all 13 entries from 3 sources
SourcePackageFixed in
chainguardopentofu-1.81.8.8-r2
chainguardopentofu-1.91.9.0-r2
chainguardopentofu-fips-1.81.8.8-r1
chainguardopentofu-fips-1.91.9.0-r1
chainguardterraform1.5.7-r36
chainguardterraform-1.101.10.4-r1
chainguardterraform-1.91.9.8-r5
chainguardvault-1.161.16.3-r9
chainguardvault-1.171.17.6-r3
chainguardvault-1.181.18.3-r2
go::GitHub Security Advisory Gogithub.com/hashicorp/go-slug0.16.3
wolfiopentofu-1.91.9.0-r2
wolfiterraform1.5.7-r36

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.