CVE-2025-24293: Activestorage Active Storage Allowed Transformation Methods Vulnerability
CRITICALCVE-2025-24293 is a CRITICAL active storage allowed transformation methods vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting Activestorage libraries in the RubyGems ecosystem. The issue involves active storage allowed transformation methods that were potentially unsafe. Remediation is available by upgrading affected packages to version 8.0.2.1, 7.2.2.2, 7.1.5.2.
CVE-2025-24293 at a Glance
How to Fix CVE-2025-24293
To remediate this vulnerability, upgrade all affected Activestorage dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade activestorage to 8.0.2.1
Upgrade activestorage to 7.2.2.2
Upgrade activestorage to 7.1.5.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for activestorage
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-24293, inspect your project dependencies for Activestorage:
inspect dependencies for activestorage
Analyze the terminal output to locate any version of Activestorage in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.0.2.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. In Activestorage, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-24293 Affected Activestorage Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
activestorage
|
RubyGems |
≥ 8.0
< 8.0.2.1
|
8.0.2.1
|
|
activestorage
|
RubyGems |
≥ 7.2
< 7.2.2.2
|
7.2.2.2
|
|
activestorage
|
RubyGems |
≥ 5.2.0
< 7.1.5.2
|
7.1.5.2
|
References
Frequently Asked Questions
What is CVE-2025-24293?
Which Activestorage versions are affected?
What version fixes CVE-2025-24293?
Is activestorage affected?
What CWE is associated with CVE-2025-24293?
How can I check RubyGems dependencies for CVE-2025-24293?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r4mg-4433-c7g3",
"modified" : "2026-01-31T03:54:44Z",
"published" : "2025-08-14T00:06:00Z",
"aliases" : [ "CVE-2025-24293" ],
"summary" : "Active Storage allowed transformation methods that were potentially unsafe",
"details" : "Active Storage attempts to prevent the use of potentially unsafe image transformation methods and parameters by default.\n\nThe 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.\n\nThis has been assigned the CVE identifier CVE-2025-24293.\n\n\nVersions Affected: >= 5.2.0\nNot affected: < 5.2.0\nFixed Versions: 7.1.5.2, 7.2.2.2, 8.0.2.1\n\nImpact\n------\nThis vulnerability impacts applications that use Active Storage with the image_processing processing gem in addition to mini_magick as the image processor.\n\nVulnerable code will look something similar to this:\n\n```\n<%= image_tag blob.variant(params[:t] => params[:v]) %>\n```\n\nWhere the transformation method or its arguments are untrusted arbitrary input.\n\nAll users running an affected release should either upgrade or use one of the workarounds immediately.\n\nReleases\n--------\nThe fixed releases are available at the normal locations.\n\nWorkarounds\n-----------\nConsuming user supplied input for image transformation methods or their parameters is unsupported behavior and should be considered dangerous.\n\nStrict 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.\n\nCredits\n-------\n\nThank you [lio346](https://hackerone.com/lio346) from Unit 515 of OPSWAT for reporting this!",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "activestorage"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.0"
}, {
"fixed" : "8.0.2.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "activestorage"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.2"
}, {
"fixed" : "7.2.2.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "activestorage"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.2.0"
}, {
"fixed" : "7.1.5.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/rails/rails/security/advisories/GHSA-r4mg-4433-c7g3"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-24293"
}, {
"type" : "WEB",
"url" : "https://github.com/rails/rails/commit/1b1adf6ee6ca0f3104fcfce79360b2ec1e06a354"
}, {
"type" : "WEB",
"url" : "https://github.com/rails/rails/commit/2d612735ac0d9712fdfffaf80afa627e7295f6ce"
}, {
"type" : "WEB",
"url" : "https://github.com/rails/rails/commit/fb8f3a18c3d97524c0efc29150d1e5f3162fbb13"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-r4mg-4433-c7g3"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rails/rails"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2025-24293.yml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-77" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2025-08-14T00:06:00Z",
"nvd_published_at" : "2026-01-30T21:15:55Z"
}
}