What’s Vulnerable › Vulnerabilities

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

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 products

How to fix

Upgrade to a fixed version: rack 2.2.12, 3.0.13, 3.1.11; Rubygems Rack 2.2.12, 3.0.13, 3.1.11. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-27111 or the next vulnerability affects your stack