# CVE-2025-27111: Escape Sequence Injection vulnerability in Rack lead to Possible Log Injection

- Priority: **Routine**
- Reason: Not severe (CVSS 6.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-03-04 · Modified: 2025-11-03
- Aliases: UBUNTU-CVE-2025-27111, DEBIAN-CVE-2025-27111, CGA-2vpr-2crp-vv58, CGA-399j-wx66-h65g, CGA-5cq5-gmhg-c47w, CGA-fxvp-jr3r-h4jf, CGA-hvpq-v9f9-6m7p, CGA-jmjr-v959-2qjf, CGA-prqv-r367-fcfq, CGA-x43j-gjqw-gwgf, CGA-xm7p-8295-hmw9, CGA-xxvj-9ww5-33vw, SUSE-SU-2025:1492-1, openSUSE-SU-2025:14859-1, GHSA-8cgq-6mh2-7j6v
- Record: https://cvemate.com/vulnerability/CVE-2025-27111 · JSON: https://cvemate.com/vulnerability/CVE-2025-27111/json

## 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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- EPSS: 0.75%, percentile 56.337%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard logstash-8-with-output-opensearch (Chainguard): \< 8.17.3-r1
- chainguard ruby3.2-rack-2.2 (Chainguard): \< 2.2.22-r0
- chainguard ruby3.3-rack-2.2 (Chainguard): \< 2.2.22-r0
- chainguard ruby3.4-rack-2.2 (Chainguard): \< 2.2.22-r0
- chainguard ruby4.0-rack-2.2 (Chainguard): \< 2.2.22-r0
- wolfi logstash-8-with-output-opensearch (Wolfi): \< 8.17.3-r1
- wolfi ruby3.2-rack-2.2 (Wolfi): \< 2.2.22-r0
- wolfi ruby3.3-rack-2.2 (Wolfi): \< 2.2.22-r0
- wolfi ruby3.4-rack-2.2 (Wolfi): \< 2.2.22-r0
- wolfi ruby4.0-rack-2.2 (Wolfi): \< 2.2.22-r0
- debian ruby-rack (Debian): \< 2.2.13-1~deb12u1 \| \< 3.1.12-1
- ubuntu ruby-rack (Ubuntu): \< 1.5.2-3+deb8u3ubuntu1~esm9 \| \< 1.6.4-3ubuntu0.2+esm7 \| \< 1.6.4-4ubuntu0.2+esm7 \| \< 2.0.7-2ubuntu0.1+esm6 \| \< 2.1.4-5ubuntu1.1+esm1 \| \< 2.2.7-1ubuntu0.2 \| \< 3.1.16-0.1
- RubyGems rack (RubyGems): \< 2.2.12 \| ≥ 3.0, \< 3.0.13 \| ≥ 3.1, \< 3.1.11
- rack rack: ≥ 3.0, \< 3.0.13 \| ≥ 3.1, \< 3.1.11 \| \< 2.2.12 \| ≥ 3.0.0, \< 3.0.13 \| ≥ 3.1.0, \< 3.1.11
- opensuse rubygem-rack-1\_6&distro=openSUSE Leap 15.6 (openSUSE): \< 1.6.8-150000.3.6.1
- opensuse rubygem-rack-2.2&distro=openSUSE Tumbleweed (openSUSE): \< 2.2.12-1.1

## References

- <https://github.com/rack/rack/security/advisories/GHSA-8cgq-6mh2-7j6v>
- <https://github.com/rack/rack/commit/803aa221e8302719715e224f4476e438f2531a53>
- <https://github.com/rack/rack/commit/aeac570bb8080ca7b53b7f2e2f67498be7ebd30b>
- <https://github.com/rack/rack/commit/b13bc6bfc7506aca3478dc5ac1c2ec6fc53f82a3>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00016.html>
- <https://ubuntu.com/security/CVE-2025-27111>
- <https://www.cve.org/CVERecord?id=CVE-2025-27111>
- <https://ubuntu.com/security/notices/USN-7366-1>
- <https://ubuntu.com/security/notices/USN-7366-2>
- <https://security-tracker.debian.org/tracker/CVE-2025-27111>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27111.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-27111>
- <https://www.suse.com/support/update/announcement/2025/suse-su-20251492-1/>
- <https://bugzilla.suse.com/1238607>
- <https://www.suse.com/security/cve/CVE-2025-27111>
- <https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/OKCAFS3IZWKOR4IV3FPSCZBG2YTFRZTC/>
- <https://github.com/rack/rack>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2025-27111.yml>

---

Data as of 2026-12-05T09:39:48.433Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
