Skip to main content
VulnerabilityPublished Updated

CVE-2026-29076: yhirose cpp-httplib · Uncontrolled Recursion

Affects yhirose cpp-httplibSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 5.9 Medium : upgrade to 0.37.0 when convenient.

Data as of 30 Oct 2026, 06:59 UTC

CVSS 3.1 base score
5.9Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.6% chance of exploitation in 30 days – higher than 50% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.37.0
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 7 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Upgrade cpp-httplib and yhirose/cpp-httplib to 0.37.0.

Affected software

ProductAffectedFixed in
yhirosecpp-httplibAffected
  • <0.37.0
Fixed in
  • 0.37.0
GitHubyhirose/cpp-httplibpkg:github/yhirose/cpp-httplibOther threatsAffected
  • <0.37.0
Fixed in
  • 0.37.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate CVE-2026-29076, organizations should immediately upgrade all instances of cpp-httplib to version 0.37.0 or later, where the vulnerability is patched. If upgrading is not immediately feasible, consider implementing input validation or filtering at the network perimeter to detect and block HTTP POST requests containing suspicious or unusually long filename* parameters in multipart Content-Disposition headers. Employ web application firewalls (WAFs) with custom rules targeting malformed multipart requests to reduce exposure. Additionally, monitor server logs for repeated crashes or segmentation faults related to HTTP POST handling, which may indicate exploitation attempts. Developers should review their use of regex parsing for multipart headers and consider alternative parsing methods that do not rely on recursive backtracking. Finally, incorporate fuzz testing and static analysis in the development lifecycle to detect similar uncontrolled recursion issues proactively.

Description

cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to version 0.37.0, cpp-httplib uses std::regex (libstdc++) to parse RFC 5987 encoded filename* values in multipart Content-Disposition headers. The regex engine in libstdc++ implements backtracking via deep recursion, consuming one stack frame per input character. An attacker can send a single HTTP POST request with a crafted filename* parameter that causes uncontrolled stack growth, resulting in a stack overflow (SIGSEGV) that crashes the server process. This issue has been patched in version 0.37.0.

References

Community reviews

Loading reviews…