MEDIUM4.3
GO-2025-4014
Unbounded allocation when parsing GNU sparse map in archive/tar
Quick fix
GO-2025-4014 — stdlib: upgrade to the fixed version with the command below.
go get stdlib@v1.24.8Details
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.
Are you affected?
Enter the version of the package you're using.