Possible code injection vulnerability in Rails / Active Storage
Critical severity
GitHub Reviewed
Published
Mar 8, 2022
to the GitHub Advisory Database
•
Updated Mar 22, 2023
Package
Affected versions
>= 5.2.0, <= 5.2.6.2
>= 6.0.0, <= 6.0.4.6
>= 6.1.0, <= 6.1.4.6
>= 7.0.0, <= 7.0.2.2
Patched versions
5.2.6.3
6.0.4.7
6.1.4.7
7.0.2.3
Description
Published to the GitHub Advisory Database
Mar 8, 2022
Reviewed
Mar 8, 2022
Published by the National Vulnerability Database
May 26, 2022
Last updated
Mar 22, 2023
The Active Storage module of Rails starting with version 5.2.0 is possibly vulnerable to code injection. This issue was patched in versions 5.2.6.3, 6.0.4.7, 6.1.4.7, and 7.0.2.3. To work around this issue, applications should implement a strict allow-list on accepted transformation methods or arguments. Additionally, a strict ImageMagick security policy will help mitigate this issue.
References