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 memory allocation when parsing TXT files containing a texture attribute. If the ReadImage function succeeds but the subsequent GetTypeMetrics call fails, the allocated texture object is never freed, causing a memory leak each time a crafted TXT file with a texture attribute is processed. The flaw does not disclose sensitive data, but repeated exploitation can exhaust system memory, destabilizing the ImageMagick application and the host operating system. This vulnerability is a classic memory leak (CWE‑401) and also reflects a failure to release an unreleased resource (CWE‑772).

Affected Systems

The defect applies to all installations of the ImageMagick image processing suite with releases older than 7.1.2‑15 in the 7.x branch and 6.9.13‑40 in the 6.x branch. Users running those versions should verify that their installed packages have been updated to at least 7.1.2‑15 or 6.9.13‑40 where the memory leak has been addressed.

Risk and Exploitability

Because the leak occurs during routine TXT file parsing, an attacker must supply or force the processing of malicious TXT files that contain the texture attribute. The EPSS score is reported as <1 %, and the vulnerability is not listed in CISA’s KEV catalogue, indicating that publicly available exploits are currently unknown. The likely attack vector is the execution of crafted TXT files that trigger repeated processing, drawn from the description rather than stated directly in the advisory. No privileged execution or data disclosure is required. Nevertheless, repeated processing of such files can lead to memory exhaustion and denial of, presenting a moderate‑to‑high risk for untrusted image or text input. The CVSS score of 6.9 reflects these concerns.

Generated by OpenCVE AI on July 13, 2026 at 16:40 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • 7.1.2‑15 or newer, or 6.9.13‑40 or newer, where the memory leak is fixed.
  • If an immediate upgrade is not possible, sanitize or strip texture attributes from TXT files before they are parsed by ImageMagick, preventing the allocation of the problematic object.
  • Monitor memory usage on servers running ImageMagick and configure limits or automatic restarts to mitigate accidental memory exhaustion.

Generated by OpenCVE AI on July 13, 2026 at 16:40 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-13T16:45:04Z

Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

  • CWE-772

    Missing Release of Resource after Effective Lifetime