# CVE-2026-29076: cpp-httplib: Stack Overflow Denial of Service (DoS) via std::regex in multipart filename parsing

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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): 1.09%, higher than 66% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-07T16:08:56.048Z
- Modified: 2026-06-17T10:29:33.567Z
- Weaknesses: CWE-674, CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable no, 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.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.

(As written by CVE List.)

## Affected

- yhirose cpp-httplib: < 0.37.0; before 0.37.0

## References

- <https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-qq6v-r583-3h69> (exploit, vendor-advisory)
- <https://github.com/yhirose/cpp-httplib/commit/de296af3eb5b0d5c116470e033db900e4812c5e6> (patch)
- <https://github.com/yhirose/cpp-httplib/releases/tag/v0.37.0> (product, release-notes)

## Sources

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

---

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