Ubuntu CVE Tracker
UBUNTU-CVE-2025-27111
Details
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
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:14.04:LTS | ruby-rack | All versions before 1.5.2-3+deb8u3ubuntu1~esm9 (fixed in 1.5.2-3+deb8u3ubuntu1~esm9) |
| Ubuntu:Pro:16.04:LTS | ruby-rack | All versions before 1.6.4-3ubuntu0.2+esm7 (fixed in 1.6.4-3ubuntu0.2+esm7) |
| Ubuntu:Pro:18.04:LTS | ruby-rack | All versions before 1.6.4-4ubuntu0.2+esm7 (fixed in 1.6.4-4ubuntu0.2+esm7) |
| Ubuntu:Pro:20.04:LTS | ruby-rack | All versions before 2.0.7-2ubuntu0.1+esm6 (fixed in 2.0.7-2ubuntu0.1+esm6) |
| Ubuntu:Pro:22.04:LTS | ruby-rack | All versions before 2.1.4-5ubuntu1.1+esm1 (fixed in 2.1.4-5ubuntu1.1+esm1) |
| Ubuntu:24.04:LTS | ruby-rack | All versions before 2.2.7-1ubuntu0.2 (fixed in 2.2.7-1ubuntu0.2) |
| Ubuntu:25.10 | ruby-rack | All versions before 3.1.16-0.1 (fixed in 3.1.16-0.1) |
| Ubuntu:26.04:LTS | ruby-rack | All versions before 3.1.16-0.1 (fixed in 3.1.16-0.1) |
References
- https://ubuntu.com/security/CVE-2025-27111
- https://www.cve.org/CVERecord?id=CVE-2025-27111
- https://github.com/rack/rack/security/advisories/GHSA-8cgq-6mh2-7j6v
- https://github.com/rack/rack/commit/803aa221e8302719715e224f4476e438f2531a53
- https://github.com/rack/rack/commit/aeac570bb8080ca7b53b7f2e2f67498be7ebd30b
- https://github.com/rack/rack/commit/b13bc6bfc7506aca3478dc5ac1c2ec6fc53f82a3
- https://ubuntu.com/security/notices/USN-7366-1
- https://ubuntu.com/security/notices/USN-7366-2