Skip to content
4.3 Medium

CVE-2025-58183 tar.Reader does not set a maximum size on the number of sparse region data blocks in GNU tar pax 1.0 sparse files

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.

Affected products and versions

Product Affected versions Fixed in
archive/tar 1.25 1.25.0 → < 1.25.2 1.25.2
archive/tar 1.24 earliest → < 1.24.8 1.24.8

References

Timeline

  1. Published
  2. Last modified
The 3 CVEs of archive/tar →
Track this CVE