Описание
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#delete_prefixed passes blob keys directly to Dir.glob without escaping glob metacharacters. If a blob key contains attacker-controlled input or custom-generated keys with glob metacharacters, it may be possible to delete unintended files from the storage directory. Versions 8.1.2.1, 8.0.4.1, and 7.2.3.1 contain a patch.
A flaw was found in Active Storage, a component of Rails applications. This vulnerability occurs because Active Storage's DiskService#delete_prefixed function does not properly escape glob metacharacters when processing blob keys. A remote attacker could exploit this by providing a specially crafted blob key, potentially leading to the deletion of unintended files from the storage directory. This could result in a data loss.
Отчет
This flaw is rated as Moderate by Red Hat. Successful exploitation of this vulnerability requires an attacker to control or influence blob keys and trigger deletion operations within the Active Storage component. In typical deployments, these capabilities are restricted to authenticated users or internal application logic, making unauthenticated exploitation unlikely. Additionally, while the vulnerability can result in unintended file deletion (integrity impact), it does not inherently lead to service disruption, as affected files are generally confined to the storage directory.
Меры по смягчению последствий
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat 3scale API Management Platform 2 | 3scale-amp20/system | Will not fix | ||
| Red Hat 3scale API Management Platform 2 | 3scale-amp21/system | Will not fix | ||
| Red Hat 3scale API Management Platform 2 | 3scale-amp21/zync | Will not fix | ||
| Red Hat 3scale API Management Platform 2 | 3scale-amp22/system | Will not fix | ||
| Red Hat 3scale API Management Platform 2 | 3scale-amp22/zync | Will not fix | ||
| Red Hat 3scale API Management Platform 2 | 3scale-amp24/system | Will not fix | ||
| Red Hat 3scale API Management Platform 2 | 3scale-amp24/zync | Will not fix | ||
| Red Hat 3scale API Management Platform 2 | 3scale-amp25/system | Will not fix | ||
| Red Hat 3scale API Management Platform 2 | 3scale-amp25/zync | Will not fix | ||
| Red Hat 3scale API Management Platform 2 | 3scale-amp26/system | Will not fix |
Показывать по
Ссылки на источники
Дополнительная информация
Статус:
EPSS
6.5 Medium
CVSS3
Связанные уязвимости
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#delete_prefixed` passes blob keys directly to `Dir.glob` without escaping glob metacharacters. If a blob key contains attacker-controlled input or custom-generated keys with glob metacharacters, it may be possible to delete unintended files from the storage directory. Versions 8.1.2.1, 8.0.4.1, and 7.2.3.1 contain a patch.
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#delete_prefixed` passes blob keys directly to `Dir.glob` without escaping glob metacharacters. If a blob key contains attacker-controlled input or custom-generated keys with glob metacharacters, it may be possible to delete unintended files from the storage directory. Versions 8.1.2.1, 8.0.4.1, and 7.2.3.1 contain a patch.
Active Storage allows users to attach cloud and local files in Rails a ...
Rails Active Storage has possible glob injection in its DiskService
Уязвимость компонента Active Storage программной платформы Ruby on Rails, позволяющая нарушителю выполнить произвольный код
EPSS
6.5 Medium
CVSS3