Infinite loop in sharpcompress - #VU166172

 

Infinite loop in sharpcompress - #VU166172

Published: November 13, 2026


Vulnerability identifier: #VU166172
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-835
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

sharpcompress

Remediation

Install security update from vendor's website.

sharpcompress - update to 0.50.9

External References

Related Security Bulletins