CVE-2026-55597

ImageMagick: Heap Buffer Over-Write in JP2 encoder when due to incorrect handling of arguments

Published Jul 1, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to version 7.1.2-26, an incorrect handling of arguments can cause a heap buffer over-write in the JP2 encoder. This issue has been fixed in version7.1.2-26.

Analysis

AI-generated

Technical impact

The JP2 encoder in ImageMagick versions prior to 7.1.2‑26 incorrectly processes arguments, causing a heap buffer over‑write that corrupts memory adjacent to the buffer. This memory corruption may lead to application crashes or other disruptive behaviours when a specially crafted JPEG‑2000 image is processed. The flaw is a classic buffer‑overflow (CWE‑787) and an argument handling error leading to unsafe memory usage (CWE‑682).

Affected Systems

Any installation of ImageMagick 7.x below 7.1.2‑26 that processes JPEG‑2000 input is affected. This includes web servers, image conversion services, or any system component that calls the JP2 encoder directly or indirectly.

Risk and Exploitability

The CVSS score of 5.5 denotes medium severity, and the EPSS score of <1% indicates a low probability of exploitation in the wild. The vulnerability is not listed in CISA's KEV catalog. An attacker would need to supply a maliciously crafted JPEG‑2000 image to an ImageMagick process, which could be local or remote if the application accepts untrusted images. Successful exploitation would result in unpredictable behaviour such as crashes or potential denial‑of‑service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to ImageMagick 7.1.2‑26 or newer to apply the JP2 encoder fix.
  • If JPEG‑2000 handling is not required, disable JP2 support or remove related modules from the installation.
  • Run ImageMagick under the least privilege necessary and validate or sanitize incoming image files before they reach the encoder.

Generated by OpenCVE AI on August 3, 2026 at 05:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4680-1 imagemagick security update
Debian DSA Debian DSA DSA-6383-1 imagemagick security update
Github GHSA Github GHSA GHSA-c4v7-w88g-m6c4 ImageMagick: Heap Buffer Over-Write in JP2 encoder when due to incorrect handling of arguments
History
Type Values Removed Values Added
First Time appeared Imagemagick
Imagemagick imagemagick
Vendors & Products Imagemagick
Imagemagick imagemagick
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to version 7.1.2-26, an incorrect handling of arguments can cause a heap buffer over-write in the JP2 encoder. This issue has been fixed in version7.1.2-26.
Title ImageMagick: Heap Buffer Over-Write in JP2 encoder when due to incorrect handling of arguments
Weaknesses CWE-682
CWE-787
References
Metrics cvssV3_1

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 1, 2026, 7:21 PM
Reserved
Jun 16, 2026, 11:18 PM
Status
Analyzed
Published
Jul 1, 2026, 7:16 PM
Modified
Jul 2, 2026, 7:30 PM
Severity
Moderate
Public date
Jul 1, 2026, 7:03 PM