CVE-2025-27610

Local File Inclusion in Rack::Static

Published Mar 10, 2025 CVSS 3.1 · 7.5 High EPSS 1.2% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4090-1 ruby-rack security update
Debian DSA Debian DSA DSA-5886-1 ruby-rack security update
EUVD EUVD EUVD-2025-7800 Local File Inclusion in Rack::Static
Github GHSA Github GHSA GHSA-7wqh-767x-r66v Local File Inclusion in Rack::Static
Ubuntu USN Ubuntu USN USN-7366-1 Rack vulnerabilities
Ubuntu USN Ubuntu USN USN-7366-2 Rack vulnerabilities
History
Type Values Removed Values Added
First Time appeared Rack
Rack rack
CPEs cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:*
Vendors & Products Rack
Rack rack
Type Values Removed Values Added
CPEs cpe:/a:redhat:satellite:6.17::el9
cpe:/a:redhat:satellite_capsule:6.17::el9
Type Values Removed Values Added
CPEs cpe:/a:redhat:logging:5.9::el9
Type Values Removed Values Added
First Time appeared Redhat logging
CPEs cpe:/a:redhat:logging:5.8::el9
Vendors & Products Redhat logging
Type Values Removed Values Added
First Time appeared Redhat
Redhat satellite
Redhat satellite Capsule
CPEs cpe:/a:redhat:satellite:6.14::el8
cpe:/a:redhat:satellite:6.15::el8
cpe:/a:redhat:satellite:6.16::el8
cpe:/a:redhat:satellite:6.16::el9
cpe:/a:redhat:satellite_capsule:6.14::el8
cpe:/a:redhat:satellite_capsule:6.15::el8
cpe:/a:redhat:satellite_capsule:6.16::el8
cpe:/a:redhat:satellite_capsule:6.16::el9
Vendors & Products Redhat
Redhat satellite
Redhat satellite Capsule
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Local File Inclusion in Rack::Static
Weaknesses CWE-23
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 3, 2025, 9:13 PM
Reserved
Mar 3, 2025, 3:10 PM
Status
Modified
Published
Mar 10, 2025, 11:15 PM
Modified
Jun 17, 2026, 9:03 AM
Severity
Important
Public date
Mar 10, 2025, 10:19 PM