Home / Rails / activestorage / CVE-2025-24293
CVE-2025-24293: is it exploited, and which versions of Rails activestorage are affected and fixed?
CVE-2025-24293 is a code injection (remote code execution) vulnerability in Rails activestorage. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:08 UTC). Affected: activestorage from 8.0 before 8.0.2.1, activestorage from 7.2 before 7.2.2.2 and activestorage from 5.2.0 before 7.1.5.2 (GitHub advisory GHSA-r4mg-4433-c7g3). Fixed in 8.0.2.1, 7.2.2.2 and 7.1.5.2 (GitHub advisory GHSA-r4mg-4433-c7g3). Severity: Critical (9.2, CVSS 4.0, from hackerone).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:08 UTC, CVE record November 28, 2026, 17:48 UTC and NVD November 19, 2026, 07:13 UTC.
What is CVE-2025-24293?
# 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!
From the CVE record by hackerone, last updated July 15, 2026, 01:26 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Rails | activestorage | every 5 version from 7.0 before 7.1.5.2 from 8.0 before 7.0.2.1 | 7.1.5.2, 7.0.2.1 |
As the CVE record by hackerone states it, last updated July 15, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| RubyGems | activestorage | >= 8.0, < 8.0.2.1 | 8.0.2.1 | GHSA-r4mg-4433-c7g3 |
| RubyGems | activestorage | >= 7.2, < 7.2.2.2 | 7.2.2.2 | GHSA-r4mg-4433-c7g3 |
| RubyGems | activestorage | >= 5.2.0, < 7.1.5.2 | 7.1.5.2 | GHSA-r4mg-4433-c7g3 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated January 31, 2026. Summary: Active Storage allowed transformation methods that were potentially unsafe.
How severe is CVE-2025-24293?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.2 | CVSS 4.0 | 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 | hackerone |
| High 8.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | redhat-SADP |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-24293 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: total (CISA ADP, February 2, 2026)
- EPSS
- 5.58% probability of exploitation activity in the next 30 days, percentile 93.1 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-94 Improper Control of Generation of Code
- CWE-77 Improper Neutralization of Special Elements used in a Command
Where are the vendor advisories and references?
- https://github.com/advisories/GHSA-r4mg-4433-c7g3
- https://access.redhat.com/security/cve/CVE-2025-24293 vdb-entry, x_refsource_REDHAT
- RHBZ#2435565 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-24293.json x_sadp-csaf-vex
When was it published, and where is the official record?
- Reserved
- January 17, 2025
- Published
- January 30, 2026, 20:11 UTC
- CVE record updated
- July 15, 2026, 01:26 UTC by hackerone
- NVD
- Deferred, last modified July 15, 2026, 02:17 UTC
- Last checked
- CVE list November 28, 2026, 17:48 UTC; NVD November 19, 2026, 07:13 UTC; KEV December 3, 2026, 11:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect activestorage?
- Mar 26, 2026CVE-2026-33658 rails activestorage: denial of service (resources allocated without limits)
- Mar 23, 2026CVE-2026-33202 rails activestorage: injection
- Mar 23, 2026CVE-2026-33195 rails activestorage: path traversal (reading or writing files outside the intended folder)
- Mar 23, 2026CVE-2026-33174 rails activestorage: memory Allocation with Excessive Size Value
- Mar 23, 2026CVE-2026-33173 rails activestorage: improper Verification of Intent by Broadcast Receiver
Questions about CVE-2025-24293
Is CVE-2025-24293 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:08 UTC. FIRST's EPSS gives it a 5.58% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Rails activestorage are affected by CVE-2025-24293?
activestorage from 8.0 before 8.0.2.1, activestorage from 7.2 before 7.2.2.2 and activestorage from 5.2.0 before 7.1.5.2, per the GitHub advisory GHSA-r4mg-4433-c7g3. The tables above give every range the sources list.
Which version fixes CVE-2025-24293?
8.0.2.1, 7.2.2.2 and 7.1.5.2, per the GitHub advisory GHSA-r4mg-4433-c7g3. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-24293?
Critical (9.2, CVSS 4.0, from hackerone). The severity table above shows each score with its source.
Where is the official record of CVE-2025-24293?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.