Description
ImageMagick is free and open-source software used for editing and manipulating digital images. In versions prior to 6.9.13-51 and 7.0.1-0 and above prior to 7.1.2-26, an invalid kernel can cause a heap buffer over-write when performing a morphology operation with a user supplied kernel. This issue has been fixed in versions 6.9.13-51 and 7.1.2-26.
Published: 2026-07-29
Score: 4.7 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

ImageMagick contains a heap buffer over‑write that occurs during the morphology operation when it receives an invalid kernel generated from user supplied data. The overflow corrupts heap memory and can trigger an application crash or other unintended behaviour. The weakness falls under CWE‑805 (Buffer Access with Incorrect Length Value) and CWE‑190 (Integer Overflow or Division by Zero).

Affected Systems

All installations of ImageMagick older than 6.9.13‑51 and 7.1.2‑26—including every release in the 7.0.x series—are affected. Applications that invoke the morphology function with kernel values supplied by external users, such as web services that process uploaded images, would be vulnerable if no protective checks are in place.

Risk and Exploitability

The CVSS score of 4.7 indicates a moderate risk; exploitation is local to the context that processes the malformed image. The EPSS score of < 1 % implies a very low probability of widespread exploitation. The vulnerability is not listed in CISA’s KEV catalog. Attackers would need to supply crafted image data containing an unsupported kernel value, making the attack vector user‑controlled image input; systems that only process trusted or validated images face reduced exposure.

Generated by OpenCVE AI on August 4, 2026 at 23:12 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade ImageMagick to version 6.9.13‑51 or later, or to 7.1.2‑26 or later, which removes the kernel validation flaw.
  • If an upgrade is not immediately feasible, validate or restrict all kernel values passed to the morphology routine to ensure only supported values are processed, thereby preventing the overflow from occurring.
  • Configure services that embed ImageMagick to accept only signed, trusted images or otherwise limit the set of images that can be processed, reducing the opportunity for an attacker to supply malicious kernel data.

Generated by OpenCVE AI on August 4, 2026 at 23:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-f5m7-cqgw-8hm7 ImageMagick: Heap Buffer Over-Write in morphology operation when an invalid kernel is provided
History

Thu, 30 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 30 Jul 2026 12:15:00 +0000

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

None

threat_severity

Moderate


Thu, 30 Jul 2026 02:15:00 +0000

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

Thu, 30 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
Description ImageMagick is free and open-source software used for editing and manipulating digital images. In versions prior to 6.9.13-51 and 7.0.1-0 and above prior to 7.1.2-26, an invalid kernel can cause a heap buffer over-write when performing a morphology operation with a user supplied kernel. This issue has been fixed in versions 6.9.13-51 and 7.1.2-26.
Title ImageMagick: Heap Buffer Over-Write in morphology operation when an invalid kernel is provided
Weaknesses CWE-190
References
Metrics cvssV3_1

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


Subscriptions

Imagemagick Imagemagick
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-30T13:56:44.621Z

Reserved: 2026-07-13T21:42:50.095Z

Link: CVE-2026-62343

cve-icon Vulnrichment

Updated: 2026-07-30T13:56:24.860Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-30T00:16:24.200

Modified: 2026-08-03T16:27:26.357

Link: CVE-2026-62343

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-29T23:57:51Z

Links: CVE-2026-62343 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T23:15:07Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

  • CWE-805

    Buffer Access with Incorrect Length Value