Vulnerability · Published Mar 4, 2025 · Assigned by GitHub_M
CVE-2025-27111Escape Sequence Injection vulnerability in Rack lead to Possible Log Injection
Medium 6.9
In plain English
A medium-severity security flaw in rack from rack. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 55% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ruby-rack | 2.2.13-1~deb12u1 | DEBIAN-CVE-2025-27111 |
| Debian:12 | ruby-rack | 2.2.13-1~deb12u1 | DSA-5886-1 |
| Debian:13 | ruby-rack | 3.1.12-1 | DEBIAN-CVE-2025-27111 |
| Debian:14 | ruby-rack | 3.1.12-1 | DEBIAN-CVE-2025-27111 |
| RubyGems | rack | 3.1.11 | GHSA-8cgq-6mh2-7j6v |
| RubyGems | rack | 2.2.12 | GHSA-8cgq-6mh2-7j6v |
| RubyGems | rack | 3.0.13 | GHSA-8cgq-6mh2-7j6v |
| Ubuntu:24.04:LTS | ruby-rack | 2.2.7-1ubuntu0.2 | USN-7366-1 |
| Ubuntu:24.04:LTS | ruby-rack | 2.2.7-1ubuntu0.2 | UBUNTU-CVE-2025-27111 |
| Ubuntu:25.10 | ruby-rack | 3.1.16-0.1 | UBUNTU-CVE-2025-27111 |
| Ubuntu:26.04:LTS | ruby-rack | 3.1.16-0.1 | UBUNTU-CVE-2025-27111 |
Affected products (as reported)
Weakness: CWE-93, CWE-117 · Vector: 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
References
- https://github.com/rack/rack/security/advisories/GHSA-8cgq-6mh2-7j6v x_refsource_CONFIRM
- https://github.com/rack/rack/commit/803aa221e8302719715e224f4476e438f2531a53 x_refsource_MISC
- https://github.com/rack/rack/commit/aeac570bb8080ca7b53b7f2e2f67498be7ebd30b x_refsource_MISC
- https://github.com/rack/rack/commit/b13bc6bfc7506aca3478dc5ac1c2ec6fc53f82a3 x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2025/03/msg00016.html