Direct naar de inhoud
⚡ Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-46527

HIGH · 7.5 CVSS Gepubliceerd: CWE-476

Beschrijving NL

cpp-httplib is een C++11 header-only cross-platform HTTP/HTTPS-bibliotheek met één bestand. Voorafgaand aan 0.44.0, wanneer de server Server::set_trusted_proxies() heeft aangeroepen met een niet-lege lijst met vertrouwde proxy's, kan een aanvaller een HTTP-verzoek verzenden dat een X-Forwarded-For-header bevat waarvan de waarde ontleedt tot geen geldige IP-segmenten. Het codepad voert vervolgens get_client_ip() uit, dat front() aanroept op een lege std::vector—undefined gedrag in C++. Bij typische implementaties manifesteert dit zich als abnormale procesbeëindiging (denial of service). Als Ontsmettingsmiddelen is ingeschakeld, krijg je een expliciete runtime-diagnose. Deze kwetsbaarheid is opgelost in 0.44.0.

Origineel (Engels) tonen

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.

Vendors

Yhirose

Affected products

Cpp-httplib

References