UNKNOWN Go

Unbounded allocation when parsing GNU sparse map in archive/tar

GO-2025-4014 · BIT-golang-2025-58183 · CVE-2025-58183

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes