{"schema_version":"1.7.2","id":"OESA-2026-2586","modified":"2026-08-06T11:11:31Z","published":"2026-06-05T11:11:31Z","upstream":["CVE-2026-45352","CVE-2026-45372","CVE-2026-46527"],"summary":"cpp-httplib security update","details":"A C++11 single-file header-only cross platform HTTP/HTTPS library. It&amp;apos;s extremely easy to setup. Just include httplib.h file in your code!\r\n\r\nSecurity Fix(es):\n\ncpp-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(&quot;-2&quot;, …, 16) returns ULONG_MAX − 1 (0xFFFFFFFFFFFFFFFE). The library&apos;s only guard (line 12833) rejects ULONG_MAX (the result of &quot;-1&quot;), but any other negative value such as &quot;-2&quot; passes validation. The resulting near-maximum value is stored in chunk_remaining and controls how many bytes the server&apos;s read loop consumes from the network. This vulnerability is fixed in 0.43.4.(CVE-2026-45352)\n\ncpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to 0.44.0, when cpp-httplib&apos;s server parses an incoming request, it applies percent-decoding to every header value except Location and Referer. The validity check (is_field_value) is run before decoding, so encoded %0D%0A passes the check and is then expanded to a literal \\r\\n byte pair inside the stored header value. This vulnerability is fixed in 0.44.0.(CVE-2026-45372)\n\ncpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to 0.44.0, When the server has called Server::set_trusted_proxies() with a non-empty trusted-proxy list, an attacker can send an HTTP request that includes an X-Forwarded-For header whose value parses to no valid IP segments. The code path then executes get_client_ip(), which calls front() on an empty std::vector—undefined behavior in C++. On typical implementations this manifests as abnormal process termination (denial of service). With Sanitizers enabled, you get an explicit runtime diagnostic. This vulnerability is fixed in 0.44.0.(CVE-2026-46527)","affected":[{"package":{"ecosystem":"openEuler:24.03-LTS-SP1","name":"cpp-httplib","purl":"pkg:rpm/openEuler/cpp-httplib&distro=openEuler-24.03-LTS-SP1"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.46.0-1.oe2403sp1"}]}],"ecosystem_specific":{"aarch64":["cpp-httplib-0.46.0-1.oe2403sp1.aarch64.rpm","cpp-httplib-debuginfo-0.46.0-1.oe2403sp1.aarch64.rpm","cpp-httplib-debugsource-0.46.0-1.oe2403sp1.aarch64.rpm","cpp-httplib-devel-0.46.0-1.oe2403sp1.aarch64.rpm"],"src":["cpp-httplib-0.46.0-1.oe2403sp1.src.rpm"],"x86_64":["cpp-httplib-0.46.0-1.oe2403sp1.x86_64.rpm","cpp-httplib-debuginfo-0.46.0-1.oe2403sp1.x86_64.rpm","cpp-httplib-debugsource-0.46.0-1.oe2403sp1.x86_64.rpm","cpp-httplib-devel-0.46.0-1.oe2403sp1.x86_64.rpm"]}}],"references":[{"type":"ADVISORY","url":"https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2026-2586"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45352"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45372"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46527"}],"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:L"}],"database_specific":{"severity":"Critical"}}
