CVE Catalog

CVE-2026-22776

High
Published: Translated: NVD NIST

Summary

cpp-httplib prior to version 0.30.1 contains a Denial of Service (DoS) vulnerability due to unsafe handling of compressed HTTP request bodies. The library validates payload_max_length against compressed data size but does not limit the size of decompressed data stored in memory.

Risk Assessment

An attacker can send a specially crafted request that, when decompressed, consumes excessive memory, leading to resource exhaustion and service unavailability.

Recommendation

It is recommended to upgrade cpp-httplib to version 0.30.1 or later, which includes a fix to limit the size of decompressed data.

Other vulnerabilities in cpp-httplib

See all
Original NVD description (English source)

cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to version 0.30.1, a Denial of Service (DoS) vulnerability exists in cpp-httplib due to the unsafe handling of compressed HTTP request bodies (Content-Encoding: gzip, br, etc.). 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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS