Skip to content
OpenAdvisories
Medium · 6.9 CVE-2025-27111 EUVD-2025-6155GHSA-8cgq-6mh2-7j6v

Escape Sequence Injection vulnerability in Rack lead to Possible Log Injection

Published Mar 4, 2025 · Updated Nov 3, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
rack rack < 2.2.12, >= 3.0, < 3.0.13, >= 3.1, < 3.1.11 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ruby-rack 3.1.12-1 —
Debian 13 ruby-rack 3.1.12-1 —
Debian 12 ruby-rack 2.2.13-1~deb12u1 DSA-5886-1
Debian 11 ruby-rack 2.1.4-3+deb11u3 DLA-4090-1
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS ruby-rack 3.1.16-0.1 —
Ubuntu 25.10 ruby-rack 3.1.16-0.1 —
Ubuntu 25.04 ruby-rack 2.2.7-1.1ubuntu0.25.04.2 USN-7366-2
Ubuntu 24.04 LTS ruby-rack 2.2.7-1ubuntu0.2 USN-7366-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS ruby-rack 2.1.4-5ubuntu1.1+esm1 USN-7366-1
Ubuntu Pro 20.04 LTS ruby-rack 2.0.7-2ubuntu0.1+esm6 USN-7366-1
Ubuntu Pro 18.04 LTS ruby-rack 1.6.4-4ubuntu0.2+esm7 USN-7366-1
Ubuntu Pro 16.04 LTS ruby-rack 1.6.4-3ubuntu0.2+esm7 USN-7366-1
Ubuntu Pro 14.04 LTS ruby-rack 1.5.2-3+deb8u3ubuntu1~esm9 USN-7366-1
ReleasePackageFixed inAdvisory
SLES 15 SP6 rubygem-rack 2.0.8-150000.3.26.1 SUSE-SU-2025:0874-1
SLES 15 SP5 rubygem-rack 2.0.8-150000.3.26.1 SUSE-SU-2025:0874-1
SLES 15 SP4 rubygem-rack 2.0.8-150000.3.26.1 SUSE-SU-2025:0874-1
SLES 15 SP3 rubygem-rack 2.0.8-150000.3.26.1 SUSE-SU-2025:0874-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed rubygem-rack 3.1.12-1.1 openSUSE-SU-2026:10358-1, openSUSE-SU-2025:14875-1
openSUSE Tumbleweed rubygem-rack-2.2 2.2.12-1.1 openSUSE-SU-2026:10286-1, openSUSE-SU-2025:14859-1
openSUSE Leap 15.6 rubygem-rack 2.0.8-150000.3.26.1 SUSE-SU-2025:0874-1
openSUSE Leap 15.6 rubygem-rack-1_6 1.6.8-150000.3.6.1 SUSE-SU-2025:1492-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 pcs +1 0.9.169-3.amzn2.3.0.4 ALAS2-2025-2822

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling logstash-8-with-output-opensearch 8.17.3-r1 —
Wolfi rolling ruby3.2-rack-2.2 +3 2.2.22-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems rack < 2.2.12 2.2.12 GHSA-8cgq-6mh2-7j6v
RubyGems rack >= 3.0, < 3.0.13 3.0.13 GHSA-8cgq-6mh2-7j6v
RubyGems rack >= 3.1, < 3.1.11 3.1.11 GHSA-8cgq-6mh2-7j6v

Advisories 12

References