Skip to main content
CVE-2025-66577VulnerabilityPublished

CVE-2025-66577: yhirose cpp-httplib · Log Injection

Affects yhirose cpp-httplibSource CVE Database V5

0

Not known to be exploited · CVSS 5.3 Medium : upgrade to 0.27.0 when convenient.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 19% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.27.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 5 Dec 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.

What to do

Upgrade yhirose/cpp-httplib to 0.27.0.

Affected software

ProductAffectedFixed in
GitHubyhirose/cpp-httplibpkg:github/yhirose/cpp-httplibOther threatsAffected
  • <0.27.0
Fixed in
  • 0.27.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

1. Upgrade cpp-httplib to version 0.27.0 or later immediately to apply the official fix. 2. Implement additional validation and sanitization of HTTP headers such as X-Forwarded-For and X-Real-IP at the application or proxy level to prevent spoofed IP addresses from being logged. 3. Configure logging systems to correlate client IPs with other metadata (e.g., TCP connection info) to detect inconsistencies indicative of spoofing. 4. Employ anomaly detection on logs to identify unusual patterns or impossible IP address sequences that may suggest log poisoning. 5. Harden access to logging infrastructure and restrict who can modify logging configurations to prevent tampering. 6. Conduct regular audits of logs and cross-check with network-level data to ensure log integrity. 7. For organizations using cpp-httplib in embedded or IoT devices, ensure firmware updates include the patched library version and verify update mechanisms are secure. 8. Educate security teams about the risks of log poisoning and the importance of validating client IP information.

Description

CVE-2025-66577 is a medium severity vulnerability in the cpp-httplib C++ HTTP/HTTPS library versions prior to 0.27.0. It involves improper output neutralization for logs (CWE-117), allowing attacker-controlled HTTP headers such as X-Forwarded-For or X-Real-IP to spoof client IP addresses in server logs. This can lead to log poisoning and audit evasion, potentially misleading administrators and security monitoring tools. The vulnerability does not impact confidentiality or availability but affects the integrity of log data. Exploitation requires no authentication or user interaction and can be performed remotely over the network. The issue is fixed in version 0.27.0.

References

Community reviews

Loading reviews…