CVE-2025-66570CRITICAL 9.8EPSS p21.6%

CVE-2025-66570CVE-2025-66570

Description

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.

Scoring

CVSS 3.19.8 (CRITICAL)
VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS0.30% probability of exploitation · percentile 21.6% · 2026-06-19T12:03:05Z
Published2025-12-05
Last modified2025-12-10

Underlying weaknesses· 3

CWE-290CWE-345CWE-807

References

  1. https://github.com/yhirose/cpp-httplib/commit/ac9ebb0ee333ce8bf13523f487bdfad9518a2aff
  2. https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-xm2j-vfr9-mg9m

3

TypeTargetConfidenceTier
WeaknessAuthentication Bypass by Spoofingcwe-2900%live
WeaknessInsufficient Verification of Data Authenticitycwe-3450%live
WeaknessReliance on Untrusted Inputs in a Security Decisioncwe-8070%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CVE
CVE-2026-45372
CVE
CVE-2026-32627
CVE
CVE-2026-46527
CVE
CVE-2025-53628
CVE
CVE-2026-38967
CVE
CVE-2025-14523
Sourced from NVD + FIRST.org EPSS. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.