Skip to main content

CVE-2025-24293 — Vulnerability in activestorage — CVE Details

CRITICAL

Active Storage allowed transformation methods that were potentially unsafe

Published August 14, 2025Updated January 31, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (7.55%). Schedule for your next planned update.

Does your project use an affected activestorage version?

Paste your Gemfile.lock to check it for CVE-2025-24293 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my Gemfile.lock

Summary

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 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.

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!

Advisory Timeline

  • First published August 14, 2025 (469 days ago).
  • Last revised January 31, 2026 — 170 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update activestorage to 8.0.2.1 or later
gem install activestorage -v 8.0.2.1
Bundler
Update activestorage to 7.1.5.2 or later
gem install activestorage -v 7.1.5.2
Bundler
Update activestorage to 7.2.2.2 or later
gem install activestorage -v 7.2.2.2

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: RubyGems (1).

PackageFixed In
activestorage RubyGems · Affected: 8.0.0, 8.0.0.1, 8.0.1, 8.0.28.0.2.1
activestorage RubyGems · Affected: 5.2.0, 5.2.1, 5.2.1.1, 5.2.1.rc1 (+138 more)7.1.5.2
activestorage RubyGems · Affected: 7.2.0, 7.2.1, 7.2.1.1, 7.2.1.2 (+2 more)7.2.2.2

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.3 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

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

Frequently Asked Questions

What is CVE-2025-24293?
Active Storage allowed transformation methods that were potentially unsafe. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.3/10).
How do I check if my project is affected by CVE-2025-24293?
CVE-2025-24293 affects activestorage. It has a 7.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-24293 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.3

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
7.55%
EPSS percentile: 95.3

This places it in the top 5% of EPSS-scored vulnerabilities — 95.3% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.

Also Known As

GHSA-r4mg-4433-c7g3

Related CVEs

  • CVE-2022-21831
    CRITICAL

    Possible code injection vulnerability in Rails / Active Storage

  • CVE-2026-66066
    CRITICAL

    Active Storage has possible arbitrary file read and remote code execution in Active Storage variant processing

  • CVE-2026-126186
    HIGH

    Active Storage: Possible arbitrary file read and remote code execution in video previews, analysis and image processing

  • CVE-2026-126084
    MEDIUM

    Active Storage: Unsigned Content-Type in GCS direct uploads with cache_control

  • CVE-2026-126071
    MEDIUM

    Active Storage: Possible DoS vulnerability in Active Storage proxy mode via storage errors during streaming

  • CVE-2026-33173
    MEDIUM

    Rails Active Storage has possible content type bypass via metadata in direct uploads

  • CVE-2026-33174
    MEDIUM

    Rails Active Storage has a possible DoS vulnerability when in proxy mode via Range requests

  • CVE-2026-33658
    LOW

    Rails Active Storage has a possible DoS vulnerability in proxy mode via multi-range requests

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Gemfile.lock