Advisory

DEBIAN-CVE-2025-24293

Also known as: CVE-2025-24293

Summary

The record has no summary.

Details

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 for reporting this!

Severity

Not rated by the source.

Dates

Published
2026-01-30 21:15 UTC
Modified
2026-09-01 20:05 UTC

Affected packages and fixes

rails

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 2:6.1.7.10+dfsg-1~deb12u2 (ecosystem)

Fixed versions

2:6.1.7.10+dfsg-1~deb12u2

Fix

  • Fixed version 2:6.1.7.10+dfsg-1~deb12u2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

rails

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 2:7.2.2.2+dfsg-2~deb13u1 (ecosystem)

Fixed versions

2:7.2.2.2+dfsg-2~deb13u1

Fix

  • Fixed version 2:7.2.2.2+dfsg-2~deb13u1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

rails

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 2:7.2.2.2+dfsg-1 (ecosystem)

Fixed versions

2:7.2.2.2+dfsg-1

Fix

  • Fixed version 2:7.2.2.2+dfsg-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences