CVE-2025-24293
Last modified
CVE-2025-24293 is a critical-severity vulnerability rated 9.2/10 on the CVSS scale. # 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!. EPSS estimates a 2.39% chance of exploitation in the next 30 days.
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!
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-24293?
How severe is CVE-2025-24293?
How do I fix CVE-2025-24293?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-24287A vulnerability allowing local system users to modify direct…6.1
- CVE-2025-24288The Versa Director software exposes a number of services by …9.8
- CVE-2025-24289A Cross-Site Request Forgery (CSRF) leading to Cross-Site Sc…7.5
- CVE-2025-24290Multiple Authenticated SQL Injection vulnerabilities found i…9.9
- CVE-2025-24291The Versa Director SD-WAN orchestration platform provides fu…6.1
- CVE-2025-24292A misconfigured query in UniFi Network (v9.1.120 and earlier…6.8
- CVE-2025-24294The attack vector is a potential Denial of Service (DoS). Th…7.5
- CVE-2025-24296Improper input validation in some firmware for the Intel(R) …6
- CVE-2025-24297Due to lack of server-side input validation, attackers can i…9.8
- CVE-2025-24298in OpenHarmony v5.0.3 and prior versions allow a local attac…7.8
- CVE-2025-24299Improper input validation for some Intel(R) CIP software bef…8.8
- CVE-2025-24300Rejected reason: This CVE ID has been rejected or withdrawn …
Are you affected by CVE-2025-24293?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
