CVE-2025-55154
NoneCVSS
—
EPSS
1.0%
Published
Aug 13, 2025
CISA due date
—
Cloudanix analysis
A bug in widely used image software can let attackers corrupt memory and potentially seize control of systems that open certain image files.
- 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
Unsafe magnified size calculations in ReadOneMNGImage (coders/png.c) permit integer overflow leading to memory corruption during PNG/MNG image parsing.
Why it matters to the business
Applications that process untrusted images risk crashes or remote code execution, potentially causing service outages, data exposure, or system compromise in environments using ImageMagick for graphics handling.
How an attack unfolds
An attacker supplies a crafted MNG or PNG file containing manipulated size metadata that triggers overflow in the magnified size computation, resulting in memory corruption that may be chained to arbitrary code execution within the parsing process.
How to fix it
Upgrade imagemagick to version containing commit 83b6fc338ae1d38602eb5f6b307393adc3a0e1a7 and imagemagick6 to commit 61bc270b01a4632a885698ab36055292737073a2, corresponding to releases 6.9.13-27 and 7.1.2-1 or newer.
How to confirm the fix worked
Confirm installed version meets or exceeds 6.9.13-27 or 7.1.2-1; recompile from updated source and test parsing of known-malformed size metadata.
Typical attack path
- Craft malicious image containing oversized or malformed magnified dimension values
- Deliver image to target via upload, attachment, or web request
- Vulnerable ImageMagick instance parses the file in ReadOneMNGImage
- Integer overflow corrupts memory structures
- Attacker leverages corruption for code execution or denial of service
How to detect it
Review application logs for abnormal terminations or memory errors during PNG/MNG processing; inspect for repeated parsing attempts on files with suspicious dimension headers.
What your security team should do
- Immediately update all ImageMagick installations to the fixed commits or releases
- Inventory dependencies and downstream packages relying on vulnerable versions
- Disable or sandbox image processing of untrusted files until patches are applied
- Monitor EPSS and threat intelligence for any rise in exploitation activity
The record
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 6.9.13-27 and 7.1.2-1, the magnified size calculations in ReadOneMNGIMage (in coders/png.c) are unsafe and can overflow, leading to memory corruption. This issue has been patched in versions 6.9.13-27 and 7.1.2-1.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| NuGet | Magick.NET-Q16-AnyCPU | 0 | 14.8.0 |
| NuGet | Magick.NET-Q16-HDRI-AnyCPU | 0 | 14.8.0 |
| NuGet | Magick.NET-Q16-HDRI-OpenMP-arm64 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q16-HDRI-OpenMP-x64 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q16-HDRI-arm64 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q16-HDRI-x64 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q16-HDRI-x86 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q16-OpenMP-arm64 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q16-OpenMP-x64 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q16-arm64 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q16-x64 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q16-x86 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q8-AnyCPU | 0 | 14.8.0 |
| NuGet | Magick.NET-Q8-OpenMP-arm64 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q8-OpenMP-x64 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q8-arm64 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q8-x64 | 0 | 14.8.0 |
| NuGet | Magick.NET-Q8-x86 | 0 | 14.8.0 |
| Debian:11 | imagemagick | 0 | No fix |
| Debian:12 | imagemagick | 0 | No fix |
| Debian:13 | imagemagick | 0 | No fix |
| Debian:14 | imagemagick | 0 | No fix |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP6 | ImageMagick | 0 | 7.1.1.21-150600.3.20.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP7 | ImageMagick | 0 | 7.1.1.43-150700.3.13.1 |
| SUSE:Linux Enterprise Module for Development Tools 15 SP6 | ImageMagick | 0 | 7.1.1.21-150600.3.20.1 |
| SUSE:Linux Enterprise Module for Development Tools 15 SP7 | ImageMagick | 0 | 7.1.1.43-150700.3.13.1 |
| openSUSE:Leap 15.6 | ImageMagick | 0 | 7.1.1.21-150600.3.20.1 |
| openSUSE:Tumbleweed | ImageMagick | 0 | 7.1.2.1-1.1 |
Related vulnerabilities
- CVE-2026-27799 ImageMagick is free and open-source software used for editing and manipulating digital… Also affects Magick.NET-Q16-AnyCPU
- CVE-2026-27798 ImageMagick is free and open-source software used for editing and manipulating digital… Also affects Magick.NET-Q16-AnyCPU
- GHSA-r99p-5442-q2x2 ImageMagick has a heap Buffer Over-read in its DJVU image format handler Also affects Magick.NET-Q16-AnyCPU
- GHSA-qpgx-jfcq-r59f ImageMagick: Heap Buffer Over-read in WaveletDenoise when processing small images Also affects Magick.NET-Q16-AnyCPU
- GHSA-gq5v-qf8q-fp77 ImageMagick: Heap-based Buffer Overflow in GetPixelIndex due to metadata-cache… Also affects Magick.NET-Q16-AnyCPU
- GHSA-wfx3-6g53-9fgc ImageMagick: Memory Leak in multiple coders that write raw pixel data Also affects Magick.NET-Q16-AnyCPU
- GHSA-3q5f-gmjc-38r8 ImageMagick: Memory leak in coders/txt.c without freetype Also affects Magick.NET-Q16-AnyCPU
- GHSA-xpg8-7m6m-jf56 ImageMagick: SVG-to-MVG Command Injection via coders/svg.c Also affects Magick.NET-Q16-AnyCPU