# CVE-2025-66577: cpp-httplib Untrusted HTTP Header Handling: X-Forwarded-For/X-Real-IP Trust

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-12-05T18:20:25.852Z
- Modified: 2026-06-17T09:57:03.687Z
- Weaknesses: CWE-117, CWE-807
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- yhirose cpp-httplib: < 0.27.0; before 0.27.0

## References

- <https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-gfpf-r66f-5mh2> (exploit, third-party-advisory)
- <https://github.com/yhirose/cpp-httplib/commit/ac9ebb0ee333ce8bf13523f487bdfad9518a2aff> (patch)

## Sources

- CVE List: [CVE-2025-66577](https://www.cve.org/CVERecord?id=CVE-2025-66577), CVE Terms of Use, modified 2025-12-05
- NVD: [CVE-2025-66577](https://nvd.nist.gov/vuln/detail/CVE-2025-66577), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-66577 · Whole record: https://cve.day/CVE-2025-66577.json · Rebuilt by cve.day 2026-11-25T22:59:08.351Z
