Vulnerability 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Yhirose | Cpp-Httplib | < 0.27.0 |
Related Weaknesses (CWE)
References
- https://github.com/yhirose/cpp-httplib/commit/ac9ebb0ee333ce8bf13523f487bdfad951Patch
- https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-gfpf-r66f-5mh2ExploitThird Party Advisory
FAQ
What is CVE-2025-66577?
CVE-2025-66577 is a vulnerability with a CVSS score of 5.3 (MEDIUM). 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...
How severe is CVE-2025-66577?
CVE-2025-66577 has been rated MEDIUM with a CVSS base score of 5.3/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2025-66577?
Check the references section above for vendor advisories and patch information. Affected products include: Yhirose Cpp-Httplib.