Vulnerabilities

CVE-2026-22860

High 7.5 CVSS 3.1

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

References

Related at Berigo

Articles

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.

Check your asset list Browse all vulnerabilities