CVE-2025-24293: Command Injection

Published Aug 14, 2025
·
Updated

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 imageprocessing processing gem in addition to minimagick as the image processor.

Vulnerable code will look something similar to this: <%= imagetag 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 deployed.

Credits -------

Thank you lio346 for reporting this!

Other sources

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 imageprocessing processing gem in addition to minimagick as the image processor.

Vulnerable code will look something similar to this:

<%= imagetag 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!

— GitHub

Affected Software

7 affected componentsFixes available
rubygems/activestorage>=5.2.0<7.1.5.2
7.1.5.2
rubygems/activestorage>=7.2<7.2.2.2
7.2.2.2
rubygems/activestorage>=8.0<8.0.2.1
8.0.2.1
debian/rails
2:6.0.3.7+dfsg-2+deb11u42:6.1.7.10+dfsg-1~deb12u22:7.2.2.2+dfsg-2~deb13u12:7.2.2.2+dfsg-1
debian/rails<2:6.1.7.10+dfsg-1~deb12u2
2:6.1.7.10+dfsg-1~deb12u2
debian/rails<2:7.2.2.2+dfsg-2~deb13u1
2:7.2.2.2+dfsg-2~deb13u1
debian/rails<2:7.2.2.2+dfsg-1
2:7.2.2.2+dfsg-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rubygems/activestorage to a version that resolves this vulnerability.

    Fixed in 7.1.5.2
  2. Upgrade

    Upgrade rubygems/activestorage to a version that resolves this vulnerability.

    Fixed in 7.2.2.2
  3. Upgrade

    Upgrade rubygems/activestorage to a version that resolves this vulnerability.

    Fixed in 8.0.2.1
  4. Upgrade

    Upgrade debian/rails to a version that resolves this vulnerability.

    Fixed in 2:6.0.3.7+dfsg-2+deb11u4Fixed in 2:6.1.7.10+dfsg-1~deb12u2Fixed in 2:7.2.2.2+dfsg-2~deb13u1Fixed in 2:7.2.2.2+dfsg-1
  5. Upgrade

    Upgrade debian/rails to a version that resolves this vulnerability.

    Fixed in 2:6.1.7.10+dfsg-1~deb12u2
  6. Upgrade

    Upgrade debian/rails to a version that resolves this vulnerability.

    Fixed in 2:7.2.2.2+dfsg-2~deb13u1
  7. Upgrade

    Upgrade debian/rails to a version that resolves this vulnerability.

    Fixed in 2:7.2.2.2+dfsg-1
  8. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 7.1.5.2
  9. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 7.2.2.2
  10. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.0.2.1
  11. Compensating control

    Strictly validate user-supplied image transformation methods and their parameters.

  12. Compensating control

    Deploy a strong ImageMagick security policy.

Event History

Apr 5, 2020
Exploit Published
via GitHub·08:17 AM
Aug 14, 2025
Advisory Published
via GitHub·12:06 AM
Data Sourced
via GitHub·12:06 AM
DescriptionWeaknessAffected Software
Updated
via GitHub·07:37 PM
Affected Software
Aug 21, 2025
Updated
via GitHub·09:35 PM
Description
Sep 15, 2025
News Published
via The Hacker News·11:22 AM
Jan 30, 2026
CVE Published
via MITRE·08:11 PM
Data Sourced
via MITRE·08:11 PM
Description
Data Sourced
via Red Hat·09:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·09:15 PM
DescriptionSeverity
Data Sourced
via OSV·09:15 PM
DescriptionSeverityAffected Software
Feb 2, 2026
Data Sourced
via NVD·03:16 PM
Weakness
Jun 30, 2026
Updated
via NVD·03:16 AM
SeverityWeakness
Jul 29, 2026
News Published
via The Hacker News·06:10 PM

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2025-24293?

CVE-2025-24293 is classified as a high severity vulnerability due to its potential for command injection.

2

What versions of Active Storage are affected by CVE-2025-24293?

CVE-2025-24293 affects Active Storage versions prior to 7.1.5.2, 7.2.2.2, and 8.0.2.1.

3

How do I fix CVE-2025-24293?

To fix CVE-2025-24293, upgrade Active Storage to versions 7.1.5.2, 7.2.2.2, or 8.0.2.1 or later.

4

What specific issues does CVE-2025-24293 address?

CVE-2025-24293 addresses vulnerabilities related to unsafe image transformation methods that could lead to command injection.

5

Is there a workaround for CVE-2025-24293 if I can't upgrade immediately?

There are no known effective workarounds for CVE-2025-24293, so upgrading to the fixed versions is strongly recommended.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203