Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. rack
  4. ›
  5. CVE-2026-22860

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

February 17, 2026 (updated February 24, 2026)

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.

References

  • github.com/advisories/GHSA-mxw3-3hh2-x2mh
  • github.com/rack/rack
  • github.com/rack/rack/commit/75c5745c286637a8f049a33790c71237762069e7
  • github.com/rack/rack/security/advisories/GHSA-mxw3-3hh2-x2mh
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2026-22860.yml
  • nvd.nist.gov/vuln/detail/CVE-2026-22860

Code Behaviors & Features

Detect and mitigate CVE-2026-22860 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 3.0.0.beta1 before 3.1.20, all versions before 2.2.22, all versions starting from 3.2.0 before 3.2.5

Fixed versions

  • 2.2.22
  • 3.1.20
  • 3.2.5

Solution

Upgrade to versions 2.2.22, 3.1.20, 3.2.5 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-548: Exposure of Information Through Directory Listing

Source file

gem/rack/CVE-2026-22860.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:26 +0000.