CVE-2025-66570

cpp-httplib: cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library

CVE-2025-66570 is fixed in 4 products on 1 platform, first by libcpp-httplib0 0.10.3+ds-1ubuntu0.1~esm1, released December 5, 2025. It is not reported as exploited. Patch Radar priority: Urgent.

Urgent
CVSS
9.8
critical
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0035
28th percentile

cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to 0.27.0, a vulnerability allows attacker-controlled HTTP headers to influence server-visible metadata, logging, and authorization decisions. An attacker can inject headers named REMOTE_ADDR, REMOTE_PORT, LOCAL_ADDR, LOCAL_PORT that are parsed into the request header multimap via read_headers() in httplib.h (headers.emplace), then the server later appends its own internal metadata using the same header names in Server::process_request without erasing duplicates. Because Request::get_header_value returns the first entry for a header key (id == 0) and the client-supplied headers are parsed before server-inserted headers, downstream code that uses these header names may inadvertently use attacker-controlled values. Affected files/locations: cpp-httplib/httplib.h (read_headers, Server::process_request, Request::get_header_value, get_header_value_u64) and cpp-httplib/docker/main.cc (get_client_ip, nginx_access_logger, nginx_error_logger). Attack surface: attacker-controlled HTTP headers in incoming requests flow into the Request.headers multimap and into logging code that reads forwarded headers, enabling IP spoofing, log poisoning, and authorization bypass via header shadowing. This vulnerability is fixed in 0.27.0.

Where it's fixed

ProductFixed inFixReleased
Linux
cpp-httplib · Debian 14 0.41.0+ds-3 DEBIAN-CVE-2025-66570 Dec 5, 2025
cpp-httplib · opensuse-leap 16.0 0.22.0-160000.3.1 OPENSUSE-SU-2026:20056-1 Jan 15, 2026
cpp-httplib · sles 16.0 0.22.0-160000.3.1 SUSE-SU-2026:20090-1 Jan 15, 2026
libcpp-httplib0 · Ubuntu 22.04.1 LTS (jammy) 0.10.3+ds-1ubuntu0.1~esm1 libcpp-httplib0 0.10.3+ds-1ubuntu0.1~esm1 Dec 5, 2025
libcpp-httplib0.14t64 · Ubuntu 24.04.5 LTS (noble) 0.14.3+ds-1.1ubuntu0.1~esm1 libcpp-httplib0.14t64 0.14.3+ds-1.1ubuntu0.1~esm1 Dec 5, 2025
libcpp-httplib0.18 · Ubuntu 25.10 (questing) 0.18.7-1ubuntu0.25.10.1 libcpp-httplib0.18 0.18.7-1ubuntu0.25.10.1 Dec 5, 2025

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.