BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2025-66577 in Yhirose Cpp-Httplib

Medium 5.3 Fix available

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

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.15.3
EPSS0.4%
EPSS percentile31th
FixAvailable

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Yhirose Cpp-Httplib < 0.27.0

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

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

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-66577
BreachSpider IDBS-2025-GLOBAL-028945-M
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Published2025-12-05
Last modified2025-12-11
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-117: CWE-117

CWE-807: CWE-807

Related attack patterns (CAPEC)

CAPEC-81 Web Server Logs Tampering via CWE-117

CAPEC-93 Log Injection-Tampering-Forging via CWE-117

CAPEC-268 Audit Log Manipulation via CWE-117

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A vulnerability in cpp-httplib prior to version 0.27.0 allows attackers to manipulate server-visible metadata, logging, and authorization decisions by injecting malicious X-Forwarded-For or X-Real-IP headers.

The vulnerability exists in the get_client_ip() function in docker/main.cc, where attacker-controlled HTTP headers are accepted without validation, leading to potential unauthorized access and log manipulation.

Questions

What is CVE-2025-66577?

A vulnerability in cpp-httplib prior to version 0.27.0 allows attackers to manipulate server-visible metadata, logging, and authorization decisions by injecting malicious X-Forwarded-For or X-Real-IP headers.

What is the CVSS score for CVE-2025-66577?

CVE-2025-66577 has CVSS 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N. EPSS: 0.4%.

Is CVE-2025-66577 actively exploited?

No confirmed active exploitation of CVE-2025-66577 as of 2026-05-30.

How do I remediate CVE-2025-66577?

Priority: HIGH.

What systems are affected by CVE-2025-66577?

CVE-2025-66577 affects Yhirose Cpp-Httplib.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Yhirose","product":"Cpp-Httplib","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2025-12-11.