# CVE-2026-22776: cpp-httplib vulnerable to a denial of service (DOS) using a zip bomb

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.64%, higher than 45% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-12T18:18:01.527Z
- Modified: 2026-06-17T10:20:24.347Z
- Weaknesses: CWE-409
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- yhirose cpp-httplib: < 0.30.1; before 0.30.1

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-h934-98h4-j43q> (exploit, vendor-advisory)
- <https://github.com/yhirose/cpp-httplib/commit/2e2e47bab1ae6a853476eecbc4bf279dd1fef792> (patch)

## Sources

- CVE List: [CVE-2026-22776](https://www.cve.org/CVERecord?id=CVE-2026-22776), CVE Terms of Use, modified 2026-01-12
- NVD: [CVE-2026-22776](https://nvd.nist.gov/vuln/detail/CVE-2026-22776), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-22776 · Whole record: https://cve.day/CVE-2026-22776.json · Rebuilt by cve.day 2026-11-25T22:59:12.734Z
