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 package | Versions | Reported by |
|---|---|---|
| rails activestorage | >= 8.1.0.beta1, < 8.1.2.1, >= 8.0.0.beta1, < 8.0.4.1, < 7.2.3.1 | CVE List |
| 3scale-amp20/system | Not specified | CVE List |
| 3scale-amp21/system | Not specified | CVE List |
| 3scale-amp21/zync | Not specified | CVE List |
| 3scale-amp22/system | Not specified | CVE List |
| 3scale-amp22/zync | Not specified | CVE List |
| 3scale-amp24/system | Not specified | CVE List |
| 3scale-amp24/zync | Not specified | CVE List |
| 3scale-amp25/system | Not specified | CVE List |
| 3scale-amp25/zync | Not specified | CVE List |
| 3scale-amp26/system | Not specified | CVE List |
| 3scale-amp26/zync | Not specified | CVE List |
| 3scale-amp2/system-rhel7 | Not specified | CVE List |
| 3scale-amp2/system-rhel8 | Not specified | CVE List |
| 3scale-amp2/system-rhel9 | Not specified | CVE List |
| 3scale-amp2/zync-rhel7 | Not specified | CVE List |
| 3scale-amp2/zync-rhel8 | Not specified | CVE List |
| 3scale-amp2/zync-rhel9 | Not specified | CVE List |
| 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 | GitHub Advisory Database |
| 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 | NVD |
All scores
| GitHub_M | 8.0high CVSS:4.0 | 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 | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N |
| GitHub | high CVSS:4.0 | 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 | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
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
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-33195 changed 2026-08-19 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-9xrj-h377-fr87 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-33195 changed 2026-07-15 | Public domain |