CVE-2025-27111
Ruby vulnerability analysis and mitigation

Overview

CVE-2025-27111 affects Rack, a modular Ruby web server interface. The vulnerability was discovered and disclosed on March 4, 2025, impacting versions < 2.2.12, >= 3.0 and < 3.0.13, and >= 3.1 and < 3.1.11. The issue resides in the Rack::Sendfile middleware which logs unsanitized header values from the X-Sendfile-Type header (GitHub Advisory).

Technical details

The vulnerability is classified as a log injection flaw (CWE-93, CWE-117) with a CVSS v4.0 Base Score of 6.9 (Medium). The issue occurs when the Rack::Sendfile middleware processes the X-Sendfile-Type header without proper sanitization, allowing attackers to inject escape sequences such as newline characters into the header (NVD, Red Hat).

Impact

The vulnerability can lead to log file manipulation, potentially allowing attackers to distort log files, obscure attack traces, and complicate security auditing processes. This can affect the integrity and reliability of system logs (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Rack versions 2.2.12, 3.0.13, and 3.1.11. Organizations are advised to update to these patched versions. As a workaround, if immediate updating is not possible, administrators can remove the usage of Rack::Sendfile (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management