7.5High

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

rack rack; Red Hat Logging Subsystem for Red Hat OpenShift; Red Hat Red Hat 3scale API Management Platform 2; Red Hat Red Hat Enterprise Linux 10 Published: (9 months ago)

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.

Weakness (CWE): CWE-22CWE-548

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
rack rack < 2.2.22, >= 3.0.0.beta1, < 3.1.20, >= 3.2.0, < 3.2.5
Red Hat Logging Subsystem for Red Hat OpenShift —
Red Hat Red Hat 3scale API Management Platform 2 all versions
Red Hat Red Hat Enterprise Linux 10 —
Red Hat Red Hat Enterprise Linux 7 —
Red Hat Red Hat Enterprise Linux 8 —
Red Hat Red Hat Enterprise Linux 9 —

References and patches

CPE matches (NVD) (3)

  • cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:* < 2.2.22
  • cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:* ≥ 3.0.0 < 3.1.20
  • cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:* ≥ 3.2.0 < 3.2.5