PT-2025-33109 · Ruby On Rails+1 · Active Storage+1

CVE-2025-24293

·

Published

2025-01-01

·

Updated

2026-07-31

CVSS v4.0

9.2

Critical

VectorAV: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
Name of the Vulnerable Software and Affected Versions Rails versions 5.2.0 through 7.1.5.1 Rails versions 7.2.0 through 7.2.2.1 Rails versions 8.0.0 through 8.0.2.0
Description Active Storage contains a flaw where the default allowed list of image transformation methods includes three methods that can be used to bypass safe defaults. This allows for potential command injection when applications accept arbitrary user-supplied input as valid transformation methods or parameters. This issue specifically impacts applications using Active Storage with the image processing gem and mini magick as the image processor. An example of vulnerable code involves passing untrusted input to the blob.variant() function, such as using params[:t] and params[:v] to define transformations.
Recommendations Update Rails to version 7.1.5.2, 7.2.2.2, or 8.0.2.1. Perform strict validation of all user-supplied methods and parameters used in image transformations. Deploy a robust ImageMagick security policy. Avoid consuming user-supplied input for image transformation methods or their parameters.

Exploit

Fix

RCE

DoS

Command Injection

Code Injection

Argument Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2025-24293
DLA-4416-1
DSA-6090-1
GHSA-R4MG-4433-C7G3

Affected Products

Active Storage
Debian