CVE-2025-27610

EUVD-2025-7800
Rack provides an interface for developing web applications in Ruby. Prior to versions 2.2.13, 3.0.14, and 3.1.12, `Rack::Static` can serve files under the specified `root:` even if `urls:` are provided, which may expose other files under the specified `root:` unexpectedly. The vulnerability occurs because `Rack::Static` does not properly sanitize user-supplied paths before serving files. Specifically, encoded path traversal sequences are not correctly validated, allowing attackers to access files outside the designated static file directory. By exploiting this vulnerability, an attacker can gain access to all files under the specified `root:` directory, provided they are able to determine then path of the file. Versions 2.2.13, 3.0.14, and 3.1.12 contain a patch for the issue. Other mitigations include removing usage of `Rack::Static`, or ensuring that `root:` points at a directory path which only contains files which should be accessed publicly. It is likely that a CDN or similar static file server would also mitigate the issue.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
7.5 HIGH
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Base Score
CVSS 3.x
EPSS Score
Percentile: 64.19%
Affected Products (NVD)
VendorProductVersion
rackrack
𝑥
< 2.2.13
rackrack
3.0.0 ≤
𝑥
< 3.0.14
rackrack
3.1.0 ≤
𝑥
< 3.1.12
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
ruby-rack
bookworm
2.2.22-0+deb12u1
fixed
bookworm (security)
2.2.22-0+deb12u2
fixed
bullseye
vulnerable
bullseye (security)
2.1.4-3+deb11u6
fixed
forky
3.2.6-3
fixed
sid
3.2.6-3
fixed
trixie
3.1.20-0+deb13u1
fixed
trixie (security)
3.1.20-0+deb13u1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
ruby-rack
bionic
Fixed 1.6.4-4ubuntu0.2+esm7
released
focal
Fixed 2.0.7-2ubuntu0.1+esm6
released
jammy
Fixed 2.1.4-5ubuntu1.1+esm1
released
noble
Fixed 2.2.7-1ubuntu0.2
released
oracular
Fixed 2.2.7-1.1ubuntu0.1
released
plucky
Fixed 2.2.7-1.1ubuntu0.25.04.2
released
questing
Fixed 3.1.16-0.1
released
resolute
Fixed 3.1.16-0.1
released
trusty
Fixed 1.5.2-3+deb8u3ubuntu1~esm9
released
xenial
Fixed 1.6.4-3ubuntu0.2+esm7
released