Infinite loop in sharpcompress - #VU166171
Published: November 13, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service through CPU exhaustion and unbounded memory growth.
The vulnerability exists due to missing negative entry-size validation in SharpCompress's seekable TAR parser when enumerating or extracting archive entries, allowing stream rewinding and an infinite loop that retains fabricated entries. A remote attacker can supply a 512-byte TAR with a signed base-256 entry size of -512 to trigger non-terminating enumeration through archive.Entries or WriteToDirectory and exhaust resources.