Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. activerecord-tenanted
  4. ›
  5. GHSA-pmwx-rm49-xv39

GHSA-pmwx-rm49-xv39: ActiveRecord::Tenanted::Storage::DiskService#path_for has a possible path traversal

July 29, 2026

Active Record Tenanted’s override of 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.

References

  • github.com/advisories/GHSA-pmwx-rm49-xv39
  • github.com/basecamp/activerecord-tenanted/commit/b242c8ad9bf58bbd7f5a032d153b0f29db54b9ba
  • github.com/basecamp/activerecord-tenanted/pull/307
  • github.com/basecamp/activerecord-tenanted/releases/tag/v0.7.0
  • github.com/basecamp/activerecord-tenanted/security/advisories/GHSA-pmwx-rm49-xv39
  • github.com/rails/rails/security/advisories/GHSA-9xrj-h377-fr87

Code Behaviors & Features

Detect and mitigate GHSA-pmwx-rm49-xv39 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.7.0

Fixed versions

  • 0.7.0

Solution

Upgrade to version 0.7.0 or above.

Impact 5 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

gem/activerecord-tenanted/GHSA-pmwx-rm49-xv39.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:17:34 +0000.