Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-9xrj-h377-fr87

Опубликовано: 23 мар. 2026
Источник: github
Github: Прошло ревью
CVSS4: 8

Описание

Rails Active Storage has possible Path Traversal in DiskService

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.

Пакеты

Наименование

activestorage

rubygems
Затронутые версииВерсия исправления

>= 8.1.0.beta1, < 8.1.2.1

8.1.2.1

Наименование

activestorage

rubygems
Затронутые версииВерсия исправления

>= 8.0.0.beta1, < 8.0.4.1

8.0.4.1

Наименование

activestorage

rubygems
Затронутые версииВерсия исправления

< 7.2.3.1

7.2.3.1

EPSS

Процентиль: 43%
0.00567
Низкий

8 High

CVSS4

Дефекты

CWE-22

Связанные уязвимости

CVSS3: 9.8
ubuntu
4 месяца назад

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.

CVSS3: 8.1
redhat
4 месяца назад

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.

CVSS3: 9.8
nvd
4 месяца назад

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.

CVSS3: 9.8
debian
4 месяца назад

Active Storage allows users to attach cloud and local files in Rails a ...

CVSS3: 9.1
fstec
4 месяца назад

Уязвимость библиотеки для подключения облачных и локальных файлов к приложениям Rails Active Storage, связанная с неверным ограничением имени пути к каталогу с ограниченным доступом, позволяющая нарушителю получить несанкционированный доступ к защищаемой информации

EPSS

Процентиль: 43%
0.00567
Низкий

8 High

CVSS4

Дефекты

CWE-22