CVE-2026-29076: Prior to version 0.37.0, cpp-httplib uses std::regex (libstdc++) to parse RFC 5987 encoded filename
Affects cpp-httplibSource GCVE Database
Not known to be exploited · CVSS 5.9 Medium · fixed in 0.37.0 : update cpp-httplib when convenient.
Data as of 24 Nov 2026, 20:26 UTC
- 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:HExploitation evidence
Disclosed: evidence found.
CVE published 7 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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 23 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10cpp-httplibpkg:deb/ubuntu/cpp-httplib?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu Pro 26.04 LTScpp-httplibpkg:deb/ubuntu/cpp-httplib?arch=source&distro=esm-apps/resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10cpp-httplibpkg:deb/ubuntu/cpp-httplib?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu Pro 24.04 LTScpp-httplibpkg:deb/ubuntu/cpp-httplib?arch=source&distro=esm-apps/nobleOther threats | Affected
| Fixed in– |
Ubuntu Pro 22.04 LTScpp-httplibpkg:deb/ubuntu/cpp-httplib?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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
- ubuntu.com/security/CVE-2026-29076 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-29076 (opens in a new tab)
- github.com/yhirose/cpp-httplib/security/advisories/GHSA-qq6v-r583-3h69 (opens in a new tab)
- github.com/yhirose/cpp-httplib/commit/de296af3eb5b0d5c116470e033db900e4812c5e6 (opens in a new tab)
- github.com/yhirose/cpp-httplib/releases/tag/v0.37.0 (opens in a new tab)