CVE Database›CVE-2026-25968

CVE-2026-25968

ImageMagick: ImageMagick: Memory corruption via stack buffer overflow when processing an attribute

Loading…

Severity

Moderate

Red Hat Product Security

7.4

CVSS 3.1

Review impact separately from score.

Published · February 24, 2026

Updated · August 18, 2026

Description

A flaw was found in ImageMagick. A remote attacker could exploit a stack buffer overflow vulnerability by providing a specially crafted image file with a long attribute value. This flaw occurs when processing an attribute in msl.c, leading to memory corruption. This can result in unpredictable behavior or a denial of service.

Statement

A MODERATE impact stack buffer overflow flaw exists in ImageMagick. This vulnerability occurs when processing a specially crafted image file containing a long attribute value, leading to memory corruption, unpredictable behavior, or a denial of service. This affects ImageMagick as shipped in Red Hat Enterprise Linux, Fedora, and Community Projects, requiring the processing of a malicious image file for exploitation.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

To reduce the risk associated with this vulnerability, avoid processing untrusted or maliciously crafted image files with ImageMagick. If ImageMagick is not required for system operations, consider removing packages that depend on it. Removing ImageMagick or its dependent packages may affect applications that rely on its image processing capabilities.

CVSS / CWE

CVSS 3.1 · 7.4
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H

CWE-120 · Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')