# CVE-2026-22860: Rack has a Directory Traversal via Rack:Directory

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.78%, higher than 57% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-17T16:14:11.000Z
- Modified: 2026-09-10T03:50:35.448Z
- Also known as: GHSA-mxw3-3hh2-x2mh
- Weaknesses: CWE-22, CWE-548
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- rack rack: < 2.2.22; >= 3.0.0.beta1, < 3.1.20; >= 3.2.0, < 3.2.5; before 2.2.22; from 3.0.0 before 3.1.20; from 3.2.0 before 3.2.5
- openshift-logging/cluster-logging-operator-bundle: no versions given
- openshift-logging/cluster-logging-rhel9-operator: no versions given
- openshift-logging/eventrouter-rhel9: no versions given
- openshift-logging/fluentd-rhel9: no versions given
- openshift-logging/log-file-metric-exporter-rhel9: no versions given
- openshift-logging/logging-view-plugin-rhel9: no versions given
- openshift-logging/vector-rhel9: no versions given
- 3scale-amp20/backend: no versions given
- 3scale-amp20/system: no versions given
- 3scale-amp21/backend: no versions given
- 3scale-amp21/system: no versions given
- 3scale-amp21/zync: no versions given
- 3scale-amp22/backend: no versions given
- 3scale-amp22/system: no versions given
- 3scale-amp22/zync: no versions given
- 3scale-amp24/backend: no versions given
- 3scale-amp24/system: no versions given
- 3scale-amp24/zync: no versions given
- 3scale-amp25/backend: no versions given
- 3scale-amp25/system: no versions given
- 3scale-amp25/zync: no versions given
- 3scale-amp26/backend: no versions given
- 3scale-amp26/system: no versions given
- 3scale-amp26/zync: no versions given
- 3scale-amp2/backend-rhel7: no versions given
- 3scale-amp2/backend-rhel8: no versions given
- 3scale-amp2/system-rhel7: no versions given
- 3scale-amp2/system-rhel8: no versions given
- 3scale-amp2/system-rhel9: no versions given
- 3scale-amp2/zync-rhel7: no versions given
- 3scale-amp2/zync-rhel8: no versions given
- 3scale-amp2/zync-rhel9: no versions given
- pcs: no versions given
- rack (RubyGems): before 2.2.22; from 3.0.0.beta1 before 3.1.20; from 3.2.0 before 3.2.5

## Every score

- GitHub_M: 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`
- redhat-SADP: 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`
- GitHub: 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`

## References

- <https://github.com/rack/rack/security/advisories/GHSA-mxw3-3hh2-x2mh> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/rack/rack/commit/75c5745c286637a8f049a33790c71237762069e7> (patch, web)
- <https://access.redhat.com/security/cve/CVE-2026-22860> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2440737> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22860.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22860> (advisory)
- <https://github.com/rack/rack> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2026-22860.yml> (web)

## Sources

- CVE List: [CVE-2026-22860](https://www.cve.org/CVERecord?id=CVE-2026-22860), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-mxw3-3hh2-x2mh](https://github.com/advisories/GHSA-mxw3-3hh2-x2mh), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-22860](https://nvd.nist.gov/vuln/detail/CVE-2026-22860), Public domain, modified 2026-07-15

---

Page: https://cve.day/CVE-2026-22860 · Whole record: https://cve.day/CVE-2026-22860.json · Rebuilt by cve.day 2026-11-25T22:59:14.009Z
