CVE-2026-33195
JSON

8.0high

Rails Active Storage has possible Path Traversal in DiskService

Severity
8.0high CVSS:4.0 by GitHub_M
Exploit likelihood
0.65% (higher than 52% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-9xrj-h377-fr87

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.

Affected

Product or packageVersionsReported by
rails activestorage>= 8.1.0.beta1, < 8.1.2.1, >= 8.0.0.beta1, < 8.0.4.1, < 7.2.3.1CVE List
3scale-amp20/systemNot specifiedCVE List
3scale-amp21/systemNot specifiedCVE List
3scale-amp21/zyncNot specifiedCVE List
3scale-amp22/systemNot specifiedCVE List
3scale-amp22/zyncNot specifiedCVE List
3scale-amp24/systemNot specifiedCVE List
3scale-amp24/zyncNot specifiedCVE List
3scale-amp25/systemNot specifiedCVE List
3scale-amp25/zyncNot specifiedCVE List
3scale-amp26/systemNot specifiedCVE List
3scale-amp26/zyncNot specifiedCVE List

All scores

GitHub_M8.0high CVSS:4.0CVSS: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-SADP8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N
GitHubhigh CVSS:4.0CVSS: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
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-22

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

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.

Releases

The fixed releases are available at the normal locations.

Credit

This issue was responsibly reported by Hackerone researcher ksw9722.

NVD (es)

Active Storage permite a los usuarios adjuntar archivos locales y en la nube en aplicaciones Rails. Antes de las versiones 8.1.2.1, 8.0.4.1 y 7.2.3.1, 'DiskService#path_for' de Active Storage no valida que la ruta del sistema de archivos resuelta permanezca dentro del directorio raíz de almacenamiento. Si se utiliza una clave de blob que contiene secuencias de salto de ruta (por ejemplo, '../'), podría permitir la lectura, escritura o eliminación de archivos arbitrarios en el servidor. Se espera que las claves de blob sean cadenas de confianza, pero algunas aplicaciones podrían estar pasando entradas de usuario como claves y se verían afectadas. Las versiones 8.1.2.1, 8.0.4.1 y 7.2.3.1 contienen un parche.

References

https://github.com/rails/rails/security/advisories/GHSA-9xrj-h377-fr87vendor-advisory, web
https://github.com/rails/rails/commit/4933c1e3b8c1bb04925d60347be9f69270392f2cpatch, web
https://github.com/rails/rails/commit/9b06fbc0f504b8afe333f33d19548f3b85fbe655patch, web
https://github.com/rails/rails/commit/a290c8a1ec189d793aa6d7f2570b6a763f675348patch, web
https://github.com/rails/rails/releases/tag/v7.2.3.1release-notes, web
https://github.com/rails/rails/releases/tag/v8.0.4.1release-notes, web
https://github.com/rails/rails/releases/tag/v8.1.2.1release-notes, web
https://access.redhat.com/security/cve/CVE-2026-33195vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2450546issue-tracking
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-33195.json
https://nvd.nist.gov/vuln/detail/CVE-2026-33195advisory
https://github.com/rails/railspackage

Sources

SourceRecordLicence
CVE ListCVE-2026-33195 changed 2026-08-19CVE Terms of Use
GitHub Advisory DatabaseGHSA-9xrj-h377-fr87 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-33195 changed 2026-07-15Public domain