cve.bz

CVE-2025-27111 rack rack: CRLF Injection

6.9 mediumEPSS 0.8%Fix available

Medium (6.9) in rack rack. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in rack 2.2.12, 3.0.13, 3.1.11.

On this page
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.

Severity

CVSS 4.0

6.9 medium
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

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 56th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-03-04. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-93 Improper Neutralization of CRLF Sequences (CRLF Injection)
CWE-117 Improper Output Neutralization for Logs
OWASP Top 10
A05:2025 Injection, A09:2025 Logging & Alerting Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-27111 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-27111?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-27111?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-27111 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
rack:rackbefore 2.2.12
rack:rackfrom 3.0.0 before 3.0.13
rack:rackfrom 3.1.0 before 3.1.11

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-8cgq-6mh2-7j6vRubyGemsrack<2.2.122.2.12
GHSA-8cgq-6mh2-7j6vRubyGemsrack>=3.0 <3.0.133.0.13
GHSA-8cgq-6mh2-7j6vRubyGemsrack>=3.1 <3.1.113.1.11

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11ruby-rack2.1.4-3+deb11u3DLA-4090-1
Debian12ruby-rack2.2.13-1~deb12u1DEBIAN-CVE-2025-27111 DSA-5886-1
Debian13, 14ruby-rack3.1.12-1DEBIAN-CVE-2025-27111
Ubuntu24.04:LTSruby-rack2.2.7-1ubuntu0.2UBUNTU-CVE-2025-27111 USN-7366-1
Ubuntu25.04ruby-rack2.2.7-1.1ubuntu0.25.04.2USN-7366-2
Ubuntu25.10, 26.04:LTSruby-rack3.1.16-0.1UBUNTU-CVE-2025-27111
UbuntuPro:14.04:LTSruby-rack1.5.2-3+deb8u3ubuntu1~esm9UBUNTU-CVE-2025-27111 USN-7366-1
UbuntuPro:16.04:LTSruby-rack1.6.4-3ubuntu0.2+esm7UBUNTU-CVE-2025-27111 USN-7366-1
UbuntuPro:18.04:LTSruby-rack1.6.4-4ubuntu0.2+esm7UBUNTU-CVE-2025-27111 USN-7366-1
UbuntuPro:20.04:LTSruby-rack2.0.7-2ubuntu0.1+esm6UBUNTU-CVE-2025-27111 USN-7366-1
UbuntuPro:22.04:LTSruby-rack2.1.4-5ubuntu1.1+esm1UBUNTU-CVE-2025-27111 USN-7366-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise High Availability Extension 15 SP4, Linux Enterprise High Availability Extension 15 SP5 and 1 morerubygem-rack2.0.8-150000.3.26.1SUSE-SU-2025:0874-1
openSUSELeap 15.6rubygem-rack2.0.8-150000.3.26.1SUSE-SU-2025:0874-1
openSUSELeap 15.6rubygem-rack-1_61.6.8-150000.3.6.1SUSE-SU-2025:1492-1
openSUSETumbleweedrubygem-rack3.1.12-1.1openSUSE-SU-2025:14875-1
openSUSETumbleweedrubygem-rack3.1.18-1.3openSUSE-SU-2026:10358-1
openSUSETumbleweedrubygem-rack-2.22.2.12-1.1openSUSE-SU-2025:14859-1
openSUSETumbleweedrubygem-rack-2.22.2.22-1.1openSUSE-SU-2026:10286-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

To mitigate this vulnerability, remove usage of Rack::Sendfile.

ProductPackageStateAdvisory
Logging Subsystem for Red Hat OpenShiftopenshift-logging/fluentd-rhel9Affected
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel9Will not fix
Red Hat Enterprise Linux 7pcsOut of support scope
Red Hat Enterprise Linux 8pcsOut of support scope
Red Hat Enterprise Linux 9rhel9/ruby-30Fix deferred
Red Hat Enterprise Linux 9rhel9/ruby-31Fix deferred
Red Hat Enterprise Linux 9ubi9/ruby-33Fix deferred
Red Hat Satellite 6rubygem-rackFix deferred
Red Hat Satellite 6satellite-capsule:el8/rubygem-rackAffected
Red Hat Satellite 6satellite:el8/rubygem-rackAffected
Red Hat Storage 3rubygem-rackOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-27111.

Attack patterns (CAPEC)

  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-93 Log Injection-Tampering-Forging Likelihood: High · Severity: High
  • CAPEC-268 Audit Log Manipulation

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON