CVE-2025-27111Rack
Medium 6.9 No auth needed
Follow: this CVE · Rack · Rack We alert you by email or Slack (account required).
- Priority
- 56
- CVSS 4.0
- 6.9
- EPSS
- —
- Auth required
- No
- Published
- Mar 4, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- 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/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
What happens
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.
What to do
- Apply the vendor's security update for Rack.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | rack |
< 2.2.12 |
2.2.12 |
gem "rack", ">= 2.2.12" |
| RubyGems | rack |
≥ 3.0 < 3.0.13 |
3.0.13 |
gem "rack", ">= 3.0.13" |
| RubyGems | rack |
≥ 3.1 < 3.1.11 |
3.1.11 |
gem "rack", ">= 3.1.11" |
Per OSV / GitHub Advisories (GHSA-8cgq-6mh2-7j6v). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rack | rack | < 2.2.12 |
| rack | rack | ≥ 3.0.0 < 3.0.13 |
| rack | rack | ≥ 3.1.0 < 3.1.11 |
Official advisories
- ruby4.0-rubygem-rack-3.1.18-1.3 on GA media · SUSE · openSUSE-SU-2026:10358-1 · Mar 13, 2026 Critical
- ruby4.0-rubygem-rack-2.2-2.2.22-1.1 on GA media · SUSE · openSUSE-SU-2026:10286-1 · Mar 4, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Patch
- github.com Mitigation Vendor Advisory
- lists.debian.org