CVE-2025-27610 Details
Description
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.
A local file inclusion vulnerability has been identified in the Rack web application interface for Ruby. This issue affects Rack versions prior to 2.2.13, as well as versions 3.0.0 through 3.0.14 and 3.1.0 through 3.1.12. The vulnerability arises because the Rack::Static component does not properly sanitize user-supplied paths before serving files, allowing encoded path traversal sequences to be exploited. As a result, attackers can access files outside the designated static file directory, potentially exposing sensitive information.
Users are advised to update Rack to version 2.2.13, 3.0.14, or 3.1.12. Alternatively, remove the use of Rack::Static or ensure that the root directory only contains files meant to be publicly accessible. Using a CDN or similar static file server can also help mitigate the issue.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 11, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-23 | Relative Path Traversal | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| rack rack | < 2.2.13 >= 3.0.0, < 3.0.14 >= 3.1.0, < 3.1.12 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Oct 10, 2025 | Initial Analysis | [email protected] |
| Mar 10, 2025 | New CVE Received | [email protected] |