VDB

CVE-2025-27111

CVE-2025-27111 PUBLISHED CVSS 6.9 MEDIUM

Escape Sequence Injection vulnerability in Rack lead to Possible Log Injection

Reported by github_m · Published March 4, 2025

rack is fixed in 3.1.11, 3.0.13 and 2.2.12 (RubyGems)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
rackRubyGems3.1.11, 3.0.13, 2.2.12
ruby3.3-rack-2.2Wolfi2.2.22-r0
pcs-snmpAmazon Linux0.9.169-3.amzn2.3.0.4
ruby3.3-rack-2.2Chainguard2.2.22-r0
ruby3.4-rack-2.2Chainguard2.2.22-r0
ruby3.2-rack-2.2Wolfi2.2.22-r0
ruby4.0-rack-2.2Chainguard2.2.22-r0
ruby3.2-rack-2.2Chainguard2.2.22-r0
pcsAmazon Linux0.9.169-3.amzn2.3.0.4
logstash-8Chainguard8.17.3-r1
ruby3.4-rack-2.2Wolfi2.2.22-r0
logstash-8Wolfi8.17.3-r1

3 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 4.0
6.9
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

Affected products

VendorProductVersions
rackrack< 2.2.12, >= 3.0, < 3.0.13, >= 3.1, < 3.1.11
wolfiruby3.3-rack-2.20
amazon:2pcs-snmp0
rackrack
chainguardruby3.3-rack-2.20
chainguardruby3.4-rack-2.20
wolfiruby3.2-rack-2.20
chainguardruby4.0-rack-2.20
chainguardruby3.2-rack-2.20
amazon:2pcs0
chainguardlogstash-80
RubyGemsrack0, 3.0, 3.1
wolfiruby3.4-rack-2.20
wolfilogstash-80
wolfiruby4.0-rack-2.20
chainguardlogstash-jre-bcfips0
rackrack3.0, 3.1, 0

Timeline

  • Mar 4, 2025 CVE Published
  • Mar 5, 2025 EPSS Score (30 in total, the first dated here)
  • Nov 3, 2025 CVE Updated
  • Mar 17, 2026 Security Advisory (3 in total, the first dated here)
  • Jun 15, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-27111
vulnetix vdb fixes CVE-2025-27111

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-27111/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›