Activerecord tenanted: ActiveRecord::Tenanted::Storage::DiskService#path_for has a possible path traversal
Affects activerecord-tenantedSource GCVE Database
CVSS 2.3 Low : upgrade to 0.7.0 when convenient.
Data as of 30 Jul 2026, 07:18 UTC
- 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:NWhat to do
Upgrade activerecord-tenanted to 0.7.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| RubyGemsactiverecord-tenanted | Affected
| Fixed in
|
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
- github.com/basecamp/activerecord-tenanted/security/advisories/GHSA-pmwx-rm49-xv39 (opens in a new tab)
- github.com/rails/rails/security/advisories/GHSA-9xrj-h377-fr87 (opens in a new tab)
- github.com/basecamp/activerecord-tenanted/pull/307 (opens in a new tab)
- github.com/basecamp/activerecord-tenanted/commit/b242c8ad9bf58bbd7f5a032d153b0f29db54b9ba (opens in a new tab)
- github.com/basecamp/activerecord-tenanted (opens in a new tab)
- github.com/basecamp/activerecord-tenanted/releases/tag/v0.7.0 (opens in a new tab)