# CVE-2026-33195: Rails Active Storage has possible Path Traversal in DiskService

- Severity: High 8.0 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.65%, higher than 52% of CVEs (2026-12-01)
- Published: 2026-03-23T21:17:19.000Z
- Modified: 2026-09-10T03:51:00.286Z
- Also known as: GHSA-9xrj-h377-fr87
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- rails activestorage: >= 8.1.0.beta1, < 8.1.2.1; >= 8.0.0.beta1, < 8.0.4.1; < 7.2.3.1
- 3scale-amp20/system: no versions given
- 3scale-amp21/system: no versions given
- 3scale-amp21/zync: no versions given
- 3scale-amp22/system: no versions given
- 3scale-amp22/zync: no versions given
- 3scale-amp24/system: no versions given
- 3scale-amp24/zync: no versions given
- 3scale-amp25/system: no versions given
- 3scale-amp25/zync: no versions given
- 3scale-amp26/system: no versions given
- 3scale-amp26/zync: no versions given
- 3scale-amp2/system-rhel7: no versions given
- 3scale-amp2/system-rhel8: no versions given
- 3scale-amp2/system-rhel9: no versions given
- 3scale-amp2/zync-rhel7: no versions given
- 3scale-amp2/zync-rhel8: no versions given
- 3scale-amp2/zync-rhel9: no versions given
- activestorage (RubyGems): from 8.1.0.beta1 before 8.1.2.1; from 8.0.0.beta1 before 8.0.4.1; before 7.2.3.1
- rubyonrails rails: before 7.2.3.1; from 8.0.0 before 8.0.4.1; from 8.1.0 before 8.1.2.1

## Every score

- GitHub_M: CVSS:4.0 8.0 High `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`
- redhat-SADP: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/rails/rails/security/advisories/GHSA-9xrj-h377-fr87> (vendor-advisory, web)
- <https://github.com/rails/rails/commit/4933c1e3b8c1bb04925d60347be9f69270392f2c> (patch, web)
- <https://github.com/rails/rails/commit/9b06fbc0f504b8afe333f33d19548f3b85fbe655> (patch, web)
- <https://github.com/rails/rails/commit/a290c8a1ec189d793aa6d7f2570b6a763f675348> (patch, web)
- <https://github.com/rails/rails/releases/tag/v7.2.3.1> (release-notes, web)
- <https://github.com/rails/rails/releases/tag/v8.0.4.1> (release-notes, web)
- <https://github.com/rails/rails/releases/tag/v8.1.2.1> (release-notes, web)
- <https://access.redhat.com/security/cve/CVE-2026-33195> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2450546> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-33195.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33195> (advisory)
- <https://github.com/rails/rails> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2026-33195.yml> (web)

## Sources

- CVE List: [CVE-2026-33195](https://www.cve.org/CVERecord?id=CVE-2026-33195), CVE Terms of Use, modified 2026-08-19
- GitHub Advisory Database: [GHSA-9xrj-h377-fr87](https://github.com/advisories/GHSA-9xrj-h377-fr87), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-33195](https://nvd.nist.gov/vuln/detail/CVE-2026-33195), Public domain, modified 2026-07-15

---

Page: https://cve.day/CVE-2026-33195 · Whole record: https://cve.day/CVE-2026-33195.json · Rebuilt by cve.day 2026-11-25T22:59:16.510Z
