CVE-2026-22860
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.
Description as published by the source, in English.
Key facts
- Published
- 2026-02-18
- Last modified
- 2026-07-15
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N- Scored by
- security-advisories@github.com
- Probability of exploitation
-
0.7 %
higher than 48 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Yes, see references
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| rack (RubyGems) | < 2.2.22 | Affected | |
| rack (RubyGems) | ≥ 3.0.0.beta1, < 3.1.20 | Affected | |
| rack (RubyGems) | ≥ 3.2.0, < 3.2.5 | Affected | |
| Rack | Rack | < 2.2.22 | Affected |
| Rack | Rack | ≥ 3.0.0, < 3.1.20 | Affected |
| Rack | Rack | ≥ 3.2.0, < 3.2.5 | Affected |
Weakness type
-
CWE-22: Improper Limitation of a Pathname to a Restricted Directory
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special ele…
-
CWE-548: Exposure of Information Through Directory Listing
The product inappropriately exposes a directory listing with an index of all the resources located inside of the directory.
References
- https://github.com/rack/rack/commit/75c5745c286637a8f049a33790c71237762069e7
- https://github.com/rack/rack/security/advisories/GHSA-mxw3-3hh2-x2mh
- https://access.redhat.com/security/cve/CVE-2026-22860
- https://bugzilla.redhat.com/show_bug.cgi?id=2440737
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22860.json
Related at Berigo
Articles
-
Swedish regulator fines a system supplier SEK 1.8 million after sick leave data leaked
Same product
2026-09-26
Sweden's data protection authority has fined Miljödata SEK 1.8 million over the August 2025 intrusion that the company itself says affected 2.2 milli…
-
A zero day in Magento was exploited for three days before Adobe shipped a fix
Same product
2026-09-26
Sansec has seen active exploitation of CVE-2026-75650 in Magento Open Source and Adobe Commerce since 4 September 2026. The flaw scores a maximum 10.…
-
Five remote hires turned out to be probable North Korean workers
Same product
2026-08-27
During 2026 Huntress supported investigations in which five remote employees were assessed as likely North Korean workers. The roles covered IT, sale…
-
Personal data exposed after a social engineering attack on Apollo
Same product
2026-08-25
Apollo has notified individuals that unauthorised users had access to certain cloud platforms between 6 and 10 July. The firm says names, dates of bi…
Services
-
CISO as a Service
With CISO as a Service, an external CISO from Berigo leads your security work and reports to management and the board. You get security leadership wi…
-
Secure Post-Merger Integration
Support for secure integration after acquisitions, mergers and carve-outs: from day-1 readiness to a consolidated ISMS and regulatory continuity.
-
ISO/IEC 27001: advisory and certification readiness
ISO/IEC 27001 advisory and an information security management system that is used in practice and able to withstand a certification audit. Choose a g…
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.