Advisory

GHSA-8cgq-6mh2-7j6v

Also known as: CVE-2025-27111

Summary

Escape Sequence Injection vulnerability in Rack lead to Possible Log Injection

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-03-04 15:27 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

rack

RubyGems · All systems

Affected

  • introduced 0, fixed 2.2.12 (ecosystem)

Fixed versions

2.2.12

Fix

The export has no generic command for this ecosystem.

rack

RubyGems · All systems

Affected

  • introduced 3.0, fixed 3.0.13 (ecosystem)

Fixed versions

3.0.13

Fix

The export has no generic command for this ecosystem.

rack

RubyGems · All systems

Affected

  • introduced 3.1, fixed 3.1.11 (ecosystem)

Fixed versions

3.1.11

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences