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

High 7.5 Published Updated

Attackers can escape the configured root directory to list files outside the intended scope via crafted requests in Rack::Directory.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-22860?

CVE-2026-22860 is a high-severity path traversal vulnerability in rack, published on 18 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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-548, CWE-22

Which versions are affected by CVE-2026-22860?

6 open source packages ship an affected version, including rack. It affects 1 product.

PackageAffectedFixed in
rack RubyGemsAll versions2.2.22
rack RubyGemsAll versions2.2.22
rack RubyGemsFrom 3.0.0.beta13.1.20
rack RubyGemsFrom 3.0.0.beta13.1.20
rack RubyGemsFrom 3.2.03.2.5
rack RubyGemsFrom 3.2.03.2.5

Products include Rack Rack.

How do I fix CVE-2026-22860?

Upgrade rack to a fixed version for your release line: 2.2.22, 3.1.20 or 3.2.5.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-22860 being exploited?

There is no known exploitation of CVE-2026-22860 in the wild and no public exploit code.

Sources

Also known as CLEANSTART-2026-QD34337, CLEANSTART-2026-UK95444, DEBIAN-CVE-2026-22860, GHSA-mxw3-3hh2-x2mh, MINI-26gr-3rwv-v76j, MINI-2q5h-m77j-qrf4 and 21 more.

Is CVE-2026-22860 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free