CVE-2026-56371

MEDIUM

ImageMagick - Memory Leak in TXT File Processing via Texture Attribute

Title source: cna
STIX 2.1

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.

References (2)

Core 2
Core References
Vendor Advisory vendor-advisory
GitHub Security Advisory (GHSA-3q5f-gmjc-38r8)
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-3q5f-gmjc-38r8
Third Party Advisory third-party-advisory
VulnCheck Advisory: ImageMagick - Memory Leak in TXT File Processing via Texture Attribute
https://www.vulncheck.com/advisories/imagemagick-memory-leak-in-txt-file-processing-via-texture-attribute

Scores

CVSS v3 5.3
EPSS 0.0026
EPSS Percentile 17.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

CISA SSVC

Vulnrichment
Exploitation none
Automatable yes
Technical Impact partial

Details

CWE
CWE-401
Status published
Products (5)
ImageMagick/ImageMagick < 6.9.13-40
imagemagick/imagemagick < 6.9.13-40
ImageMagick/ImageMagick < 7.1.2-15
ImageMagick/ImageMagick 6.9.13-40
ImageMagick/ImageMagick 7.1.2-15
Published Jun 23, 2026
Tracked Since Jun 23, 2026