cve.bz

CVE-2025-66577 yhirose cpp-httplib: Improper Output Neutralization for Logs

5.3 mediumExploit referenceEPSS 0.3%Fix available

Medium (5.3) in yhirose cpp-httplib. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 22nd percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2025-12-05. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-117 Improper Output Neutralization for Logs
CWE-807 Reliance on Untrusted Inputs in a Security Decision
OWASP Top 10
A06:2025 Insecure Design, A09:2025 Logging & Alerting Failures
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-66577 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-66577?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-66577?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-66577 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
yhirose:cpp-httplibbefore 0.27.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13cpp-httplibno fix listedDEBIAN-CVE-2025-66577
Debian14cpp-httplib0.41.0+ds-3DEBIAN-CVE-2025-66577
Ubuntu25.10cpp-httplib0.18.7-1ubuntu0.25.10.1UBUNTU-CVE-2025-66577
Ubuntu26.10, Pro:26.04:LTScpp-httplibno fix listedUBUNTU-CVE-2025-66577
UbuntuPro:22.04:LTScpp-httplib0.10.3+ds-1ubuntu0.1~esm1UBUNTU-CVE-2025-66577
UbuntuPro:24.04:LTScpp-httplib0.14.3+ds-1.1ubuntu0.1~esm1UBUNTU-CVE-2025-66577
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0cpp-httplib0.22.0-160000.3.1SUSE-SU-2026:20090-1
openSUSELeap 16.0cpp-httplib0.22.0-160000.3.1openSUSE-SU-2026:20056-1
openSUSETumbleweedcpp-httplib0.28.0-1.1openSUSE-SU-2025:15844-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Attack patterns (CAPEC)

  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-93 Log Injection-Tampering-Forging Likelihood: High · Severity: High
  • CAPEC-268 Audit Log Manipulation

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON