CVE-2025-66577: cpp-httplib - Log Poisoning
- Cve: CVE-2025-66577
- Name: cpp-httplib - Log Poisoning
- Description: cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to 0.27.0, a vulnerability allows attacker-controlled HTTP headers to influence server-visible metadata, logging, and authorization decisions. An attacker can supply X-Forwarded-For or X-Real-IP headers which get accepted unconditionally by get_client_ip() in docker/main.cc, causing access and error logs (nginx_access_logger / nginx_error_logger) to record spoofed client IPs (log poisoning / audit evasion). This vulnerability is fixed in 0.27.0.
- Impact: Attackers can spoof client IPs in server logs, enabling log poisoning and audit evasion.
- Remediation: Update to version 0.27.0 or later.
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.3
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- Epss score: 0.00294
- Epss percentile: 0.22308
- Assignee: [email protected]
- Published at: 2025-12-05T19:15:52Z
- Age in days: 354
- Modified at: 2026-06-17T09:57:03Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-66577
- Nvd status: analyzed
- Checked, none or zero: vulnerability impact, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: vulnerability type, requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-117 | Improper Output Neutralization for Logs |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-gfpf-r66f-5mh2 | nvd | 2025-12-05 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/yhirose/cpp-httplib/commit/ac9ebb0ee333ce8bf13523f487bdfad9518a2aff | nvd | Patch |
| https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-gfpf-r66f-5mh2 | nvd | Exploit, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| yhirose:cpp-httplib | < 0.27.0 | no | nvd | /v1/products/yhirose/cpp-httplib |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| yhirose/cpp-httplib | commit, security_advisory | yes | /v1/repositories/yhirose/cpp-httplib |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2025-12-05
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts