6.9medium
Escape Sequence Injection vulnerability in Rack lead to Possible Log Injection
- Severity
- 6.9medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.75% (higher than 56% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-8cgq-6mh2-7j6v
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| rack rack | < 2.2.12, >= 3.0, < 3.0.13, >= 3.1, < 3.1.11, before 2.2.12, from 3.0.0 before 3.0.13, from 3.1.0 before 3.1.11 | CVE List, NVD |
| rack (RubyGems) | before 2.2.12, from 3.0 before 3.0.13, from 3.1 before 3.1.11 | GitHub Advisory Database |
All scores
| GitHub_M | 6.9medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Summary
Rack::Sendfile can be exploited by crafting input that includes newline characters to manipulate log entries.
Details
The Rack::Sendfile middleware logs unsanitized 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.
Impact
This vulnerability can distort log files, obscure attack traces, and complicate security auditing.
Mitigation
- Update to the latest version of Rack, or
- Remove usage of
Rack::Sendfile.
NVD (es)
Rack es una interfaz modular de servidor web Ruby. El middleware Rack::Sendfile registra valores de encabezado no depurados del encabezado X-Sendfile-Type. Un atacante puede aprovechar esto inyectando secuencias de escape (como caracteres de nueva línea) en el encabezado, lo que da como resultado la inyección de registros. Esta vulnerabilidad se corrigió en 2.2.12, 3.0.13 y 3.1.11.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-27111 changed 2025-11-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8cgq-6mh2-7j6v changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-27111 changed 2026-06-17 | Public domain |