CVE-2025-27610
rack: rubygem-rack: Local File Inclusion in Rack::Static
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · March 11, 2025
Updated · July 12, 2026
Description
A flaw was found in RackRubygems, where 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. This flaw allows an attacker to gain access to all files under the specified root directory, provided they can determine the file's path.
Statement
This is an Important vulnerability because it allows attackers to bypass urls: restrictions and access unintended files under the root: directory using encoded path traversal. Since Rack::Static is often used to serve public assets, any sensitive files within the same root—like credentials, configs, or source code—can be exposed. The flaw breaks expected isolation between public and private files, and since it’s exploitable remotely without authentication, the impact is far more severe than a moderate issue.
PCS does not use Rack::StaticHandler to serve files; static files are served by Tornado.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
CVSS / CWE
CVSS 3.1 · 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CWE-23 · Relative Path Traversal