CVE-2025-27111

Escape Sequence Injection vulnerability in Rack lead to Possible Log Injection

State
Published
Severity
6.9 Medium
Published
Mar 4, 2025
Updated
Nov 3, 2025
Reserved
Feb 18, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.06.9 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:NGitHub_M

Weaknesses

  • CWE-93 Improper Neutralization of CRLF Sequences ('CRLF Injection')
  • CWE-117 Improper Output Neutralization for Logs

Affected Products

ProductVersions
rackrack
  • < 2.2.12Affected
  • >= 3.0, < 3.0.13Affected
  • >= 3.1, < 3.1.11Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.