CVE-2026-56365

ImageMagick - Memory Leak in PNG Encoder via MNG Image Writing

Published Jun 30, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
ImageMagick before 7.1.2-19 contains a memory leak vulnerability in the PNG encoder when writing MNG images. Attackers can trigger the encoder failure condition to exhaust memory resources and cause denial of service.

Analysis

AI-generated

Technical impact

ImageMagick before 7.1.2-19 contains a memory leak in the PNG encoder when writing MNG images, allowing an attacker to trigger the encoder failure condition, which exhausts memory resources and results in a denial of service. The weakness is a memory management issue, classified as CWE-401. The vulnerability does not confer confidentiality or integrity benefits, but it can disrupt service availability for local or remote consumers of the image processing function until the process crashes or restarts.

Affected Systems

The affected vendor is ImageMagick, product ImageMagick. Versions prior to 7.1.2-19 are vulnerable. No specific sub‑versions are listed; all releases before the release date of 7.1.2-19 may be impacted.

Risk and Exploitability

The CVSS score is 6.3, indicating moderate severity. EPSS is not available, and the vulnerability is not listed in the CISA KEV catalog. Attackers likely need the ability to supply an MNG image to the affected PNG encoder, suggesting a remote or local attack path if an image‑processing service is exposed or if the application processes user‑supplied images. Once the leak is triggered, available memory drains, causing the process to crash or become unresponsive, thereby denying service to legitimate users.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ImageMagick to version 7.1.2-19 or later
  • If user‑supplied images are processed, configure the application to reject or remove support for MNG files to eliminate the trigger for the memory leak
  • Configure process resource limits (e.g., ulimit or cgroups) to cap memory usage of the image processing service, preventing the system from exhausting memory

Generated by OpenCVE AI on July 1, 2026 at 00:05 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
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 a memory leak vulnerability in the PNG encoder when writing MNG images. Attackers can trigger the encoder failure condition to exhaust memory resources and cause denial of service.
Title ImageMagick - Memory Leak in PNG Encoder via MNG Image Writing
First Time appeared Imagemagick
Imagemagick imagemagick
Weaknesses CWE-401
CPEs cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
Vendors & Products Imagemagick
Imagemagick imagemagick
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

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