CVE-2025-55004

7.6

ImageMagick · ImageMagick

ImageMagick is vulnerable to a heap-based buffer overflow in the ReadOneMNGImage function, which may allow an unauthenticated attacker to leak memory contents via crafted image files.

Executive summary

A heap-based buffer overflow vulnerability in ImageMagick versions prior to 7.1.2-1 poses a significant risk of unauthorized memory disclosure through malicious image processing.

Vulnerability

The flaw is a heap-based buffer overflow occurring during the handling of images with separate alpha channels when performing magnification. This vulnerability is triggered by an unauthenticated attacker providing a specially crafted image file to the application.

Business impact

The exploitation of this memory disclosure vulnerability could lead to the exposure of sensitive data stored in application memory, potentially compromising system secrets or user information. Given the CVSS score of 7.6, this is a high-severity issue that could facilitate further attacks against the infrastructure, leading to potential data breaches or system instability.

Remediation

Immediate Action: Update the ImageMagick core library to version 7.1.2-1 or later. For users of the Magick.NET NuGet packages, upgrade all affected components to version 14.8.0.

Proactive Monitoring: Monitor application logs for unexpected crashes or errors related to image processing tasks, which may indicate attempted exploitation.

Compensating Controls: Implement strict input validation and sanitization for any user-uploaded images to prevent the processing of malformed files by the ImageMagick engine.

Exploitation status

Public Exploit Available: Unknown.

Analyst recommendation

Organizations utilizing ImageMagick for image manipulation should prioritize the upgrade to the patched versions immediately. Because this vulnerability can be triggered by unauthenticated users through standard image processing workflows, it represents a direct threat to the integrity and confidentiality of the host environment.

More ImageMagick CVEs

Sources