GO-2025-4014

Source
https://pkg.go.dev/vuln/GO-2025-4014
Import Source
https://vuln.go.dev/ID/GO-2025-4014.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2025-4014
Aliases
Published
2025-10-29T21:51:04Z
Modified
2025-11-06T13:59:32.087427Z
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.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2025-4014"
}
References
Credits
    • Harshit Gupta (Mr HAX)

Affected packages

Go / stdlib

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.24.8
Introduced
1.25.0
Fixed
1.25.2

Ecosystem specific

{
    "imports": [
        {
            "symbols": [
                "Reader.Next",
                "readGNUSparseMap1x0"
            ],
            "path": "archive/tar"
        }
    ]
}