Rails activestorage
# 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!
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 5.2, < 5.*
- >= 7.0, < 7.1.5.2
- >= 8.0, < 7.0.2.1
Fixed in 5.*, 7.1.5.2, 7.0.2.1
Mitigation
Upgrade activestorage to 5.* or 7.1.5.2 or 7.0.2.1 or later.
References
- Vendor advisory github.com/advisories/GHSA-r4mg-4433-c7g3
Timeline
Days relative to CVE publicationFirst public PoC 207 days after publication; not in CISA KEV. First PoC: Metasploit exploit: Ruby on Rails Active Storage Vips Arbitrary File Read and Remote Code Execution (exploit/multi/http/rails_activestorage_vips_rce) (Metasploit, 25 Aug 2026).
PoC repositories
Found on GitHub.1 informational
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| usutani/study-turbolinks-link | 5 Apr 2020 −5.8 y | 0 | Informational · detection |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Metasploit | Metasploit exploit: Ruby on Rails Active Storage Vips Arbitrary File Read and Remote Code Execution (exploit/multi/http/rails_activestorage_vips_rce) | 25 Aug 2026 | 14 Nov 2026 |