Cloudanix VulnDB

CVE-2025-46393

None

CVSS

—

EPSS

0.4%

Published

Apr 23, 2025

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A bug in image software can let attackers crash programs or run harmful code simply by providing a specially made picture file.

Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Moderate
Impact
Other
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Mishandling of packet_size during multispectral MIFF image processing leads to memory corruption when channels are rendered in an arbitrary order.

Why it matters to the business

Attackers may crash image-processing applications or achieve code execution, disrupting workflows that rely on ImageMagick for handling image files.

How an attack unfolds

An attacker creates a malicious multispectral MIFF image that triggers incorrect packet_size handling; when the image is processed and channels are rendered out of expected order, memory corruption occurs that can be leveraged for exploitation.

How to fix it

Upgrade ImageMagick to the version containing commit 81ac8a0d2eb21739842ed18c48c7646b7eef65b8 or newer.

How to confirm the fix worked

Confirm the installed build includes commit 81ac8a0d2eb21739842ed18c48c7646b7eef65b8; test processing of multispectral MIFF images for absence of corruption.

Typical attack path

  1. Craft a multispectral MIFF image that exploits packet_size mishandling
  2. Supply the image to an application using the vulnerable ImageMagick library
  3. Trigger image decoding and channel rendering
  4. Leverage resulting memory corruption to crash the process or execute code

How to detect it

Review application and system logs for ImageMagick crashes or memory errors during MIFF file processing; correlate with unexpected process terminations.

What your security team should do

  • Apply the fixed commit or newer ImageMagick build to all affected systems
  • Scan codebases and containers for usage of the vulnerable version
  • Implement input validation or sandboxing for untrusted image files until patched

The record

In multispectral MIFF image processing in ImageMagick before 7.1.1-44, packet_size is mishandled (related to the rendering of all channels in an arbitrary order).

Affected packages

Ecosystem Package Introduced Fixed
Chainguard imagemagick-6 0 6.9.13.38-r0
Debian:13 imagemagick 0 No fix
Debian:14 imagemagick 0 No fix
Mageia:9 imagemagick 0 7.1.1.29-1.1.mga9
SUSE:Linux Enterprise Module for Desktop Applications 15 SP6 ImageMagick 0 7.1.1.21-150600.3.3.1
SUSE:Linux Enterprise Module for Development Tools 15 SP6 ImageMagick 0 7.1.1.21-150600.3.3.1
openSUSE:Leap 15.6 ImageMagick 0 7.1.1.21-150600.3.3.1

Related vulnerabilities