Resource exhaustion in Cpp-httplib - CVE-2026-22776

 

Resource exhaustion in Cpp-httplib - CVE-2026-22776

Published: January 12, 2026


Vulnerability identifier: #VU121164
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: CVE-2026-22776
CWE-ID: CWE-400
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to application does not properly control consumption of internal resources when handling compressed HTTP request body. The library validates the payload_max_length against the compressed data size received from the network, but does not limit the size of the decompressed data stored in memory. A remote attacker can trigger resource exhaustion and perform a denial of service (DoS) attack.


Affected software

Cpp-httplib
openEuler
cpp-httplib
cpp-httplib-debuginfo
cpp-httplib-debugsource
cpp-httplib-devel

How to mitigate CVE-2026-22776

Install updates from vendor's website.

Cpp-httplib - update to 0.30.1
cpp-httplib - update to 0.30.1-1
cpp-httplib-debuginfo - update to 0.30.1-1
cpp-httplib-debugsource - update to 0.30.1-1
cpp-httplib-devel - update to 0.30.1-1

External References

Related Security Bulletins