CVE-2025-27111 in Rack
Rack is a modular Ruby web server interface. The Rack::Sendfile middleware logs unsanitised header values from the X-Sendfile-Type header. An attacker can exploit this by injecting escape sequences (such as newline characters) into the header, resulting in log injection. This vulnerability is fixed in 2.2.12, 3.0.13...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Rack | Rack | < 2.2.12 ≥ 3.0.0, < 3.0.13 ≥ 3.1.0, < 3.1.11 |
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.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
Rack is a modular Ruby web server interface. The Rack::Sendfile middleware logs unsanitised header values from the X-Sendfile-Type header. An attacker can exploit this by injecting escape sequences (such as newline characters) into the header, resulting in log injection. This vulnerability is fixed in 2.2.12, 3.0.13, and 3.1.11.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-27111 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-042133-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| Published | 2025-03-04 |
| Last modified | 2025-11-03 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-93: CWE-93
CWE-117: CWE-117
Related attack patterns (CAPEC)
CAPEC-81 Web Server Logs Tampering via CWE-93, CWE-117
CAPEC-93 Log Injection-Tampering-Forging via CWE-117
CAPEC-15 Command Delimiters via CWE-93
CAPEC-268 Audit Log Manipulation via CWE-117
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
Rack::Sendfile middleware logs unsanitized header values from the X-Sendfile-Type header, allowing log injection via escape sequences.
An attacker can inject escape sequences, such as newline characters, into the X-Sendfile-Type header, which can lead to log injection and potentially other log-related issues.
Questions
What is CVE-2025-27111?
Rack::Sendfile middleware logs unsanitized header values from the X-Sendfile-Type header, allowing log injection via escape sequences.
What is the CVSS score for CVE-2025-27111?
CVE-2025-27111 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N. EPSS: 0.8%.
Is CVE-2025-27111 actively exploited?
No confirmed active exploitation of CVE-2025-27111 as of 2026-05-30.
How do I remediate CVE-2025-27111?
Priority: MEDIUM. PSIRT: [email protected]
What systems are affected by CVE-2025-27111?
CVE-2025-27111 affects Rack Rack.
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":"Rack","product":"Rack","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2025-11-03.