CVE-2025-27111

Log Injection
Affects
Rack
in
Rails
No items found.
Versions
<2.2.12, <3.0.13, <3.1.11

Patch Available.

Exclamation circle icon
Patch Available

This Vulnerability has been fixed in the Never-Ending Support (NES) version offered by HeroDevs.

Overview

Rack is a modular Ruby web server interface. The Rack::Sendfile middleware logs unsanitised header values from the X-Sendfile-Type header, allowing an attacker toinject escape sequences (such as newline characters) into the header, resulting in log injection.

‍

This vulnerability affects Rack versions prior to 2.2.12, 3.0.13, and 3.1.11.

‍

Details

Module Info

  • ‍Product: Rack‍
  • Affected packages: rack‍
  • Affected versions: <2.2.12, <3.0.13, <3.1.11‍
  • Github repository: https://github.com/rack/rack‍
  • Published packages: https://rubygems.org/gems/rack‍
  • Package manager: RubyGems‍
  • Fixed in: Rack v2.2.12, v3.0.13, v3.1.11

‍

Vulnerability Info

The vulnerability stems from improper neutralization of escape sequences in log entries, specifically the X-Sendfile-Type header in the Rack::Sendfile middleware. This allows attackers to manipulate log files by injecting newline characters, whichcan obscure attack traces and complicate security audits.

‍

Steps To Reproduce

‍

1. Set up a web server using a vulnerable version of Rack.

2. Send an HTTP request with a malicious X-Sendfile-Type header containing newline characters.

3. Observe the manipulation of log entries due to the unsanitized header value.

‍

Mitigation

  • Upgrade to the latest version of Rack 4+.
  • If unable to upgrade, consider seeking assistance from a commercial support partner like HeroDevs.

‍

Credit

N/A

Vulnerability Details
Severity
Level
CVSS Assessment
Low
>=0 <4
Medium
>=4 <6
High
>=6 <8
Critical
>=8 <10
Medium
ID
CVE-2025-27111
PROJECT Affected
Rack
Versions Affected
<2.2.12, <3.0.13, <3.1.11
NES Versions Affected
Published date
March 4, 2025
≈ Fix date
March 4, 2025
Category
Log Injection
Vex Document
Download VEXHow do I use it?
Sign up for the latest vulnerability alerts fixed in
NES for Ruby on Rails
Rss feed icon
Subscribe via RSS
or

By submitting the form I acknowledge receipt of our Privacy Policy.

Thanks for signing up for our Newsletter! We look forward to connecting with you.
Oops! Something went wrong while submitting the form.