CVE-2025-66570 in Yhirose Cpp-Httplib
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 ...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Yhirose | Cpp-Httplib | < 0.27.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-66570 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-033310-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2025-12-05 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-290: CWE-290
CWE-345: CWE-345
CWE-807: CWE-807
Related attack patterns (CAPEC)
CAPEC-59 Session Credential Falsification through Prediction via CWE-290
CAPEC-60 Reusing Session IDs (aka Session Replay) via CWE-290
CAPEC-142 DNS Cache Poisoning via CWE-345
CAPEC-218 Spoofing of UDDI/ebXML Messages via CWE-345
CAPEC-385 Transaction or Event Tampering via Application API Manipulation via CWE-345
Show all 22
CAPEC-387 Navigation Remapping To Propagate Malicious Content via CWE-345
CAPEC-388 Application API Button Hijacking via CWE-345
CAPEC-459 Creating a Rogue Certification Authority Certificate via CWE-290
CAPEC-476 Signature Spoofing by Misrepresentation via CWE-290
CAPEC-665 Exploitation of Thunderbolt Protection Flaws via CWE-345
CAPEC-667 Bluetooth Impersonation AttackS (BIAS) via CWE-290
CAPEC-111 JSON Hijacking (aka JavaScript Hijacking) via CWE-345
CAPEC-141 Cache Poisoning via CWE-345
CAPEC-384 Application API Message Manipulation via Man-in-the-Middle via CWE-345
CAPEC-386 Application API Navigation Remapping via CWE-345
CAPEC-461 Web Services API Signature Forgery Leveraging Hash Function Extension Weakness via CWE-290
CAPEC-473 Signature Spoof via CWE-290
CAPEC-701 Browser in the Middle (BiTM) via CWE-345
CAPEC-21 Exploitation of Trusted Identifiers via CWE-290
CAPEC-22 Exploiting Trust in Client via CWE-290
CAPEC-94 Adversary in the Middle (AiTM) via CWE-290
CAPEC-148 Content Spoofing via CWE-345
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A vulnerability in cpp-httplib prior to version 0.27.0 allows attackers to inject malicious HTTP headers, which can 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. This can lead to unauthorized access or manipulation of server behavior.
Questions
What is CVE-2025-66570?
A vulnerability in cpp-httplib prior to version 0.27.0 allows attackers to inject malicious HTTP headers, which can influence server-visible metadata, logging, and authorization decisions.
What is the CVSS score for CVE-2025-66570?
CVE-2025-66570 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 0.3%.
Is CVE-2025-66570 actively exploited?
No confirmed active exploitation of CVE-2025-66570 as of 2026-09-25.
How do I remediate CVE-2025-66570?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2025-66570?
CVE-2025-66570 affects Yhirose Cpp-Httplib.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Yhirose","product":"Cpp-Httplib","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.