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.
Problem types
CWE-400: Uncontrolled Resource Consumption
Product status
Any version before 1.24.8
1.25.0 (semver) before 1.25.2
Credits
Harshit Gupta (Mr HAX)
References
groups.google.com/g/golang-announce/c/4Emdl2iQ_bI