CVE-2025-66570CWE-290CWE-345CWE-807

cpp-httplib Untrusted HTTP Header Handling: Internal Header Shadowing (REMOTE*/LOCAL*)

Critical · published December 5, 2025

CVSS v3.1
10.0
EPSS
0%
Percentile
25.8
In the wild
Unconfirmed
What it is

🚨 A clever twist in header handling means an attacker can play puppet master with your server's metadata! 🔥 Think of this vulnerability like a restaurant where diners can write their own names on the guest list. If the host doesn’t double-check those names, anyone could waltz in under a false identity, altering dining preferences and maybe even the bill! An attacker can exploit this oversight to spoof IP addresses, poison logs, or even bypass authorization checks, leading to unauthorized data access or manipulation. It's like someone slipping a false ticket to enter a high-security area—extremely risky!

Put simply

Think of this vulnerability like a restaurant where diners can write their own names on the guest list. If the host doesn’t double-check those names, anyone could waltz in under a false identity, altering dining preferences and maybe even the bill! The vulnerability arises from improper handling of HTTP headers in cpp-httplib, allowing attacker-controlled headers to overwrite server-inserted metadata. This header shadowing can result in compromised logging and authorization decisions.

What to do

An attacker can exploit this oversight to spoof IP addresses, poison logs, or even bypass authorization checks, leading to unauthorized data access or manipulation. It's like someone slipping a false ticket to enter a high-security area—extremely risky! Upgrade cpp-httplib to version 0.27.0 or later immediately. Review and sanitize any headers that your application relies upon, ensuring that they’re validated before processing. Additionally, log any suspicious header usage for monitoring. You've got this! With these steps, you'll keep your application safe and sound. 🛡️

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00336 · 25.8th percentile
Weaknesses
CWE-290 · Authentication Bypass by Spoofing; CWE-345 · Insufficient Verification of Data Authenticity; CWE-807 · Reliance on Untrusted Inputs in a Security Decision
Published
2025-12-05T18:18Z
EPSS history
Timeline
  • 05 DEC 18:18Z
    cpp-httplib Untrusted HTTP Header Handling: Internal Header Shadowing (REMOTE*/LOCAL*)
    cvelistv5