Directory Traversal Affecting ruby3.2-rails-8.1 package, versions <8.1.3-r0


Severity

Recommended
0.0
critical
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.57% (46th 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-RUBY32RAILS81-15793796
  • published28 Mar 2026
  • disclosed24 Mar 2026

Introduced: 24 Mar 2026

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

How to fix?

Upgrade Wolfi ruby3.2-rails-8.1 to version 8.1.3-r0 or higher.

NVD Description

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

Active Storage allows users to attach cloud and local files in Rails applications. Prior to versions 8.1.2.1, 8.0.4.1, and 7.2.3.1, Active Storage's DiskService#path_for does not validate that the resolved filesystem path remains within the storage root directory. If a blob key containing path traversal sequences (e.g. ../) is used, it could allow reading, writing, or deleting arbitrary files on the server. Blob keys are expected to be trusted strings, but some applications could be passing user input as keys and would be affected. Versions 8.1.2.1, 8.0.4.1, and 7.2.3.1 contain a patch.

CVSS Base Scores

version 3.1