4.3Medium

CVE-2025-58183Unbounded allocation when parsing GNU sparse map in archive/tar

Go standard library archive/tar Published: (1 year ago)

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.

Weakness (CWE): CWE-400

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Go standard library archive/tar < 1.24.8, 1.25.0 – < 1.25.2

References and patches