CVE-2025-58183

GO-2025-4014 · published 29 Oct 2025 · updated 16 Nov 2026

Unbounded allocation when parsing GNU sparse map in archive/tar

4.3MediumCVSS 4.3EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 1.24.8, 1.25.2 and stdlib 1.25.2.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Go standard library<1.24.8, >=1.25.0 <1.25.21.24.8, 1.25.2
go: stdlib>=1.25.0 <1.25.21.25.2

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in stdlib (Go), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-58183 severity on Zeptric[![CVE-2025-58183](https://zeptric.io/badge/cve/CVE-2025-58183.svg)](https://zeptric.io/cve/CVE-2025-58183)