CVE-2025-24293 — Vulnerability in activestorage — CVE Details
Active Storage allowed transformation methods that were potentially unsafe
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (7.55%). Schedule for your next planned update.
Does your project use an affected activestorage version?
Paste your Gemfile.lock to check it for CVE-2025-24293 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
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 deployed.
Credits
Thank you lio346 from Unit 515 of OPSWAT for reporting this!
Advisory Timeline
- First published August 14, 2025 (469 days ago).
- Last revised January 31, 2026 — 170 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install activestorage -v 8.0.2.1
gem install activestorage -v 7.1.5.2
gem install activestorage -v 7.2.2.2
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: RubyGems (1).
| Package | Fixed In |
|---|---|
| activestorage RubyGems · Affected: 8.0.0, 8.0.0.1, 8.0.1, 8.0.2 | 8.0.2.1 |
| activestorage RubyGems · Affected: 5.2.0, 5.2.1, 5.2.1.1, 5.2.1.rc1 (+138 more) | 7.1.5.2 |
| activestorage RubyGems · Affected: 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.
- CWE-77
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.3 score means for each attack dimension.
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
References
- https://github.com/rails/rails/security/advisories/GHSA-r4mg-4433-c7g3WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-24293ADVISORY
- https://github.com/rails/rails/commit/1b1adf6ee6ca0f3104fcfce79360b2ec1e06a354WEB
- https://github.com/rails/rails/commit/2d612735ac0d9712fdfffaf80afa627e7295f6ceWEB
- https://github.com/rails/rails/commit/fb8f3a18c3d97524c0efc29150d1e5f3162fbb13WEB
- https://github.com/advisories/GHSA-r4mg-4433-c7g3ADVISORY
- https://github.com/rails/railsPACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2025-24293.ymlWEB
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. It has a 7.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-24293 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top 5% of EPSS-scored vulnerabilities — 95.3% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.
Also Known As
Related CVEs
- CVE-2022-21831CRITICAL
Possible code injection vulnerability in Rails / Active Storage
- CVE-2026-66066CRITICAL
Active Storage has possible arbitrary file read and remote code execution in Active Storage variant processing
- CVE-2026-126186HIGH
Active Storage: Possible arbitrary file read and remote code execution in video previews, analysis and image processing
- CVE-2026-126084MEDIUM
Active Storage: Unsigned Content-Type in GCS direct uploads with cache_control
- CVE-2026-126071MEDIUM
Active Storage: Possible DoS vulnerability in Active Storage proxy mode via storage errors during streaming
- CVE-2026-33173MEDIUM
Rails Active Storage has possible content type bypass via metadata in direct uploads
- CVE-2026-33174MEDIUM
Rails Active Storage has a possible DoS vulnerability when in proxy mode via Range requests
- CVE-2026-33658LOW
Rails Active Storage has a possible DoS vulnerability in proxy mode via multi-range requests