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.
Advisories
Source ID Title
Debian DLA Debian DLA DLA-4090-1 ruby-rack security update
Debian DSA Debian DSA DSA-5886-1 ruby-rack security update
EUVD EUVD EUVD-2025-6155 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.
Github GHSA Github GHSA GHSA-8cgq-6mh2-7j6v Escape Sequence Injection vulnerability in Rack lead to Possible Log Injection
Ubuntu USN Ubuntu USN USN-7366-1 Rack vulnerabilities
Ubuntu USN Ubuntu USN USN-7366-2 Rack vulnerabilities
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Fri, 10 Oct 2025 16:45:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:*
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N'}

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N'}


Wed, 05 Mar 2025 14:45:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N'}

threat_severity

Moderate


Tue, 04 Mar 2025 16:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 04 Mar 2025 15:45:00 +0000

Type Values Removed Values Added
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.
Title Escape Sequence Injection vulnerability in Rack lead to Possible Log Injection
Weaknesses CWE-117
CWE-93
References
Metrics cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2025-03-04T15:44:37.460Z

Reserved: 2025-02-18T16:44:48.766Z

Link: CVE-2025-27111

cve-icon Vulnrichment

Updated: 2025-03-04T15:44:32.673Z

cve-icon NVD

Status : Analyzed

Published: 2025-03-04T16:15:40.487

Modified: 2025-10-10T16:40:09.310

Link: CVE-2025-27111

cve-icon Redhat

Severity : Moderate

Publid Date: 2025-03-04T15:26:55Z

Links: CVE-2025-27111 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2025-07-13T11:07:04Z