CVE-2025-24293: # Active Storage allowed transformation methods potentially unsafe
Active Storage attempts to prevent th...
# 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!
Security readout for executives and security teams
Plain-English summary
This is a critical Rails Active Storage issue that can turn unsafe, user-controlled image transformation options into command injection risk. Exposure is narrower than “all Rails”: the sources identify apps using Active Storage with image_processing and mini_magick, especially where request data controls transformation methods or arguments.
Executive priority
Treat as urgent for Rails applications that process user-controlled image transformations. The business risk is remote compromise of affected application hosts, but exposure should be confirmed before declaring enterprise-wide impact.
Technical view
Active Storage’s default transformation allowlist contained methods that could bypass intended safe defaults. When applications accept arbitrary user input as image transformation methods or parameters, the chain can enable command, argument, or code injection. The supplied CVSS v4.0 score is 9.2 with network attack vector and no privileges or user interaction required.
Likely exposure
Most likely exposed systems are Rails applications using Active Storage, the image_processing gem, and mini_magick, with public or authenticated flows that pass user input into image variant transformations. The supplied affected product is Rails activestorage versions 5.2, 7.0, and 8.0.
Exploitation context
The source bundle does not show CISA KEV listing or confirmed active exploitation. Exploitation depends on application behavior: accepting untrusted transformation methods or parameters. The CVSS rating indicates severe potential impact, but the evidence provided does not prove broad exploit activity.
Researcher notes
Key constraints are the processing stack and data flow. Focus review on Active Storage variant generation where request parameters or other untrusted input influence transformation method names or arguments. Supplied evidence does not include exact fixed version numbers.
Mitigation direction
Upgrade Rails activestorage according to the Rails advisory or vendor guidance.
Stop accepting arbitrary user input for image transformation methods or parameters.
Strictly validate allowed transformations and parameter values server-side.
Deploy a strong ImageMagick security policy.
Prioritize internet-facing image transformation endpoints for remediation.
Validation and detection
Inventory Rails apps using Active Storage, image_processing, and mini_magick.
Review image variant code for user-controlled transformation methods or arguments.
Confirm activestorage versions against the vendor advisory.
Verify validation rejects unsupported transformations and unsafe parameter values.
Confirm ImageMagick security policy is deployed in affected environments.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-77: Command execution behavior lookup
Command injection weaknesses can lead defenders to review execution techniques and command interpreter telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Command injection weaknesses can lead defenders to review execution techniques and command interpreter telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
5Timeline events
2ADP providers
5Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: pocAutomatable: yesTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-77 · source CWE mapping
Improper Neutralization of Special Elements used in a Command ('Command Injection')
Improper Neutralization of Special Elements used in a Command ('Command Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Improper Control of Generation of Code ('Code Injection')
Improper Control of Generation of Code ('Code Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.