Skip to main content
VulnerabilityPublished

Activerecord tenanted: ActiveRecord::Tenanted::Storage::DiskService#path_for has a possible path traversal

Affects activerecord-tenantedSource GCVE Database

0

CVSS 2.3 Low : upgrade to 0.7.0 when convenient.

Data as of 30 Jul 2026, 07:18 UTC

CVSS 4.0 base score
2.3Low
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 0.7.0
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

What to do

Upgrade activerecord-tenanted to 0.7.0.

Affected software

ProductAffectedFixed in
RubyGemsactiverecord-tenantedAffected
  • <0.7.0
Fixed in
  • 0.7.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade Active Record Tenanted to version 0.7.0 or later, where this vulnerability is fixed. As a workaround, ensure that blob keys are never derived from untrusted user input, since blob keys are expected to be trusted strings. No other specific mitigations are indicated.

Description

Active Record Tenanted versions prior to 0.7.0 contain a vulnerability in the override of Active Storage's DiskService#path_for method. This vulnerability allows path traversal by not validating that the resolved filesystem path remains within the storage root directory. If an attacker can supply a blob key with path traversal sequences, they could potentially read, write, or delete arbitrary files on the server. The issue arises when untrusted user input is used as blob keys, which are expected to be trusted strings. The vulnerability has a low severity rating and no known exploits in the wild. Upgrading to version 0.7.0 or later mitigates the issue.

References

Community reviews

Loading reviews…