CVE-2026-56361

ImageMagick - Heap Buffer Overflow via Off-by-One in Morphology Processing

Published Jun 30, 2026 CVSS 4.0 · 4.8 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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
Ubuntu USN Ubuntu USN USN-8810-1 ImageMagick vulnerabilities
History
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 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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 29, 2026, 9:15 PM
Reserved
Jun 20, 2026, 9:16 PM
Status
Analyzed
Published
Jun 30, 2026, 11:17 PM
Modified
Oct 29, 2026, 9:17 PM
Severity
Low
Public date
Jun 30, 2026, 10:08 PM