# CVE-2025-24293: Active Storage allowed transformation methods that were potentially unsafe

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.2
- **CVSS:** 9.2 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 7.55% (percentile 95, 2026-11-26)
- **CWE:** CWE-77, CWE-94, CWE-88
- **Aliases:** GHSA-r4mg-4433-c7g3
- **Published:** 2025-08-14T00:06:00.000Z
- **Modified:** 2026-07-15T02:17:23.020Z

## Who should check

- Projects that depend on RubyGems package activestorage (\>= 8.0, \< 8.0.2.1)
- Anyone running Rails activestorage \>= 5.2, \< 5.\*; \>= 7.0, \< 7.1.5.2; \>= 8.0, \< 7.0.2.1

## Description

\# 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!

## Affected and fixed versions

- RubyGems `activestorage`: affected \>= 8.0, \< 8.0.2.1; fixed 8.0.2.1, 7.2.2.2, 7.1.5.2 (osv)
- Rails activestorage: \>= 5.2, \< 5.\*; \>= 7.0, \< 7.1.5.2; \>= 8.0, \< 7.0.2.1 (cvelist)

## Mitigation

- Upgrade activestorage to one of 8.0.2.1, 7.2.2.2, 7.1.5.2 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-24293. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-24293.md
Affected: activestorage >= 8.0, < 8.0.2.1
Fixed in: 8.0.2.1, 7.2.2.2, 7.1.5.2

Steps:
1. Search this machine and project for activestorage (RubyGems), Rails activestorage: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-24293 being exploited?

There is no confirmed exploitation: CVE-2025-24293 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 7.55% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-24293?

Critical: CVSS 9.2 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-24293?

activestorage \>= 8.0, \< 8.0.2.1.

### Is there a fix for CVE-2025-24293?

Yes. Fixed in 8.0.2.1, 7.2.2.2, 7.1.5.2. Upgrade activestorage to one of 8.0.2.1, 7.2.2.2, 7.1.5.2 (or later in the same release line).

### How do I check if I'm affected by CVE-2025-24293?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/advisories/GHSA-r4mg-4433-c7g3>
- vendor: <https://github.com/rails/rails/security/advisories/GHSA-r4mg-4433-c7g3>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-24293>
- patch: <https://github.com/rails/rails/commit/1b1adf6ee6ca0f3104fcfce79360b2ec1e06a354>
- patch: <https://github.com/rails/rails/commit/2d612735ac0d9712fdfffaf80afa627e7295f6ce>
- patch: <https://github.com/rails/rails/commit/fb8f3a18c3d97524c0efc29150d1e5f3162fbb13>
- other: <https://access.redhat.com/security/cve/CVE-2025-24293>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2435565>
- other: <https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-24293.json>
- other: <https://github.com/rails/rails>
- other: <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2025-24293.yml>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-24293>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-r4mg-4433-c7g3> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-24293> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-24293>
