{"id":"CVE-2026-29076","published":"2026-03-07T16:08:56Z","modified":"2026-03-09T18:25:58Z","title":"cpp-httplib: Stack Overflow Denial of Service (DoS) via std::regex in multipart filename parsing","vendor":"yhirose","product":"cpp-httplib","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01059,"percentile":0.63917,"provenance":"source"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"},{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-qq6v-r583-3h69","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/yhirose/cpp-httplib/commit/de296af3eb5b0d5c116470e033db900e4812c5e6","tags":["x_refsource_MISC"]},{"url":"https://github.com/yhirose/cpp-httplib/releases/tag/v0.37.0","tags":["x_refsource_MISC"]}],"priority":{"score":16.9,"factors":[{"name":"EPSS percentile","points":12.78},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"yhirose","affectedVersions":[{"vendor":"yhirose","product":"cpp-httplib","versions":["< 0.37.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-09T17:52:24.982073Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-10158","exploited":false,"provenance":"source"}}