CVE-2025-24293
Fixed in a distro release EPSS 6%CVSS 9.2
# Active Storage allowed transformation methods potentially unsafe Active Storage attempts to prevent the use of potentially unsafe image transformation methods and parameters by default. The default allowed list contains three methods allow for the circumvention of the safe defaults which enables potential command injection vulnerabilities in cases where arbitrary user supplied input is accepted as valid transformation methods or parameters. Impact ------ This vulnerability impacts applications that use Active Storage with the image_processing processing gem in addition to mini_magick as the image processor. Vulnerable code will look something similar to this: ``` <%= image_tag blob.variant(params[:t] => params[:v]) %> ``` Where the transformation method or its arguments are untrusted arbitrary input. All users running an affected release should either upgrade or use one of the workarounds immediately. Workarounds ----------- Consuming user supplied input for image transformation methods or their parameters is unsupported behavior and should be considered dangerous. Strict validation of user supplied methods and parameters should be performed as well as having a strong [ImageMagick security policy](https://imagemagick.org/script/security-policy.php) deployed. Credits ------- Thank you [lio346](https://hackerone.com/lio346) for reporting this!
Products: Rails activestorage, Red Hat 3scale API Management Platform 2, Red Hat Satellite 6
Fixed upstream
| Ecosystem | Package | Fixed in |
|---|---|---|
| RubyGems | activestorage | 8.0.2.1 |
| RubyGems | activestorage | 7.2.2.2 |
| RubyGems | activestorage | 7.1.5.2 |
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Chainguard | gitlab-rails-ce-18.1 | no fix |
| Chainguard | gitlab-rails-ce-18.2 | no fix |
| Chainguard | gitlab-rails-ce-18.3 | no fix |
| Chainguard | gitlab-rails-ce-assets-18.1 | 18.1.6-r1 |
| Chainguard | gitlab-rails-ce-assets-18.2 | 18.2.8-r1 |
| Chainguard | gitlab-rails-ce-assets-18.3 | 18.3.5-r0 |
| Chainguard | gitlab-rails-ce-assets-fips-18.1 | 18.1.6-r2 |
| Chainguard | gitlab-rails-ce-assets-fips-18.2 | 18.2.8-r2 |
| Chainguard | gitlab-rails-ce-assets-fips-18.3 | 18.3.5-r2 |
| Chainguard | gitlab-rails-ce-doc-18.1 | 18.1.6-r1 |
| Chainguard | gitlab-rails-ce-doc-18.2 | 18.2.8-r1 |
| Chainguard | gitlab-rails-ce-doc-18.3 | 18.3.5-r0 |
| Chainguard | gitlab-rails-ce-doc-fips-18.1 | 18.1.6-r2 |
| Chainguard | gitlab-rails-ce-doc-fips-18.2 | 18.2.8-r2 |
| Chainguard | gitlab-rails-ce-doc-fips-18.3 | 18.3.5-r2 |
| Chainguard | gitlab-rails-ce-fips-18.1 | no fix |
| Chainguard | gitlab-rails-ce-fips-18.2 | no fix |
| Chainguard | gitlab-rails-ce-fips-18.3 | no fix |
| Debian 11 | rails | 2:6.0.3.7+dfsg-2+deb11u4 |
| Debian 12 | rails | 2:6.1.7.10+dfsg-1~deb12u2 |
| Debian 13 | rails | 2:7.2.2.2+dfsg-2~deb13u1 |
| Debian 14 | rails | 2:7.2.2.2+dfsg-1 |
| Ubuntu 24.04 LTS | rails | no fix |
| Ubuntu 25.10 | rails | no fix |
| Ubuntu 26.04 LTS | rails | no fix |
| Ubuntu 26.10 | rails | no fix |
| Ubuntu Pro 16.04 LTS | rails | no fix |
| Ubuntu Pro 18.04 LTS | rails | no fix |
| Ubuntu Pro 20.04 LTS | rails | no fix |
| Ubuntu Pro 22.04 LTS | rails | no fix |