Directory Traversal Affecting ruby4.0-rails-8.1 package, versions <8.1.2-r1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.76% (55th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-WOLFILATEST-RUBY40RAILS81-15414258
  • published5 Mar 2026
  • disclosed18 Feb 2026

Introduced: 18 Feb 2026

CVE-2026-22860  (opens in a new tab)
CWE-22  (opens in a new tab)
CWE-548  (opens in a new tab)

How to fix?

Upgrade Wolfi ruby4.0-rails-8.1 to version 8.1.2-r1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby4.0-rails-8.1 package and not the ruby4.0-rails-8.1 package as distributed by Wolfi. See How to fix? for Wolfi relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1