{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-45352","published":"2026-05-29T20:16:26.140000Z","last_modified":"2026-07-22T06:10:00.170000Z","status":"Modified","cvss":{"version":"3.1","score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-20","CWE-770","CWE-1285"],"cpes":[{"criteria":"cpe:2.3:a:yhirose:cpp-httplib:*:*:*:*:*:*:*:*","part":"a","vendor":"yhirose","product":"cpp-httplib","version_end_excluding":"0.43.4"}],"cpes_truncated":false,"vendors":["yhirose"],"products":["yhirose/cpp-httplib"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"high","priority_score":60,"links":{"html_es":"/es/cve/CVE-2026-45352/","html_en":"/en/cve/CVE-2026-45352/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-45352","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-45352"},"untrusted":{"vendor_name":"Yhirose","product_name":"Cpp-httplib","desc_en":"cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to 0.43.4, negative chunk-size in chunked Transfer-Encoding causes unbounded memory allocation and process crash. The ChunkedDecoder::read_payload function in cpp-httplib (httplib.h) parses the chunk-size field of HTTP chunked transfer encoding using std::strtoul(). Per the C standard (§7.22.1.4), strtoul silently accepts a leading minus sign, performing unsigned wrap-around: strtoul(\"-2\", …, 16) returns ULONG_MAX − 1 (0xFFFFFFFFFFFFFFFE). The library's only guard (line 12833) rejects ULONG_MAX (the result of \"-1\"), but any other negative value such as \"-2\" passes validation. The resulting near-maximum value is stored in chunk_remaining and controls how many bytes the server's read loop consumes from the network. This vulnerability is fixed in 0.43.4.","affected":[{"untrusted_vendor":"yhirose","untrusted_product":"cpp-httplib","versions":[]}],"references":[{"url":"https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-h6wq-j5mv-f3q8","tags":["Exploit","Vendor Advisory"]}]}}