CVE-2026-56371

ImageMagick - Memory Leak in TXT File Processing via Texture Attribute

Published Jun 23, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
ImageMagick before 7.1.2-15 and 6.9.13-40 contains a memory leak in coders/txt.c when processing TXT files with texture attributes: the texture object allocated via ReadImage is not released when GetTypeMetrics fails, leaking memory each time a crafted TXT file with a texture attribute is processed.

Analysis

AI-generated

Technical impact

ImageMagick releases a private object when reading a TXT image file that contains a texture attribute. If the subsequent GetTypeMetrics call fails, that object is never freed, causing the process to leak memory each time the file is parsed. The leak does not disclose or modify data; it simply consumes available RAM, which over repeated usage can exhaust system memory, destabilize the application and potentially affect the host operating system.

Affected Systems

All installations of the ImageMagick image processing suite with releases older than 7.1.2‑15 in the 7.x branch or older than 6.9.13‑40 in the 6.x branch. These versions are affected by the memory‑leak flaw when processing TXT files that include texture attributes.

Risk and Exploitability

The vulnerability can be exploited by forcing the target system to parse crafted TXT files containing a texture attribute. Based on the description, the likely attack vector involves supplying such a file to a service or application that uses ImageMagick to process untrusted image data. The EPSS score of <1 % suggests that publicly available, automated exploitation is currently unlikely, and the flaw is not listed in CISA’s KEV catalogue. Nevertheless, repetitive or batch processing of malicious files can lead to memory exhaustion, presenting a moderate to high risk of denial of service. The CVSS score of 6.9 reflects these conditions.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ImageMagick to version 7.1.2‑15 or newer, or to 6.9.13‑40 or newer, where the leak is fixed.
  • Prior to upgrading, remove or strip texture attributes from TXT files or otherwise sanitize user‑supplied TXT files before they are processed by ImageMagick.
  • Monitor memory consumption on hosts running ImageMagick and consider implementing resource limits or automated restarts to prevent prolonged memory exhaustion.

Generated by OpenCVE AI on August 3, 2026 at 07:17 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
Github GHSA Github GHSA GHSA-3q5f-gmjc-38r8 ImageMagick: Memory leak in coders/txt.c without freetype
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 cvssV3_1

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

cvssV4_0

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

cvssV3_1

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

cvssV4_0

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

Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description ImageMagick before 7.1.2-15 and 6.9.13-40 contains a memory leak in coders/txt.c when processing TXT files with texture attributes: the texture object allocated via ReadImage is not released when GetTypeMetrics fails, leaking memory each time a crafted TXT file with a texture attribute is processed.
Title ImageMagick - Memory Leak in TXT File Processing via Texture Attribute
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': 0, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N'}

cvssV4_0

{'score': 0, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/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
Oct 29, 2026, 9:15 PM
Reserved
Jun 21, 2026, 2:05 AM
Status
Modified
Published
Jun 23, 2026, 1:16 PM
Modified
Oct 29, 2026, 9:17 PM
Severity
Moderate
Public date
Jun 23, 2026, 12:13 PM