# CVE-2025-27610: ruby-rack: Rack provides an interface for developing web applications in Ruby

CVE-2025-27610 is fixed in 3 products on 1 platform, first by ruby-rack 1.6.4-4ubuntu0.2+esm7, released March 10, 2025. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2025-27610
- Priority: High
- CVSS: 7.5 (Medium)
- EPSS: 0.0117
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Mar 10, 2025

## Description

Rack provides an interface for developing web applications in Ruby. Priorto versions 2.2.13, 3.0.14, and 3.1.12, `Rack::Static` can serve filesunder the specified `root:` even if `urls:` are provided, which may exposeother files under the specified `root:` unexpectedly. The vulnerabilityoccurs because `Rack::Static` does not properly sanitize user-suppliedpaths before serving files. Specifically, encoded path traversal sequencesare not correctly validated, allowing attackers to access files outside thedesignated static file directory. By exploiting this vulnerability, anattacker 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. Othermitigations include removing usage of `Rack::Static`, or ensuring that`root:` points at a directory path which only contains files which shouldbe accessed publicly. It is likely that a CDN or similar static file serverwould also mitigate the issue.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | ruby-rack Debian 12.15 (bookworm) | 2.2.13-1~deb12u1 | [DEBIAN-CVE-2025-27610](https://patchblox.com/security/data/fix/linux/debian-cve-2025-27610.md) | Mar 10, 2025 |
| Linux | ruby-rack Debian 13.5 (trixie) | 3.1.12-1 | [DEBIAN-CVE-2025-27610](https://patchblox.com/security/data/fix/linux/debian-cve-2025-27610.md) | Mar 10, 2025 |
| Linux | ruby-rack Debian 14 | 3.1.12-1 | [DEBIAN-CVE-2025-27610](https://patchblox.com/security/data/fix/linux/debian-cve-2025-27610.md) | Mar 10, 2025 |
| Linux | ruby-rack Ubuntu 18.04.6 LTS (bionic) | 1.6.4-4ubuntu0.2+esm7 | [ruby-rack 1.6.4-4ubuntu0.2+esm7](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-ruby-rack-1.6.4-4ubuntu0.2-esm7.md) | Mar 10, 2025 |
| Linux | ruby-rack Ubuntu 20.04 LTS (focal) | 2.0.7-2ubuntu0.1+esm6 | [ruby-rack 2.0.7-2ubuntu0.1+esm6](https://patchblox.com/security/data/fix/linux/ubuntu-focal-ruby-rack-2.0.7-2ubuntu0.1-esm6.md) | Mar 10, 2025 |
| Linux | ruby-rack Ubuntu 22.04.1 LTS (jammy) | 2.1.4-5ubuntu1.1+esm1 | [ruby-rack 2.1.4-5ubuntu1.1+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-ruby-rack-2.1.4-5ubuntu1.1-esm1.md) | Mar 10, 2025 |
| Linux | ruby-rack Ubuntu 24.04.5 LTS (noble) | 2.2.7-1ubuntu0.2 | [ruby-rack 2.2.7-1ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-noble-ruby-rack-2.2.7-1ubuntu0.2.md) | Mar 10, 2025 |
| Linux | ruby-rack Ubuntu 24.10 (oracular) | 2.2.7-1.1ubuntu0.1 | [ruby-rack 2.2.7-1.1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-ruby-rack-2.2.7-1.1ubuntu0.1.md) | Jan 16, 2026 |
| Linux | ruby-rack Ubuntu 25.04 (plucky) | 2.2.7-1.1ubuntu0.25.04.2 | [ruby-rack 2.2.7-1.1ubuntu0.25.04.2](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-ruby-rack-2.2.7-1.1ubuntu0.25.04.2.md) | Jan 16, 2026 |
| Linux | ruby-rack Ubuntu 25.10 (questing) | 3.1.16-0.1 | [ruby-rack 3.1.16-0.1](https://patchblox.com/security/data/fix/linux/ubuntu-questing-ruby-rack-3.1.16-0.1.md) | May 7, 2025 |
| Linux | ruby-rack Ubuntu 26.04.1 LTS (resolute) | 3.1.16-0.1 | [ruby-rack 3.1.16-0.1](https://patchblox.com/security/data/fix/linux/ubuntu-resolute-ruby-rack-3.1.16-0.1.md) | May 7, 2025 |
| Linux | rubygem-rack opensuse-leap 15.6 | 2.0.8-150000.3.26.1 | [SUSE-SU-2025:0874-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0874-1.md) | Mar 14, 2025 |
| Linux | rubygem-rack sles 15.6 | 2.0.8-150000.3.26.1 | [SUSE-SU-2025:0874-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0874-1.md) | Mar 14, 2025 |
| Linux | rubygem-rack-1_6 opensuse-leap 15.6 | 1.6.8-150000.3.3.1 | [SUSE-SU-2025:0858-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0858-1.md) | Mar 13, 2025 |

---

Data as of 2026-11-08T19:12:23Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
