CVE-2025-27111
Escape Sequence Injection vulnerability in Rack lead to Possible Log Injection
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
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.
Nhật Thái Đỗ discovered that Rack incorrectly handled certain usernames. A remote attacker could possibly use this issue to perform CRLF injection. Phạm Quang Minh discovered that Rack incorrectly handled certain headers. A remote attacker could possibly use this issue to perform log injection. Phạm Quang Minh discovered that Rack did not properly handle relative file paths. A remote attacker could potentially exploit this to include local files that should have been inaccessible.
CVSS Scores
SSVC
- Decision:Attend
Timeline
- 2025-02-18 CVE Reserved
- 2025-03-04 CVE Published
- 2025-03-04 CVE Updated
- 2025-03-30 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection')
- CWE-117: Improper Output Neutralization for Logs
CAPEC
References (4)
URL | Tag | Source |
---|---|---|
https://github.com/rack/rack/commit/803aa221e8302719715e224f4476e438f2531a53 | X_refsource_misc | |
https://github.com/rack/rack/commit/aeac570bb8080ca7b53b7f2e2f67498be7ebd30b | X_refsource_misc | |
https://github.com/rack/rack/commit/b13bc6bfc7506aca3478dc5ac1c2ec6fc53f82a3 | X_refsource_misc | |
https://github.com/rack/rack/security/advisories/GHSA-8cgq-6mh2-7j6v | X_refsource_confirm |
URL | Date | SRC |
---|
URL | Date | SRC |
---|
URL | Date | SRC |
---|
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Rack Search vendor "Rack" | Rack Search vendor "Rack" for product "Rack" | < 2.2.12 Search vendor "Rack" for product "Rack" and version " < 2.2.12" | en |
Affected
| ||||||
Rack Search vendor "Rack" | Rack Search vendor "Rack" for product "Rack" | >= 3.0.0 < 3.0.13 Search vendor "Rack" for product "Rack" and version " >= 3.0.0 < 3.0.13" | en |
Affected
| ||||||
Rack Search vendor "Rack" | Rack Search vendor "Rack" for product "Rack" | >= 3.1.0 < 3.1.11 Search vendor "Rack" for product "Rack" and version " >= 3.1.0 < 3.1.11" | en |
Affected
|