Infinite loop in sharpcompress - #VU166172
Published: November 13, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service by indefinitely consuming a CPU core and stalling archive processing.
The vulnerability exists due to a loop with an unreachable exit condition in SharpCompress's CBZip2InputStream decoder when processing corrupted BZip2-compressed ZIP entries through ReaderFactory, because ReadByte() can repeatedly return a byte without advancing decoder state or signaling stream termination. A remote attacker can supply a ZIP archive containing a single-byte corruption in a BZip2 entry to trigger the infinite loop during entry reading or disposal.