Impact
cpp‑httplib allows an attacker to trigger a crash by sending a malformed X‑Forwarded‑For header when the server has been configured with trusted proxies. The library calls the front() method on a std::vector that is empty, which is undefined behavior in C++. On common implementations this results in abnormal process termination, effectively denying service to legitimate clients.
Affected Systems
The vulnerability affects the yhirose:cpp‑httplib library in all releases prior to 0.44.0. Any project integrating these older versions and enabling Server::set_trusted_proxies() is at risk.
Risk and Exploitability
The CVSS score is 8.7, indicating a high‑severity flaw. The EPSS score is not reported, and the vulnerability is not listed in CISA’s KEV catalog. The attack vector is inferred to be remote, requiring the attacker to send a crafted HTTP request to a target server that has configured trusted proxies.
OpenCVE Enrichment