cve.bz

CVE-2026-22860 rack rack: Path traversal

7.5 highExploit referenceEPSS 0.8%Fix available

High (7.5) in rack rack. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in rack 2.2.22, 3.1.20, 3.2.5.

On this page
Rack is a modular Ruby web server interface. Prior to versions 2.2.22, 3.1.20, and 3.2.5, `Rack::Directory`’s path check used a string prefix match on the expanded path. A request like `/../root_example/` can escape the configured root if the target path starts with the root string, allowing directory listing outside the intended root. Versions 2.2.22, 3.1.20, and 3.2.5 fix 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
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 57th 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 2026-02-18. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
CWE-548 Exposure of Information Through Directory Listing
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-2026-22860 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-22860?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-22860?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-2026-22860 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.22
rack:rackfrom 3.0.0 before 3.1.20
rack:rackfrom 3.2.0 before 3.2.5

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-mxw3-3hh2-x2mhRubyGemsrack<2.2.222.2.22
GHSA-mxw3-3hh2-x2mhRubyGemsrack>=3.0.0.beta1 <3.1.203.1.20
GHSA-mxw3-3hh2-x2mhRubyGemsrack>=3.2.0 <3.2.53.2.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11ruby-rack2.1.4-3+deb11u5DLA-4505-1
Debian12ruby-rack2.2.22-0+deb12u1DEBIAN-CVE-2026-22860 DSA-6180-1
Debian13ruby-rack3.1.20-0+deb13u1DEBIAN-CVE-2026-22860 DSA-6180-1
Debian14ruby-rack3.2.5-1DEBIAN-CVE-2026-22860
Ubuntu24.04:LTSruby-rack2.2.7-1ubuntu0.6UBUNTU-CVE-2026-22860
Ubuntu25.10ruby-rack3.1.16-0.1ubuntu0.2UBUNTU-CVE-2026-22860
Ubuntu26.04:LTS, 26.10ruby-rack3.2.4-1ubuntu1UBUNTU-CVE-2026-22860
UbuntuPro:14.04:LTS, Pro:16.04:LTS, Pro:18.04:LTSruby-rackno fix listedUBUNTU-CVE-2026-22860
UbuntuPro:20.04:LTSruby-rack2.0.7-2ubuntu0.1+esm9UBUNTU-CVE-2026-22860
UbuntuPro:22.04:LTSruby-rack2.1.4-5ubuntu1.2+esm2UBUNTU-CVE-2026-22860
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; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Red Hat

Red Hat rates this Important.

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
Logging Subsystem for Red Hat OpenShiftopenshift-logging/cluster-logging-operator-bundleNot affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/cluster-logging-rhel9-operatorNot affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/eventrouter-rhel9Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/fluentd-rhel9Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/log-file-metric-exporter-rhel9Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-view-plugin-rhel9Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/vector-rhel9Not affected
Red Hat 3scale API Management Platform 23scale-amp20/backendWill not fix
Red Hat 3scale API Management Platform 23scale-amp20/systemWill not fix
Red Hat 3scale API Management Platform 23scale-amp21/backendWill not fix
Red Hat 3scale API Management Platform 23scale-amp21/systemWill not fix
Red Hat 3scale API Management Platform 23scale-amp21/zyncWill not fix
Red Hat 3scale API Management Platform 23scale-amp22/backendWill not fix
Red Hat 3scale API Management Platform 23scale-amp22/systemWill not fix
Red Hat 3scale API Management Platform 23scale-amp22/zyncWill not fix
Red Hat 3scale API Management Platform 23scale-amp24/backendWill not fix
Red Hat 3scale API Management Platform 23scale-amp24/systemWill not fix
Red Hat 3scale API Management Platform 23scale-amp24/zyncWill not fix
Red Hat 3scale API Management Platform 23scale-amp25/backendWill not fix
Red Hat 3scale API Management Platform 23scale-amp25/systemWill not fix
16 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-2026-22860.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

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

References

Check your stackJSON