CVE-2025-27111
MEDIUM 6.9CVSS 4.0Escape Sequence Injection vulnerability in Rack lead to Possible Log Injection
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.
- Published
- 4 Mar 2025
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-117CWE-93
- Also known as
- GHSA-8cgq-6mh2-7j6v
- Sources
- NVDJSONOSV GHSA-8cgq-6mh2-7j6vJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 6.9 | 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 |
| OSV | GitHub | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rack | rackcpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:* |
< 2.2.12 | 2.2.12 |
| NVD | rack | rackcpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:* |
>= 3.0.0, < 3.0.13 | 3.0.13 |
| NVD | rack | rackcpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:* |
>= 3.1.0, < 3.1.11 | 3.1.11 |
| OSV | RubyGems | rack | < 2.2.12 | 2.2.12 |
| OSV | RubyGems | rack | >= 3.0, < 3.0.13 | 3.0.13 |
| OSV | RubyGems | rack | >= 3.1, < 3.1.11 | 3.1.11 |
References
- 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://github.com/rack/rack/security/advisories/GHSA-8cgq-6mh2-7j6v · Mitigation, Vendor Advisory, 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
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 4 Mar 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 4 Mar 2025)