CVE-2026-61866

ImageMagick before 7.1.2-26 Memory Leak in JNG encoder

Published Jul 15, 2026 CVSS 4.0 · 2.1 Low EPSS < 1% KEV · Not listed
Description
ImageMagick before 7.1.2-26 contains a memory leak vulnerability in the JNG encoder when a blob cannot be opened. Attackers can trigger the memory leak by providing malformed JNG files that fail blob operations, causing resource exhaustion.

Analysis

AI-generated

Technical impact

ImageMagick before version 7.1.2‑26 suffers from a memory leak in the JNG encoder when a blob operation fails to open a file. The leak occurs because the program allocates memory during the failure path and does not release it, as identified by CWE‑401 and CWE‑772. Repeatedly supplying malformed JNG files that trigger this failure can drain system memory, leading to degraded performance or a denial of service if the host runs out of resources. The CVSS score of 2.1 reflects the relatively low severity, as the vulnerability only causes resource exhaustion and does not directly provide an attacker with code execution or arbitrary network access.

Affected Systems

All installations of ImageMagick released before 7.1.2‑26 are affected regardless of operating system. Users running any earlier version on any platform are exposed, and the vulnerability applies to the ImageMagick product as a whole.

Risk and Exploitability

The EPSS score of less than 1% indicates a very low likelihood of exploitation under current data, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector involves an attacker who can supply crafted JNG data to the ImageMagick encoder, for example through a web upload, email attachment, or any file ingestion endpoint that accepts JNG files. Successful exploitation would lead to resource exhaustion, affecting availability but not confidentiality or integrity.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ImageMagick to version 7.1.2‑26 or later
  • Disable or reject JNG file processing before attempting to open blobs when malformed data is detected
  • Apply system resource limits (e.g., ulimit, cgroups) and monitor memory usage to detect and mitigate unexpected growth

Generated by OpenCVE AI on July 31, 2026 at 03:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4696-1 imagemagick security update
Ubuntu USN Ubuntu USN USN-8739-1 ImageMagick vulnerabilities
Ubuntu USN Ubuntu USN USN-8739-2 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-26 contains a memory leak vulnerability in the JNG encoder when a blob cannot be opened. Attackers can trigger the memory leak by providing malformed JNG files that fail blob operations, causing resource exhaustion.
Title ImageMagick before 7.1.2-26 Memory Leak in JNG encoder
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': 2.9, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L'}

cvssV4_0

{'score': 2.1, 'vector': 'CVSS:4.0/AV:L/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

  • CWE-772

    Missing Release of Resource after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 15, 2026, 5:54 PM
Reserved
Jul 10, 2026, 9:53 PM
Status
Analyzed
Published
Jul 15, 2026, 12:18 PM
Modified
Jul 16, 2026, 3:01 AM
Severity
Low
Public date
Jul 15, 2026, 11:25 AM