CVE-2025-58183

Unbounded allocation when parsing GNU sparse map in archive/tar

State
Published
Severity
4.3 Medium
Published
Oct 29, 2025
Updated
Nov 4, 2025
Reserved
Aug 27, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.14.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:LCISA-ADP

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
archive/tarGo standard library
  • before 1.24.8Affected
  • 1.25.0 to before 1.25.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.