CVE-2026-46527
published high CVSS 4.0 · 8.7cpp-httplib: Malicious `X-Forwarded-For` Under Trusted-Proxy Configuration Triggers Empty `vector::front()`, Leading to Undefined Behavior and Server Crash
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| yhirose | — | cpp-httplib< 0.44.0 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | openSUSE-Tumbleweed | cpp-httplib-develaarch64 | Advisory build | 0.46.1-1.1 | OPENSUSE-SU-2026:10994-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cpp-httplib-develppc64le | Advisory build | 0.46.1-1.1 | OPENSUSE-SU-2026:10994-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cpp-httplib-devels390x | Advisory build | 0.46.1-1.1 | OPENSUSE-SU-2026:10994-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cpp-httplib-develx86_64 | Advisory build | 0.46.1-1.1 | OPENSUSE-SU-2026:10994-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcpp-httplib0_46aarch64 | Advisory build | 0.46.1-1.1 | OPENSUSE-SU-2026:10994-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcpp-httplib0_46ppc64le | Advisory build | 0.46.1-1.1 | OPENSUSE-SU-2026:10994-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libcpp-httplib0_46s390x | Advisory build | 0.46.1-1.1 | OPENSUSE-SU-2026:10994-1 |
Show 1 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | libcpp-httplib0_46x86_64 | Advisory build | 0.46.1-1.1 | OPENSUSE-SU-2026:10994-1 |
Description
cpp-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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| yhirose | cpp-httplib | < 0.44.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-476 CWE-476: NULL Pointer Dereference
References
1Provider assertions
2GitHub_M · cna
cpp-httplib: Malicious `X-Forwarded-For` Under Trusted-Proxy Configuration Triggers Empty `vector::front()`, Leading to Undefined Behavior and Server Crash
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 42c040e14512f72e2342759f9f562059bc6b3156d368a66196b9b338b62b736c
- Ingested
- 23 Sep 2026, 09:16:38 UTC
- Source record
- Official CVE record