{"id":"CVE-2025-27111","aliases":["GHSA-8cgq-6mh2-7j6v"],"url":"https://o3.security/vulnerability/CVE-2025-27111","summary":"Escape Sequence Injection vulnerability in Rack lead to Possible Log Injection","details":"## Summary\n\n`Rack::Sendfile` can be exploited by crafting input that includes newline characters to manipulate log entries.\n\n## Details\n\nThe `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.\n\n## Impact\n\nThis vulnerability can distort log files, obscure attack traces, and complicate security auditing.\n\n## Mitigation\n\n- Update to the latest version of Rack, or\n- Remove usage of `Rack::Sendfile`.","published":"2025-03-04T15:26:55.377Z","modified":"2026-08-12T03:51:12.101421493Z","cvss":null,"epss":{"score":0.00729,"percentile":0.51467,"asOf":"2026-08-24"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"RubyGems","name":"rack","fixedVersion":"2.2.12"},{"ecosystem":"RubyGems","name":"rack","fixedVersion":"3.0.13"},{"ecosystem":"RubyGems","name":"rack","fixedVersion":"3.1.11"}],"fix":{"url":"https://github.com/rack/rack/commit/803aa221e8302719715e224f4476e438f2531a53","label":"rack/rack@803aa22"},"references":[{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00016.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27111.json"},{"type":"ADVISORY","url":"https://github.com/rack/rack/security/advisories/GHSA-8cgq-6mh2-7j6v"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-27111"},{"type":"FIX","url":"https://github.com/rack/rack/commit/803aa221e8302719715e224f4476e438f2531a53"},{"type":"FIX","url":"https://github.com/rack/rack/commit/aeac570bb8080ca7b53b7f2e2f67498be7ebd30b"},{"type":"FIX","url":"https://github.com/rack/rack/commit/b13bc6bfc7506aca3478dc5ac1c2ec6fc53f82a3"},{"type":"PACKAGE","url":"https://github.com/rack/rack"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2025-27111.yml"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:12.101421493Z"}}