CVE-2025-24293 json
Active Storage allowed transformation methods that were potentially unsafe
published last yr. modified 3mo ago also EUVD-2025-29509 , GHSA-r4mg-4433-c7g3
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 5.6%
- EPSS 5.6% chance of exploitation in 30 days, percentile 92%
- public exploits
- 1
- Metasploit
Summary
# 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!
Patch / fix
- rubygems activestorage 7.1.5.2, 7.2.2.2, 8.0.2.1
- Rails activestorage 7.0.2.1, 7.1.5.2
- rails Debian 12 2:6.1.7.10+dfsg-1~deb12u2
- rails Debian 13 2:7.2.2.2+dfsg-2~deb13u1
- rails Debian 14 2:7.2.2.2+dfsg-1
debian advisories DEBIAN-CVE-2025-24293
- github.com/rails/rails@1b1adf6 commit
- github.com/rails/rails@2d61273 commit
- github.com/rails/rails@fb8f3a1 commit
Is CVE-2025-24293 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-24293 updated cvss 8.1
activestorage: Code injection in Active Storage when used in conjunction with the image_processing gem
-
Red Hat 3scale API Management Platform 2 3scale-amp21/zync, 3scale-amp22/zync, 3scale-amp24/zync, 3scale-amp25/zync, 3scale-amp26/zync, 3scale-amp20/system, +11 more Red Hat Satellite 6 rubygem-activestoragenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- Published
- First public exploit (Metasploit exploit/multi/http/rails_activestorage_vips_rce)
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- 9mo ago
Exploit prediction
5.58% chance of exploitation in the next 30 days, higher than 92% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- Metasploit exploit/multi/http/rails_activestorage_vips_rce Ruby on Rails Active Storage Vips Arbitrary File Read and Remote Code Execution metasploit exploit, normal rank, 2026-07-29
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 9.2 | 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 |
| CISA ADP | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 4.0 | 9.2 | 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 |
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | activestorage | >=8.0, <8.0.2.1 >=7.2, <7.2.2.2 >=5.2.0, <7.1.5.2 |
8.0.2.1 7.2.2.2 7.1.5.2 |
Affected products
- Rails activestorage
- Red Hat Red Hat 3scale API Management Platform 2
- Red Hat Red Hat Satellite 6
Classification
- Weakness
- Technology feeds
References
-
github.com
/rails/rails/commit/1b1adf6ee6ca0f3104fcfce79360b2ec1e06a354
web
-
github.com
/rails/rails/commit/2d612735ac0d9712fdfffaf80afa627e7295f6ce
web
-
github.com
/rails/rails/commit/fb8f3a18c3d97524c0efc29150d1e5f3162fbb13
web
-
github.com
/advisories/GHSA-r4mg-4433-c7g3
advisory
-
access.redhat.com
/security/cve/CVE-2025-24293
vdb-entry
-
bugzilla.redhat.com
/show_bug.cgi?id=2435565
issue-tracking
- security.access.redhat.com /data/csaf/v2/vex/2025/cve-2025-24293.json
-
github.com
/rails/rails/security/advisories/GHSA-r4mg-4433-c7g3
web, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2025-24293
advisory
-
github.com
/rails/rails
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2025-24293.yml
web
Sources
- CVE List CVE-2025-24293
- GitHub Advisory GHSA-r4mg-4433-c7g3
- NVD CVE-2025-24293
- Maintainer advisory GHSA-r4mg-4433-c7g3
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of rails/rails published their own advisory on GitHub. Reviewed sources take precedence over it.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.