CVE-2025-66570
published critical CVSS 3.1 · 10.0cpp-httplib Untrusted HTTP Header Handling: Internal Header Shadowing (REMOTE*/LOCAL*)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| yhirose | — | cpp-httplib< 0.27.0 | Affected | Not stated | GitHub_M |
| Ubuntu | jammy | cpp-httplib | Advisory build | 0.10.3+ds-1ubuntu0.1~esm1 | USN-7962-1 |
| SUSE / openSUSE | SLE-16 | libcpp-httplib0_22aarch64 | Advisory build | 0.22.0-160000.3.1 | SUSE-SU-2026:20090-1 |
| Ubuntu | noble | cpp-httplib | Advisory build | 0.14.3+ds-1.1ubuntu0.1~esm1 | USN-7962-1 |
| Ubuntu | questing | cpp-httplib | Advisory build | 0.18.7-1ubuntu0.25.10.1 | USN-7962-1 |
| SUSE / openSUSE | SLE-16 | libcpp-httplib0_22ppc64le | Advisory build | 0.22.0-160000.3.1 | SUSE-SU-2026:20090-1 |
| SUSE / openSUSE | SLE-16 | libcpp-httplib0_22s390x | Advisory build | 0.22.0-160000.3.1 | SUSE-SU-2026:20090-1 |
| SUSE / openSUSE | SLE-16 | libcpp-httplib0_22x86_64 | Advisory build | 0.22.0-160000.3.1 | SUSE-SU-2026:20090-1 |
Show 19 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Leap-16.0 | cpp-httplib-develaarch64 | Advisory build | 0.22.0-160000.3.1 | OPENSUSE-SU-2026:20056-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | cpp-httplib-develppc64le | Advisory build | 0.22.0-160000.3.1 | OPENSUSE-SU-2026:20056-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | cpp-httplib-devels390x | Advisory build | 0.22.0-160000.3.1 | OPENSUSE-SU-2026:20056-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | cpp-httplib-develx86_64 | Advisory build | 0.22.0-160000.3.1 | OPENSUSE-SU-2026:20056-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | libcpp-httplib0_22aarch64 | Advisory build | 0.22.0-160000.3.1 | OPENSUSE-SU-2026:20056-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | libcpp-httplib0_22ppc64le | Advisory build | 0.22.0-160000.3.1 | OPENSUSE-SU-2026:20056-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | libcpp-httplib0_22s390x | Advisory build | 0.22.0-160000.3.1 | OPENSUSE-SU-2026:20056-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | libcpp-httplib0_22x86_64 | Advisory build | 0.22.0-160000.3.1 | OPENSUSE-SU-2026:20056-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cpp-httplib-develaarch64 | Advisory build | 0.28.0-1.1 | OPENSUSE-SU-2025:15844-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cpp-httplib-develppc64le | Advisory build | 0.28.0-1.1 | OPENSUSE-SU-2025:15844-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cpp-httplib-devels390x | Advisory build | 0.28.0-1.1 | OPENSUSE-SU-2025:15844-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cpp-httplib-develx86_64 | Advisory build | 0.28.0-1.1 | OPENSUSE-SU-2025:15844-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcpp-httplib0_28aarch64 | Advisory build | 0.28.0-1.1 | OPENSUSE-SU-2025:15844-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcpp-httplib0_28ppc64le | Advisory build | 0.28.0-1.1 | OPENSUSE-SU-2025:15844-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcpp-httplib0_28s390x | Advisory build | 0.28.0-1.1 | OPENSUSE-SU-2025:15844-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcpp-httplib0_28x86_64 | Advisory build | 0.28.0-1.1 | OPENSUSE-SU-2025:15844-1 |
| Ubuntu | jammy | libcpp-httplib0 | Advisory build | 0.10.3+ds-1ubuntu0.1~esm1 | USN-7962-1 |
| Ubuntu | noble | libcpp-httplib0.14t64 | Advisory build | 0.14.3+ds-1.1ubuntu0.1~esm1 | USN-7962-1 |
| Ubuntu | questing | libcpp-httplib0.18 | Advisory build | 0.18.7-1ubuntu0.25.10.1 | USN-7962-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 10.0 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| yhirose | cpp-httplib | < 0.27.0 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-290 CWE-290: Authentication Bypass by Spoofing
- CWE-345 CWE-345: Insufficient Verification of Data Authenticity
- CWE-807 CWE-807: Reliance on Untrusted Inputs in a Security Decision
References
2Provider assertions
2GitHub_M · cna
cpp-httplib Untrusted HTTP Header Handling: Internal Header Shadowing (REMOTE*/LOCAL*)
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b7c5099d512a091b25ee88398d3bb7275fa043490cc9ef33859fb5086ed33caa
- Ingested
- 23 Sep 2026, 08:56:35 UTC
- Source record
- Official CVE record