CVE-2025-24293 Details
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!
A command injection vulnerability has been identified in Active Storage versions 5.2.0 through 7.1.5.2, as well as in version 8.0 prior to 8.0.2.1. This vulnerability arises when Active Storage is used with the image_processing gem and mini_magick as the image processor. The issue allows for the circumvention of default safety measures regarding image transformation methods and parameters. Vulnerable applications may inadvertently accept arbitrary user-supplied input as valid transformation methods or parameters, creating an opportunity for command injection.
Users can upgrade to Active Storage versions 8.0.2.1, 7.2.2.2, or 7.1.5.2 to address this vulnerability. For those unable to upgrade immediately, it is recommended to perform strict validation of user-supplied input for image transformation methods and parameters, as this is considered dangerous. Additionally, deploying a strong ImageMagick security policy is advised.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jan 30, 2026CISA-ADP
Assessed Feb 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2025-24293 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2435565 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-24293.json | redhat-SADP | |
| https://github.com/advisories/GHSA-r4mg-4433-c7g3 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-77 | Improper Neutralization of Special Elements used in a Command ('Command Injection') | CISA-ADP |
| CWE-88 | Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') | redhat-SADP |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| Ruby on Rails Active Storage | All versions |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 2, 2026 | CVE Modified | CISA-ADP |
| Jan 30, 2026 | New CVE Received | [email protected] |
Volerion