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.
https://pkg.go.dev/vuln/GO-2025-4014
https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI
Published: 2025-10-29
Updated: 2026-10-08
Named Vulnerability: GO-2025-4014Named Vulnerability: GHSA-9gcr-gp5f-jw27
Base Score: 7.8
Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C
Severity: High
Base Score: 4.3
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
Severity: Medium
EPSS: 0.00443