Uncontrolled Memory Allocation in sharpcompress - #VU166170

 

Uncontrolled Memory Allocation in sharpcompress - #VU166170

Published: November 13, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service through memory exhaustion.

The vulnerability exists due to memory allocation with excessive size values in the SharpCompress 7z reader when processing unbounded nested header counts, coder-properties sizes, and encoded-header uncompressed sizes before validating corresponding data. A remote attacker can trick a victim into opening or enumerating a tiny, CRC-valid 7z archive containing oversized values to trigger disproportionately large allocations and exhaust process memory.


Affected software

sharpcompress

Remediation

Install security update from vendor's website.

sharpcompress - update to 0.50.9

External References

Related Security Bulletins