NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · RubyGems

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

mediumCVSS 4.0 6.9GHSA-8cgq-6mh2-7j6v

Summary Rack::Sendfile can be exploited by crafting input that includes newline characters to manipulate log entries. Details The Rack::Sendfile middleware logs unsanitized 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.

Published Mar 4, 2025 · Updated Nov 4, 2025

Affected packages

rack

Ecosystem
RubyGems
Affected
< 2.2.12
Fixed in
2.2.12
Check
bundle info rack

rack

Ecosystem
RubyGems
Affected
>= 3.0, < 3.0.13
Fixed in
3.0.13
Check
bundle info rack

rack

Ecosystem
RubyGems
Affected
>= 3.1, < 3.1.11
Fixed in
3.1.11
Check
bundle info rack

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Summary

Rack::Sendfile can be exploited by crafting input that includes newline characters to manipulate log entries.

Details

The Rack::Sendfile middleware logs unsanitized 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.

Impact

This vulnerability can distort log files, obscure attack traces, and complicate security auditing.

Mitigation

  • Update to the latest version of Rack, or
  • Remove usage of Rack::Sendfile.

Credited to Masamuneee, ioquatix, jeremyevans.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More RubyGems vulnerabilities

All RubyGems entries