Cloudanix VulnDB

CVE-2025-55004

Medium · 4.3

CVSS

4.3

EPSS

0.5%

Published

Aug 13, 2025

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A bug in widely used image editing software could let attackers steal pieces of hidden data from a computer's memory when certain picture files are opened or processed.

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

What it actually does

Heap buffer over-read during magnification of MNG images containing separate alpha channels in ReadOneMNGImage, allowing subsequent memory contents to be copied into the resulting image.

Why it matters to the business

Processing untrusted images with ImageMagick can expose fragments of server or application memory, potentially disclosing sensitive data such as keys, tokens, or user information.

How an attack unfolds

An attacker crafts a specially formed MNG image with separate alpha channels, supplies it to an application that invokes ImageMagick's ReadOneMNGImage function for magnification, triggers the buffer over-read, and extracts leaked memory from the generated output image.

How to fix it

Upgrade ImageMagick to version 7.1.2-1 or later; specifically apply commit 83b6fc338ae1d38602eb5f6b307393adc3a0e1a7 for GIT builds. Disable MNG support if not required.

How to confirm the fix worked

Verify installed version is at least 7.1.2-1 or contains commit 83b6fc338ae1d38602eb5f6b307393adc3a0e1a7; test processing of MNG images containing separate alpha channels and confirm no memory leakage occurs in output.

Typical attack path

  1. Craft malicious MNG file with separate alpha channel data sized to trigger over-read on magnification
  2. Deliver the image to a target application or service that uses vulnerable ImageMagick for image handling
  3. Trigger image processing path that calls ReadOneMNGImage with magnification
  4. Inspect the resulting output image for leaked memory contents

How to detect it

Review application logs for ImageMagick invocations involving MNG files from external or untrusted sources; inspect output images for unexpected pixel data patterns consistent with memory disclosure; correlate with any process crashes or abnormal memory reads during image magnification operations.

What your security team should do

  • Immediately update all ImageMagick installations to the fixed version or commit
  • Inventory applications and services that process user-supplied images and prioritize updates for those accepting MNG or untrusted formats
  • Restrict ImageMagick usage to trusted image sources until patches are applied
  • Monitor vulnerability feeds for any increase in EPSS or public exploit availability

The record

ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to version 7.1.2-1, ImageMagick is vulnerable to heap-buffer overflow read around the handling of images with separate alpha channels when performing image magnification in ReadOneMNGIMage. This can likely be used to leak subsequent memory contents into the output image. This issue has been patched in version 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
Chainguard imagemagick-6-dev 0 6.9.13.33-r0
Chainguard imagemagick-6-doc 0 6.9.13.33-r0
Chainguard imagemagick-6-static 0 6.9.13.33-r0
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

Related vulnerabilities