GO-2025-4014
Dashboard / Vulnerabilities / GO-2025-4014
GO-2025-4014
Published: 29 Oct 2025Last Modified: 25 Nov 2026
Summary: Unbounded allocation when parsing GNU sparse map in archive/tar
Details: tar.Reader does not set a maximum size on the number of sparse region data blocks in GNU tar pax 1.0 sparse files. A maliciously-crafted archive containing a large number of sparse regions can cause a Reader to read an unbounded amount of data from the archive into memory. When reading from a compressed source, a small compressed input can result in large allocations.
References: https://go.dev/cl/709861, https://go.dev/issue/75677, https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI
Affected packages
Package
Name: stdlib
Purl: pkg:golang/stdlib
Affected ranges
Type: SEMVER
Events:
Introduced- 0
Fixed -1.24.8
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
