Description
ImageMagick before 7.1.2-19 contains an off-by-one error in morphology validation allowing out-of-bounds heap buffer reads. Attackers can trigger heap buffer overflow by providing incorrect morphology parameters causing single pixel memory access violations.
Published: 2026-06-30
Score: 4.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

ImageMagick before version 7.1.2‑19 contains an off‑by‑one error in morphology validation that allows out‑of‑bounds heap buffer reads. An attacker can supply malformed morphology parameters, creating a single‑pixel memory access violation that enables reading memory beyond the intended bounds. This flaw can be leveraged to expose sensitive information that the ImageMagick process can access. While the description refers to a "heap buffer overflow", the nature of the vulnerability is an over‑read rather than an overwrite. Consequently, the risk is primarily data exposure rather than immediate code execution.

Affected Systems

The affected product is ImageMagick; the issue exists in all releases prior to 7.1.2‑19. No specific platform or operating system filtering is mentioned, so any system running a vulnerable version of ImageMagick is potentially impacted.

Risk and Exploitability

The CVSS score of 4.8 indicates a moderate severity, and the EPSS score is not available, making it difficult to quantify current exploitation likelihood. ImageMagick is not listed in CISA’s KEV catalog. Inference suggests the attack vector requires an attacker to supply a crafted image containing invalid morphology parameters, which could be delivered via local file inclusion, an image upload feature, or a remote image processing endpoint. The presence of the off‑by‑one error provides an exploitation opportunity, but no direct evidence of active exploitation is reported.

Generated by OpenCVE AI on June 30, 2026 at 23:38 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade ImageMagick to version 7.1.2‑19 or later to eliminate the off‑by‑one bug.
  • If an immediate upgrade is not possible, restrict the use of morphology operations to trusted inputs or delete that functionality from the application.
  • Validate all morphology parameters against accepted ranges before passing them to ImageMagick to prevent out‑of‑bounds reads.

Generated by OpenCVE AI on June 30, 2026 at 23:38 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
History

Mon, 06 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Low


Wed, 01 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 30 Jun 2026 22:45:00 +0000

Type Values Removed Values Added
Description ImageMagick before 7.1.2-19 contains an off-by-one error in morphology validation allowing out-of-bounds heap buffer reads. Attackers can trigger heap buffer overflow by providing incorrect morphology parameters causing single pixel memory access violations.
Title ImageMagick - Heap Buffer Overflow via Off-by-One in Morphology Processing
First Time appeared Imagemagick
Imagemagick imagemagick
Weaknesses CWE-125
CPEs cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
Vendors & Products Imagemagick
Imagemagick imagemagick
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 4.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}


Subscriptions

Imagemagick Imagemagick
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-01T14:28:19.148Z

Reserved: 2026-06-20T21:16:53.711Z

Link: CVE-2026-56361

cve-icon Vulnrichment

Updated: 2026-07-01T13:43:54.649Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Low

Publid Date: 2026-06-30T22:08:36Z

Links: CVE-2026-56361 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-01T13:00:14Z

Weaknesses