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.
Published: 2026-06-23
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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 ImageMagick 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. Those 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. An attacker would need to supply such a file to a system that processes 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. However, repeated 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.

Generated by OpenCVE AI on July 28, 2026 at 12:18 UTC.

Remediation

No vendor fix or workaround currently provided.

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 July 28, 2026 at 12:18 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

Thu, 02 Jul 2026 14:30:00 +0000

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'}


Thu, 25 Jun 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-772
References
Metrics threat_severity

None

threat_severity

Moderate


Wed, 24 Jun 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 23 Jun 2026 12:45:00 +0000

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'}


Subscriptions

Imagemagick Imagemagick
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-02T14:07:00.792Z

Reserved: 2026-06-21T02:05:21.920Z

Link: CVE-2026-56371

cve-icon Vulnrichment

Updated: 2026-06-24T15:44:01.011Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-06-23T12:13:04Z

Links: CVE-2026-56371 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-28T12:30:16Z

Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

  • CWE-772

    Missing Release of Resource after Effective Lifetime