Escape Sequence Injection vulnerability in Rack lead to Possible Log Injection
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Partial Red Hat: 7 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| rack | rack | before 2.2.12; 3.0 to before 3.0.13; 3.1 to before 3.1.11 | 2.2.12, 3.0.13, 3.1.11 | Patch available | CNA |
| — | rack (RubyGems) | before 2.2.12 | 2.2.12 | Patch available | GHSA-8cgq-6mh2-7j6v |
| — | rack (RubyGems) | 3.0 to before 3.0.13 | 3.0.13 | Patch available | GHSA-8cgq-6mh2-7j6v |
| — | rack (RubyGems) | 3.1 to before 3.1.11 | 3.1.11 | Patch available | GHSA-8cgq-6mh2-7j6v |
- rack Vendorrack Affected before 2.2.12; 3.0 to before 3.0.13; 3.1 to before 3.1.11 Fixed in 2.2.12, 3.0.13, 3.1.11 Patch available CNA
- rack (RubyGems) Vendor— Affected before 2.2.12 Fixed in 2.2.12 Patch available GHSA-8cgq-6mh2-7j6v
- rack (RubyGems) Vendor— Affected 3.0 to before 3.0.13 Fixed in 3.0.13 Patch available GHSA-8cgq-6mh2-7j6v
- rack (RubyGems) Vendor— Affected 3.1 to before 3.1.11 Fixed in 3.1.11 Patch available GHSA-8cgq-6mh2-7j6v
Remediation
- Fix · CNA rack (rack) Fixed in 2.2.12, 3.0.13, 3.1.11
- Fix · GHSA-8cgq-6mh2-7j6v rack (RubyGems) Fixed in 2.2.12 Advisory →
- Fix · GHSA-8cgq-6mh2-7j6v rack (RubyGems) Fixed in 3.0.13 Advisory →
- Fix · GHSA-8cgq-6mh2-7j6v rack (RubyGems) Fixed in 3.1.11 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Logging Subsystem for Red Hat OpenShift | Affected | No fix yet |
| Red Hat 3scale API Management Platform 2 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 8 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 9 | Affected | No fix yet: Fix deferred |
| Red Hat Satellite 6 | Affected | No fix yet |
| Red Hat Storage 3 | Affected | No fix planned: Out of support scope |
Timeline
- 2026-10-02 Threatist record created from CVE-2025-27111
- 2026-10-03 Alias added: GHSA-8cgq-6mh2-7j6v
References
Patch 3
Advisory 2
More Rack vulnerabilities
- TI-2024-16580 Rack ReDos in content type parsing (2nd degree polynomial) CVSS 3.1HIGH 7.5
- TI-2024-17236 Possible Denial of Service Vulnerability in Rack Header Parsing CVSS 3.1HIGH 7.5
- TI-2024-17231 Possible DoS Vulnerability with Range Header in Rack CVSS 3.1HIGH 7.5
- TI-2023-12254 Uncontrolled resource consumption in https://github.com/rack/rack CVSS 3.1HIGH 7.5
- TI-2025-38165 Rack's multipart parser buffers unbounded per-part headers, enabling DoS (memory exhaustion) CVSS 3.1HIGH 7.5
- TI-2025-38163 Rack's unbounded multipart preamble buffering enables DoS (memory exhaustion) CVSS 3.1HIGH 7.5
Sources
- CVE-2025-27111 · CVE Program
- CVE-2025-27111 · NVD
- FIRST EPSS
- GHSA-8cgq-6mh2-7j6v · GitHub Advisory Database · CC BY 4.0
- CVE-2025-27111 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences