CVE-2025-46393
NoneCVSS
—
EPSS
0.4%
Published
Apr 23, 2025
CISA due date
—
Cloudanix analysis
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
- Craft a multispectral MIFF image that exploits packet_size mishandling
- Supply the image to an application using the vulnerable ImageMagick library
- Trigger image decoding and channel rendering
- 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
- CVE-2026-23952 ImageMagick is free and open-source software used for editing and manipulating digital… Also affects imagemagick-6
- GHSA-9vj4-wc7r-p844 ImageMagick MSL: Stack overflow via infinite recursion in ProcessMSLScript Also affects imagemagick-6
- CVE-2026-23874 ImageMagick MSL: Stack overflow via infinite recursion in ProcessMSLScript Also affects imagemagick-6
- GHSA-39h3-g67r-7g3c ImageMagick releases an invalid pointer in BilateralBlur when memory allocation fails Also affects imagemagick-6
- CVE-2026-22770 ImageMagick releases an invalid pointer in BilateralBlur when memory allocation fails Also affects imagemagick-6
- GHSA-7rvh-xqp3-pr8j ImageMagick's failure to limit MVG mutual causes Stack Overflow Also affects imagemagick-6
- GHSA-p27m-hp98-6637 ImageMagick's failure to limit the depth of SVG file reads caused a DoS attack Also affects imagemagick-6
- CVE-2025-69204 ImageMagick converting a malicious MVG file to SVG caused an integer overflow. Also affects imagemagick-6