CVE-2025-24293
published critical CVSS 4.0 · 9.2activestorage: Code injection in Active Storage when used in conjunction with the image_processing gem
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Rails | — | activestorage5.2 to < 5.* · 7.0 to < 7.1.5.2 · 8.0 to < 7.0.2.1 · Other versions: unaffected | Affected | Not stated | hackerone |
| Red Hat | — | 3scale-amp20/systemRed Hat 3scale API Management Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | 3scale-amp21/systemRed Hat 3scale API Management Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | 3scale-amp21/zyncRed Hat 3scale API Management Platform 2 | Unaffected | Not required | redhat-SADP |
| Debian | bookworm | rails | Advisory build | 2:6.1.7.10+dfsg-1~deb12u2 | DSA-6090-1 |
| Debian | bullseye | rails | Advisory build | 2:6.0.3.7+dfsg-2+deb11u4 | DLA-4416-1 |
| Debian | trixie | rails | Advisory build | 2:7.2.2.2+dfsg-2~deb13u1 | DSA-6090-1 |
| Red Hat | — | 3scale-amp22/systemRed Hat 3scale API Management Platform 2 | Unaffected | Not required | redhat-SADP |
Show 15 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | 3scale-amp22/zyncRed Hat 3scale API Management Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | 3scale-amp24/systemRed Hat 3scale API Management Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | 3scale-amp24/zyncRed Hat 3scale API Management Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | 3scale-amp25/systemRed Hat 3scale API Management Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | 3scale-amp25/zyncRed Hat 3scale API Management Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | 3scale-amp26/systemRed Hat 3scale API Management Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | 3scale-amp26/zyncRed Hat 3scale API Management Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | 3scale-amp2/system-rhel7Red Hat 3scale API Management Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | 3scale-amp2/system-rhel8Red Hat 3scale API Management Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | 3scale-amp2/system-rhel9Red Hat 3scale API Management Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | 3scale-amp2/zync-rhel7Red Hat 3scale API Management Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | 3scale-amp2/zync-rhel8Red Hat 3scale API Management Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | 3scale-amp2/zync-rhel9Red Hat 3scale API Management Platform 2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | rubygem-activestorageRed Hat Satellite 6 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | satellite:el8/rubygem-activestorageRed Hat Satellite 6 | Unaffected | Not required | redhat-SADP |
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!
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 vulnerability impacts applications that use Active Storage with the image_processing processing gem in addition to mini_magick as the image processor.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.2 / 10
- Severity
- critical
- Provider
- hackerone · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.1 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Rails | activestorage | 5.2 to < 5.* (affected · semver)7.0 to < 7.1.5.2 (affected · semver)8.0 to < 7.0.2.1 (affected · semver)Default: unaffected | hackerone · cna |
| Red Hat | Red Hat 3scale API Management Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat 3scale API Management Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat 3scale API Management Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat 3scale API Management Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat 3scale API Management Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat 3scale API Management Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat 3scale API Management Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat 3scale API Management Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat 3scale API Management Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat 3scale API Management Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat 3scale API Management Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat 3scale API Management Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat 3scale API Management Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat 3scale API Management Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat 3scale API Management Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat 3scale API Management Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat 3scale API Management Platform 2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Satellite 6 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Satellite 6 | Default: unaffected | redhat-SADP · adp |
Weaknesses
3- CWE-88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
- CWE-94 CWE-94 Improper Control of Generation of Code ('Code Injection')
- CWE-77 CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')
References
4- https://access.redhat.com/security/cve/CVE-2025-24293
- RHBZ#2435565 https://bugzilla.redhat.com/show_bug.cgi?id=2435565
- https://github.com/advisories/GHSA-r4mg-4433-c7g3
- https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-24293.json
Provider assertions
3hackerone · cna
redhat-SADP · adp
activestorage: Code injection in Active Storage when used in conjunction with the image_processing gem
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b8a0fef8731ef5d537626f9ef000047ca25849dc2aae930b94e09f5134a8e664
- Ingested
- 23 Sep 2026, 08:41:20 UTC
- Source record
- Official CVE record