{"id":"CVE-2026-33195","published":"2026-03-23T23:31:41Z","modified":"2026-08-19T12:05:06Z","title":"Rails Active Storage has possible Path Traversal in DiskService","vendor":"rails","product":"activestorage","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00861,"percentile":0.56051,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/rails/rails/security/advisories/GHSA-9xrj-h377-fr87","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rails/rails/commit/4933c1e3b8c1bb04925d60347be9f69270392f2c","tags":["x_refsource_MISC"]},{"url":"https://github.com/rails/rails/commit/9b06fbc0f504b8afe333f33d19548f3b85fbe655","tags":["x_refsource_MISC"]},{"url":"https://github.com/rails/rails/commit/a290c8a1ec189d793aa6d7f2570b6a763f675348","tags":["x_refsource_MISC"]},{"url":"https://github.com/rails/rails/releases/tag/v7.2.3.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/rails/rails/releases/tag/v8.0.4.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/rails/rails/releases/tag/v8.1.2.1","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-33195","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2450546","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-33195.json","tags":["x_sadp-csaf-vex"]}],"priority":{"score":16.8,"factors":[{"name":"EPSS percentile","points":11.21},{"name":"CVSS severity","points":5.6}]},"vendorSlug":"rails","affectedVersions":[{"vendor":"rails","product":"activestorage","versions":[">= 8.1.0.beta1, < 8.1.2.1",">= 8.0.0.beta1, < 8.0.4.1","< 7.2.3.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-03-24T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"activestorage","vulnerableRanges":[">=8.1.0.beta1, <8.1.2.1",">=8.0.0.beta1, <8.0.4.1","<7.2.3.1"],"patched":["8.1.2.1","8.0.4.1","7.2.3.1"],"from":["GHSA-9xrj-h377-fr87"],"provenance":"source"}],"summary":{"text":"Active Storage's DiskService in Rails (the activestorage component of the rails product) does not verify that the resolved filesystem path from DiskService#path_for stays inside the storage root, so a blob key containing traversal sequences such as ../ can point outside it. An attacker who can reach the application over the network without authentication or user interaction can read, write, or delete arbitrary server files, but only in applications that pass user-controlled input as blob keys, since keys are otherwise assumed to be trusted.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:44Z"},"euvd":{"id":"EUVD-2026-14632","exploited":false,"provenance":"source"}}