9.2

CVE-2025-24293: rails activestorage Command Injection

CVSS: 9.2v4.0CriticalDeferred
AliasesUBUNTU-CVE-2025-24293DEBIAN-CVE-2025-24293CGA-2vj5-x89m-j5qr
Published 30-01-2026Last modified 15-07-2026

Vulnerability summary

CVE-2025-24293 is a critical (CVSS 9.2) Command Injection vulnerability in rails activestorage. EPSS estimates a 5.47% chance of exploitation in the next 30 days, higher than 92.7% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.2/10
010
Critical · v4.0 (CVE.org)
EPSS score
5.47%
0%100%
Low · +0.08 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1metasploit

Advisory lineage

Upstream 0 · Downstream 2 · Related 1

Timeline

  1. 30-01-2026
    PublishedVulnerability first disclosed.
  2. 15-07-2026
    Last modifiedVulnerability information updated.

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!

CVSS metrics

9 scores · 6 sources · 2 versions

EPSS trend

Probability

5.47%

Chance of exploitation in the next 30 days

Percentile

93%

Versus all other CVEs

30-day change

+0.08 pp

From 5.39% on 21-09-2026

21-09-202621-10-2026
EPSS score
5.47%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • MetasploitMetasploitremoteUnverified

    Ruby on Rails Active Storage Vips Arbitrary File Read and Remote Code Execution

    exploit/multi/http/rails_activestorage_vips_rce

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Chainguard6 products
  • gitlab-rails-ce-18.1All versions (No fix recorded)
  • gitlab-rails-ce-18.2All versions (No fix recorded)
  • gitlab-rails-ce-18.3All versions (No fix recorded)
  • gitlab-rails-ce-fips-18.1All versions (No fix recorded)
  • gitlab-rails-ce-fips-18.2All versions (No fix recorded)
Debian1 product
  • rails< 2:6.1.7.10+dfsg-1~deb12u2 | < 2:7.2.2.2+dfsg-2~deb13u1 | < 2:7.2.2.2+dfsg-1
Rails1 product
  • activestorage≥ 5.2, < 5.* | ≥ 7.0, < 7.1.5.2 | ≥ 8.0, < 7.0.2.1
RubyGems1 product
  • activestorage≥ 8.0, < 8.0.2.1 | ≥ 7.2, < 7.2.2.2 | ≥ 5.2.0, < 7.1.5.2
Ubuntu1 product
  • railsAll versions (No fix recorded)

5 vendors · 10 products

References

17 links
Show all 17 references