Medium severity · published Oct 29, 2025
CVE-2025-58183
Unbounded allocation when parsing GNU sparse map in archive/tar
4.3
CVSS
0.4%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
None
Integrity
None
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 38% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
AR
archive/tar · Go standard library
before 1.24.8; 1.25.0 before 1.25.2 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-58183
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-58183
go.dev
https://go.dev/cl/709861
go.dev
https://go.dev/issue/75677
groups.google.com
https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI
pkg.go.dev
https://pkg.go.dev/vuln/GO-2025-4014
www.openwall.com
http://www.openwall.com/lists/oss-security/2025/10/08/1
More from archive/tar
7.5
CVE-2022-2879
Unbounded memory consumption when reading headers in archive/tar
5.5
CVE-2026-32288
Unbounded allocation for old GNU sparse in archive/tar
