Loading...
Skip to main content

CVE-2025-24293

CRITICAL

Active Storage allowed transformation methods that were potentially unsafe

Published August 14, 2025Updated January 31, 2026Source: osv

Summary

Active Storage attempts to prevent the use of potentially unsafe image transformation methods and parameters by default. The default allowed list contains three methods allowing 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. This has been assigned the CVE identifier CVE-2025-24293. Versions Affected: >= 5.2.0 Not affected: < 5.2.0 Fixed Versions: 7.1.5.2, 7.2.2.2, 8.0.2.1 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. Releases -------- The fixed releases are available at the normal locations. 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) from Unit 515 of OPSWAT for reporting this!

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update activestorage to 8.0.2.1 or later
gem install activestorage -v 8.0.2.1
Bundler
Update activestorage to 7.1.5.2 or later
gem install activestorage -v 7.1.5.2
Bundler
Update activestorage to 7.2.2.2 or later
gem install activestorage -v 7.2.2.2

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (3)

PackageEcosystemAffectedFixed In
activestorage
rubygems
8.0.0, 8.0.0.1, 8.0.1, 8.0.28.0.2.1
activestorage
rubygems
5.2.0, 5.2.1, 5.2.1.1, 5.2.1.rc1 (+138 more)7.1.5.2
activestorage
rubygems
7.2.0, 7.2.1, 7.2.1.1, 7.2.1.2 (+2 more)7.2.2.2

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.3 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Confidentiality
Integrity
Availability

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

Frequently Asked Questions

What is CVE-2025-24293?
Active Storage allowed transformation methods that were potentially unsafe This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.3/10).
How do I check if my project is affected by CVE-2025-24293?
CVE-2025-24293 affects activestorage. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-24293 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.3

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-r4mg-4433-c7g3

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies