cve.bz

CVE-2025-27610 rack rack: Relative Path Traversal

7.5 highEPSS 1.2%Fix available

High (7.5) in rack rack. EPSS 1.2% estimated probability of exploitation activity in the next 30 days. Fixed in rack 2.2.13, 3.0.14, 3.1.12.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
1.2% (unchanged from 1.2% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 68th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-03-11. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-23 Relative Path Traversal
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-27610 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-27610?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-27610?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-27610 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
rack:rackbefore 2.2.13
rack:rackfrom 3.0.0 before 3.0.14
rack:rackfrom 3.1.0 before 3.1.12

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-7wqh-767x-r66vRubyGemsrack<2.2.132.2.13
GHSA-7wqh-767x-r66vRubyGemsrack>=3.0 <3.0.143.0.14
GHSA-7wqh-767x-r66vRubyGemsrack>=3.1 <3.1.123.1.12

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11ruby-rack2.1.4-3+deb11u3DLA-4090-1
Debian12ruby-rack2.2.13-1~deb12u1DEBIAN-CVE-2025-27610 DSA-5886-1
Debian13, 14ruby-rack3.1.12-1DEBIAN-CVE-2025-27610
Ubuntu24.04:LTSruby-rack2.2.7-1ubuntu0.2UBUNTU-CVE-2025-27610 USN-7366-1
Ubuntu25.04ruby-rack2.2.7-1.1ubuntu0.25.04.2USN-7366-2
Ubuntu25.10, 26.04:LTSruby-rack3.1.16-0.1UBUNTU-CVE-2025-27610
UbuntuPro:14.04:LTSruby-rack1.5.2-3+deb8u3ubuntu1~esm9UBUNTU-CVE-2025-27610 USN-7366-1
UbuntuPro:16.04:LTSruby-rack1.6.4-3ubuntu0.2+esm7UBUNTU-CVE-2025-27610 USN-7366-1
UbuntuPro:18.04:LTSruby-rack1.6.4-4ubuntu0.2+esm7UBUNTU-CVE-2025-27610 USN-7366-1
UbuntuPro:20.04:LTSruby-rack2.0.7-2ubuntu0.1+esm6UBUNTU-CVE-2025-27610 USN-7366-1
UbuntuPro:22.04:LTSruby-rack2.1.4-5ubuntu1.1+esm1UBUNTU-CVE-2025-27610 USN-7366-1
Red Hatsatellite:6.14::el8rubygem-graphql0:1.13.24-1.el8satRHSA-2025:3492
Red Hatsatellite:6.14::el8, satellite_capsule:6.14::el8rubygem-rack0:2.2.13-1.el8satRHSA-2025:3492
Red Hatsatellite:6.15::el8rubygem-graphql0:1.13.24-1.el8satRHSA-2025:3491
Red Hatsatellite:6.15::el8, satellite_capsule:6.15::el8python-jinja2, python3.11-jinja20:3.1.5-1.el8pcRHSA-2025:3491
Red Hatsatellite:6.15::el8, satellite_capsule:6.15::el8rubygem-rack0:2.2.13-1.el8satRHSA-2025:3491
Red Hatsatellite:6.16::el8rubygem-graphql0:1.13.24-1.el8satRHSA-2025:3490
Red Hatsatellite:6.16::el8, satellite_capsule:6.16::el8rubygem-rack0:2.2.13-1.el8satRHSA-2025:3490
Red Hatsatellite:6.16::el9rubygem-graphql0:1.13.24-1.el9satRHSA-2025:3490
Red Hatsatellite:6.16::el9, satellite_capsule:6.16::el9rubygem-rack0:2.2.13-1.el9satRHSA-2025:3490
Red Hatsatellite:6.17::el9rubygem-graphql0:1.13.24-1.el9satRHSA-2025:4576
Red Hatsatellite:6.17::el9, satellite_capsule:6.17::el9python-django, python3.11-django0:4.2.19-1.el9pcRHSA-2025:4576
Red Hatsatellite:6.17::el9, satellite_capsule:6.17::el9python-jinja2, python3.11-jinja20:3.1.5-1.el9pcRHSA-2025:4576
1 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise High Availability Extension 15 SP4, Linux Enterprise High Availability Extension 15 SP5 and 1 morerubygem-rack2.0.8-150000.3.26.1SUSE-SU-2025:0874-1
openSUSELeap 15.6rubygem-rack2.0.8-150000.3.26.1SUSE-SU-2025:0874-1
openSUSELeap 15.6rubygem-rack-1_61.6.8-150000.3.3.1SUSE-SU-2025:0858-1
openSUSETumbleweedrubygem-rack-2.22.2.13-1.1openSUSE-SU-2025:14876-1
openSUSETumbleweedrubygem-rack-2.22.2.22-1.1openSUSE-SU-2026:10286-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's 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.

Red Hat's 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.

ProductPackageStateAdvisory
Red Hat Satellite 6.14 for RHEL 8rubygem-rack-0:2.2.13-1.el8satFixed 2025-04-01RHSA-2025:3492
Red Hat Satellite 6.15 for RHEL 8rubygem-rack-0:2.2.13-1.el8satFixed 2025-04-01RHSA-2025:3491
Red Hat Satellite 6.16 for RHEL 8rubygem-rack-0:2.2.13-1.el8satFixed 2025-04-01RHSA-2025:3490
Red Hat Satellite 6.16 for RHEL 9rubygem-rack-0:2.2.13-1.el9satFixed 2025-04-01RHSA-2025:3490
Red Hat Satellite 6.17 for RHEL 9rubygem-rack-0:2.2.13-1.el9satFixed 2025-05-06RHSA-2025:4576
RHOL-5.8-RHEL-9openshift-logging/cluster-logging-operator-bundle:v5.8.19-26Fixed 2025-04-02RHSA-2025:3448
RHOL-5.8-RHEL-9openshift-logging/cluster-logging-rhel9-operator:v5.8.19-11Fixed 2025-04-02RHSA-2025:3448
RHOL-5.8-RHEL-9openshift-logging/elasticsearch6-rhel9:v6.8.1-459Fixed 2025-04-02RHSA-2025:3448
RHOL-5.8-RHEL-9openshift-logging/elasticsearch-operator-bundle:v5.8.19-26Fixed 2025-04-02RHSA-2025:3448
RHOL-5.8-RHEL-9openshift-logging/elasticsearch-proxy-rhel9:v1.0.0-543Fixed 2025-04-02RHSA-2025:3448
RHOL-5.8-RHEL-9openshift-logging/elasticsearch-rhel9-operator:v5.8.19-10Fixed 2025-04-02RHSA-2025:3448
RHOL-5.8-RHEL-9openshift-logging/eventrouter-rhel9:v0.4.0-361Fixed 2025-04-02RHSA-2025:3448
RHOL-5.8-RHEL-9openshift-logging/fluentd-rhel9:v5.8.19-5Fixed 2025-04-02RHSA-2025:3448
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel9Affected
Red Hat Enterprise Linux 10pcsNot affected
Red Hat Enterprise Linux 7pcsNot affected
Red Hat Enterprise Linux 8pcsNot affected
Red Hat Enterprise Linux 9pcsNot affected
Red Hat Satellite 6satellite:el8/rubygem-rackAffected
Red Hat Storage 3rubygem-rackAffected
21 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-27610.

Attack patterns (CAPEC)

  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-139 Relative Path Traversal Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON