CVE-2025-27610
Publication date 10 March 2025
Last updated 30 May 2025
Ubuntu priority
Cvss 3 Severity Score
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.
Status
Package | Ubuntu Release | Status |
---|---|---|
ruby-rack | 25.04 plucky |
Vulnerable
|
24.10 oracular |
Fixed 2.2.7-1.1ubuntu0.1
|
|
24.04 LTS noble |
Fixed 2.2.7-1ubuntu0.2
|
|
22.04 LTS jammy |
Fixed 2.1.4-5ubuntu1.1+esm1
|
|
20.04 LTS focal |
Fixed 2.0.7-2ubuntu0.1+esm6
|
|
18.04 LTS bionic |
Fixed 1.6.4-4ubuntu0.2+esm7
|
|
16.04 LTS xenial |
Fixed 1.6.4-3ubuntu0.2+esm7
|
|
14.04 LTS trusty |
Fixed 1.5.2-3+deb8u3ubuntu1~esm9
|
Get expanded security coverage with Ubuntu Pro
Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.
Get Ubuntu ProSeverity score breakdown
Parameter | Value |
---|---|
Base score |
|
Attack vector | Network |
Attack complexity | Low |
Privileges required | None |
User interaction | None |
Scope | Unchanged |
Confidentiality | High |
Integrity impact | None |
Availability impact | None |
Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
References
Related Ubuntu Security Notices (USN)
- USN-7366-1
- Rack vulnerabilities
- 24 March 2025