# Basecamp ActiveRecord Tenanted path traversal in DiskService

Source: https://junglewise.ai/threats/basecamp-activerecord-tenanted-path-traversal-in-diskservice-7babcfa2  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-29. Updated: 2026-07-29  
License: CC BY 4.0 with a link back

Severity: low · CVSS 2.3 · Published 2026-07-29

Active Record Tenanted, a library used for managing multi-tenant data in Ruby applications, contains a vulnerability in how it handles file storage paths. If an application allows users to influence file keys, an attacker could potentially read, write, or delete unauthorized files on the server. This could lead to data theft, data loss, or system instability.

Vendors: [RubyGems](https://junglewise.ai/threats/vendors/rubygems).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Low severity, with a CVSS score of 2.3, published 29 July 2026.

**Which products and versions are affected?** activerecord-tenanted (RubyGems) < 0.7.0.

**Is there a fix for This vulnerability?** A patch was published on 2026-06-08: Version 0.7.0 released Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is This vulnerability attacked?** It is attacked over the network, in a software library.

**Am I affected?** Check whether you run activerecord-tenanted (RubyGems) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A path traversal vulnerability exists in ActiveRecord::Tenanted::Storage::DiskService#path_for due to insufficient validation of resolved filesystem paths. The component fails to ensure that the resulting path remains within the designated storage root directory. If an attacker can provide a blob key containing traversal sequences like '../', they can potentially access, modify, or delete arbitrary files on the host filesystem. This exploit requires the application to pass untrusted user input as blob keys, which are typically expected to be trusted strings. The issue is fixed in version 0.7.0.

## Affected products

- Basecamp activerecord-tenanted < 0.7.0

## Timeline

- 2026-06-08: disclosed: Initial disclosure by flavorjones
- 2026-06-08: patched: Version 0.7.0 released
- 2026-07-29: advisory: GitHub Advisory published

## References

- [https://api.github.com/users/tonghuaroot](https://api.github.com/users/tonghuaroot)
- [https://github.com/tonghuaroot](https://github.com/tonghuaroot)
- [https://api.github.com/users/tonghuaroot/gists%7B/gist_id%7D](https://api.github.com/users/tonghuaroot/gists%7B/gist_id%7D)
- [https://api.github.com/users/tonghuaroot/repos](https://api.github.com/users/tonghuaroot/repos)
- [https://avatars.githubusercontent.com/u/23011166?v=4](https://avatars.githubusercontent.com/u/23011166?v=4)
- [https://api.github.com/users/tonghuaroot/events%7B/privacy%7D](https://api.github.com/users/tonghuaroot/events%7B/privacy%7D)
