SecurityContext

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

IdName
CWE-409Improper Handling of Highly Compressed Data (Data Amplification)

Public exploits

UrlSourceAdded date
https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-h934-98h4-j43qnvd2026-01-12

References

UrlSourceTags
https://github.com/yhirose/cpp-httplib/commit/2e2e47bab1ae6a853476eecbc4bf279dd1fef792nvdPatch
https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-h934-98h4-j43qnvdExploit, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
yhirose:cpp-httplib< 0.30.1nonvd/v1/products/yhirose/cpp-httplib

Projects

RepositoryLink kindsIndexedUrl
yhirose/cpp-httplibcommit, security_advisoryyes/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