# CVE-2025-27111: Escape Sequence Injection vulnerability in Rack lead to Possible Log Injection

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.75%, higher than 56% of CVEs (2026-12-01)
- Published: 2025-03-04T15:26:55.377Z
- Modified: 2026-09-10T03:50:22.988Z
- Also known as: GHSA-8cgq-6mh2-7j6v
- Weaknesses: CWE-93, CWE-117
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- 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
- rack (RubyGems): before 2.2.12; from 3.0 before 3.0.13; from 3.1 before 3.1.11

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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: CVSS:4.0 Medium `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: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/rack/rack/security/advisories/GHSA-8cgq-6mh2-7j6v> (mitigation, vendor-advisory, web)
- <https://github.com/rack/rack/commit/803aa221e8302719715e224f4476e438f2531a53> (patch, web)
- <https://github.com/rack/rack/commit/aeac570bb8080ca7b53b7f2e2f67498be7ebd30b> (patch, web)
- <https://github.com/rack/rack/commit/b13bc6bfc7506aca3478dc5ac1c2ec6fc53f82a3> (patch, web)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00016.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-27111> (advisory)
- <https://github.com/rack/rack> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2025-27111.yml> (web)

## Sources

- CVE List: [CVE-2025-27111](https://www.cve.org/CVERecord?id=CVE-2025-27111), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-8cgq-6mh2-7j6v](https://github.com/advisories/GHSA-8cgq-6mh2-7j6v), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-27111](https://nvd.nist.gov/vuln/detail/CVE-2025-27111), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-27111 · Whole record: https://cve.day/CVE-2025-27111.json · Rebuilt by cve.day 2026-11-25T22:58:54.963Z
