Advisory

GO-2025-4014

Also known as: BIT-golang-2025-58183, CVE-2025-58183

Summary

Unbounded allocation when parsing GNU sparse map in archive/tar

Details

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.

Severity

Not rated by the source.

Dates

Published
2025-10-29 21:51 UTC
Modified
2026-11-14 13:12 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.24.8, introduced 1.25.0, fixed 1.25.2 (semver)

Fixed versions

1.24.8, 1.25.2

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences