Description
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-15 and 6.9.13-40, a heap buffer overflow write vulnerability exists in ReadYUVImage() (coders/yuv.c) when processing malicious YUV 4:2:2 (NoInterlace) images. The pixel-pair loop writes one pixel beyond the allocated row buffer. Versions 7.1.2-15 and 6.9.13-40 contain a patch.
Published: 2026-02-24
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Heap Buffer Overflow
Action: Patch
AI Analysis

Impact

ImageMagick processes image files, and a flaw in the YUV 4:2:2 decoder writes one pixel beyond the allocated row buffer during the pixel‑pair loop, creating a heap buffer overflow. This out‑of‑bounds write can corrupt adjacent memory, and based on the description it is inferred that an attacker might be able to achieve either a denial‑of‑service crash or, if the memory corruption is exploitable, arbitrary‑code execution. The weakness is characterized by CWE‑787 (Out‑of‑Bounds Write) and CWE‑805 (Incorrect Calculation or Use of Buffer Size). Based on the description, it is inferred that the primary attack vector involves supplying a maliciously crafted YUV 4:2:2 image to any component that invokes ImageMagick’s decoder. The vulnerability can affect any process or service that performs image manipulation using ImageMagick without restricting the input image formats.

Affected Systems

Vendors and products identified by the CNA are ImageMagick ImageMagick. The affectation covers all releases earlier than 7.1.2‑15 in the 7.x branch and earlier than 6.9.13‑40 in the 6.x branch. These versions are widely deployed on Linux distributions, macOS, Windows, and embedded systems that employ ImageMagick for image processing.

Risk and Exploitability

The CVSS score of 5.3 indicates a moderate severity, while the EPSS value of less than 1% signifies a very low probability of exploitation at the time of this analysis. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires an attacker to supply a specially crafted YUV 4:2:2 file to a vulnerable instance of ImageMagick; the heap overflow occurs during the pixel‑pair loop and writes one pixel beyond the allocated row buffer. Based on the code path described, an attacker can trigger the flaw by submitting the file to any image‑processing routine that uses the YUV 4:2:2 decoder. The potential impact of exploitation ranges from an application crash to, depending on the exploit feasibility, arbitrary code execution.

Generated by OpenCVE AI on April 17, 2026 at 15:58 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the official patch by upgrading ImageMagick to version 7.1.2‑15 or later, or 6.9.13‑40 or later, whichever series is in use.
  • If upgrading is not immediately possible, restrict input by filtering or rejecting YUV 4:2:2 images, or disable YUV decoding functionality if the application permits it.
  • Run ImageMagick in a sandboxed or restricted environment and monitor logs for abnormal image decoding attempts to contain potential exploitation.

Generated by OpenCVE AI on April 17, 2026 at 15:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4497-1 imagemagick security update
Debian DSA Debian DSA DSA-6158-1 imagemagick security update
Debian DSA Debian DSA DSA-6159-1 imagemagick security update
Github GHSA Github GHSA GHSA-mqfc-82jx-3mr2 ImageMagick has heap buffer overflow in YUV 4:2:2 decoder
Ubuntu USN Ubuntu USN USN-8069-1 ImageMagick vulnerabilities
History

Sat, 28 Feb 2026 02:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 25 Feb 2026 16:00:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*

Tue, 24 Feb 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-805
References
Metrics threat_severity

None

threat_severity

Moderate


Tue, 24 Feb 2026 10:00:00 +0000

Type Values Removed Values Added
First Time appeared Imagemagick
Imagemagick imagemagick
Vendors & Products Imagemagick
Imagemagick imagemagick

Tue, 24 Feb 2026 02:00:00 +0000

Type Values Removed Values Added
Description ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-15 and 6.9.13-40, a heap buffer overflow write vulnerability exists in ReadYUVImage() (coders/yuv.c) when processing malicious YUV 4:2:2 (NoInterlace) images. The pixel-pair loop writes one pixel beyond the allocated row buffer. Versions 7.1.2-15 and 6.9.13-40 contain a patch.
Title ImageMagick has a heap buffer overflow in YUV 4:2:2 decoder
Weaknesses CWE-787
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}


Subscriptions

Imagemagick Imagemagick
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-02-28T02:06:51.578Z

Reserved: 2026-02-09T17:41:55.857Z

Link: CVE-2026-25986

cve-icon Vulnrichment

Updated: 2026-02-28T02:06:45.987Z

cve-icon NVD

Status : Analyzed

Published: 2026-02-24T02:16:02.780

Modified: 2026-02-25T15:53:11.963

Link: CVE-2026-25986

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-02-24T01:44:34Z

Links: CVE-2026-25986 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-04-17T16:00:11Z

Weaknesses