CVE-2026-22776: cpp-httplib - Denial of Service
- Cve: CVE-2026-22776
- Name: cpp-httplib - Denial of Service
- Description: 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.
- Impact: Attackers can cause memory exhaustion leading to denial of service by sending large compressed HTTP request bodies.
- Remediation: Update to version 0.30.1 or later.
- Vulnerability type: denial_of_service
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.00411
- Epss percentile: 0.36075
- Assignee: [email protected]
- Published at: 2026-01-12T19:16:03Z
- Age in days: 316
- Modified at: 2026-06-17T10:20:24Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-22776
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-409 | Improper Handling of Highly Compressed Data (Data Amplification) |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-h934-98h4-j43q | nvd | 2026-01-12 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/yhirose/cpp-httplib/commit/2e2e47bab1ae6a853476eecbc4bf279dd1fef792 | nvd | Patch |
| https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-h934-98h4-j43q | nvd | Exploit, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| yhirose:cpp-httplib | < 0.30.1 | no | nvd | /v1/products/yhirose/cpp-httplib |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| yhirose/cpp-httplib | commit, security_advisory | yes | /v1/repositories/yhirose/cpp-httplib |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-01-12
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts