CVE-2025-27610 | Local File Inclusion in Rack::Static

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.

Published: 2025-03-10 Last update: 2026-06-17 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2025-27610 is rated Moderate Risk (50.8/100): CVSS High severity, with medium exploitation likelihood (EPSS 1.07%). Mandatory action: Review affected assets and schedule remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2025-27610

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 1.35% 1.07% -0.29%
2 2026-06-02 1.85% 1.35% -0.50%
3 2026-05-29 1.85%

Full EPSS history (17 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2025-27610

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
7.5 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 3.6 [email protected]

Weakness enumeration for CVE-2025-27610

GitHub Security Advisory for CVE-2025-27610

GHSA-7wqh-767x-r66v · Severity: high · Ecosystem: rubygems — Local File Inclusion in Rack::Static

OS Trackers for CVE-2025-27610

vendor priority summary link
debian not yet assigned CVE-2025-27610 not yet assigned priority: Debian including 1 source packages (ruby-rack), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2025-27610
redhat high https://access.redhat.com/security/cve/CVE-2025-27610
suse high https://www.suse.com/security/cve/CVE-2025-27610/
ubuntu medium CVE-2025-27610 medium priority: Ubuntu including 1 source packages (ruby-rack), 10 status rows across 10 suites (bionic, focal, jammy, noble, oracular, plucky, questing, trusty, upstream, xenial): released 10. https://ubuntu.com/security/CVE-2025-27610

Affected software / configurations for CVE-2025-27610

Vendor Product Version Raw CPE
rack rack < 2.2.13 cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:*
rack rack >= 3.0.0, < 3.0.14 cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:*
rack rack >= 3.1.0, < 3.1.12 cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:*

References for CVE-2025-27610

cvelogic Threat Intelligence