ADVISORIES

Go Vulnerability Database

GO-2026-4869

Unbounded allocation for old GNU sparse in archive/tar

Details

tar.Reader can allocate an unbounded amount of memory when reading a maliciously-crafted archive containing a large number of sparse regions encoded in the "old GNU sparse map" format.

Affected packages

EcosystemPackageAffected versions
Gostdlib
All versions before 1.25.9 (fixed in 1.25.9)
From 1.26.0-0 before 1.26.2 (fixed in 1.26.2)

References