Arbitrary Command Injection Affecting activestorage package, versions >=5.20, <7.1.5.2>=7.2, <7.2.2.2>=8.0, <8.0.2.1


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-ACTIVESTORAGE-11800135
  • published14 Aug 2025
  • disclosed14 Aug 2025
  • creditlio346

Introduced: 14 Aug 2025

NewCVE-2025-24293  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade activestorage to version 7.1.5.2, 7.2.2.2, 8.0.2.1 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Command Injection due to untrusted user input being accepted as transformation methods or parameters. An attacker can execute arbitrary commands on the server by supplying crafted input that circumvents safe defaults.

Note: This is exploitable if the application uses both the image_processing gem and mini_magick as the image processor, and accepts arbitrary user input for transformation methods or parameters.

Workaround

This vulnerability can be mitigated by strictly validating user-supplied methods and parameters and deploying a strong ImageMagick security policy.

CVSS Base Scores

version 4.0
version 3.1