{"id":"CVE-2025-27111","published":"2025-03-04T15:26:55Z","modified":"2025-11-03T21:13:11Z","title":"Escape Sequence Injection vulnerability in Rack lead to Possible Log Injection","vendor":"rack","product":"rack","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0075,"percentile":0.55886,"provenance":"source"},"cwes":[{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"},{"id":"CWE-117","name":"Improper Output Neutralization for Logs"}],"references":[{"url":"https://github.com/rack/rack/security/advisories/GHSA-8cgq-6mh2-7j6v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rack/rack/commit/803aa221e8302719715e224f4476e438f2531a53","tags":["x_refsource_MISC"]},{"url":"https://github.com/rack/rack/commit/aeac570bb8080ca7b53b7f2e2f67498be7ebd30b","tags":["x_refsource_MISC"]},{"url":"https://github.com/rack/rack/commit/b13bc6bfc7506aca3478dc5ac1c2ec6fc53f82a3","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00016.html","tags":[]}],"priority":{"score":16.0,"factors":[{"name":"EPSS percentile","points":11.18},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"rack","affectedVersions":[{"vendor":"rack","product":"rack","versions":["< 2.2.12",">= 3.0, < 3.0.13",">= 3.1, < 3.1.11"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-03-04T15:44:28.099807Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"rack","vulnerableRanges":["<2.2.12",">=3.0, <3.0.13",">=3.1, <3.1.11"],"patched":["2.2.12","3.0.13","3.1.11"],"from":["GHSA-8cgq-6mh2-7j6v"],"provenance":"source"}],"summary":{"text":"The Rack web server interface's Rack::Sendfile middleware logs unsanitised values from the X-Sendfile-Type header, which allows escape sequences such as newlines to be injected into log output. An unauthenticated remote attacker who can send HTTP requests to the application can trigger this with no special configuration or user interaction, forging or corrupting log entries.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:27:07Z"},"euvd":{"id":"EUVD-2025-6155","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-rack-cve-2025-27111","children":[{"from":"CVE-2025-27111","to":"CVE-2025-61780","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/rack/sendfile.rb"],"commits":["https://github.com/rack/rack/commit/803aa221e8302719715e224f4476e438f2531a53","https://github.com/rack/rack/commit/aeac570bb8080ca7b53b7f2e2f67498be7ebd30b","https://github.com/rack/rack/commit/57277b7741581fa827472c5c666f6e6a33abd784","https://github.com/rack/rack/commit/7e69f65eefe9cd2868df9f9f3b0977b86f93523a"],"basis":"shared function","functions":["call"]}]}],"packageHistory":[{"cve":"CVE-2024-26146","published":"2024-02-28","fixed":"3.0.9.1","kev":false},{"cve":"CVE-2024-39316","published":"2024-07-02","fixed":"3.1.5","kev":false},{"cve":"CVE-2025-25184","published":"2025-02-12","fixed":"3.1.10","kev":false,"link":{"from":"CVE-2025-25184","to":"CVE-2025-27111","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:rack","fromFixed":"2.2.11","toFixed":"2.2.12","daysApart":20},{"kind":"version-step","provenance":"source","package":"RubyGems:rack","fromFixed":"3.0.12","toFixed":"3.0.13","daysApart":20}]}},{"cve":"CVE-2025-27111","published":"2025-03-04","fixed":"3.1.11","kev":false},{"cve":"CVE-2025-27610","published":"2025-03-10","fixed":"3.1.12","kev":false,"link":{"from":"CVE-2025-27111","to":"CVE-2025-27610","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:rack","fromFixed":"2.2.12","toFixed":"2.2.13","daysApart":6},{"kind":"version-step","provenance":"source","package":"RubyGems:rack","fromFixed":"3.0.13","toFixed":"3.0.14","daysApart":6}]}},{"cve":"CVE-2025-46727","published":"2025-05-07","fixed":"3.1.14","kev":false},{"cve":"CVE-2025-49007","published":"2025-06-04","fixed":"3.1.16","kev":false}],"package":"RubyGems:rack"}}