CVE-2025-58183: Go Standard Library Archive/tar

Medium severity, CVSS 4.3. EPSS: 0.4% probability of exploitation activity in the next 30 days.

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.

What to do

The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.

  • Go Standard Library Archive/tar, before 1.24.8: fixed in 1.24.8
  • Go Standard Library Archive/tar, from 1.25.0, before 1.25.2: fixed in 1.25.2

Affected products

Affected packages

Published 2025-10-29. Last modified 2026-10-08.