What’s Vulnerable › Vulnerabilities

CVE-2026-56371: ImageMagick - Memory Leak in TXT File Processing via Texture Attribute

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.

Affected products

How to fix

Upgrade to a fixed version: ImageMagick 6.9.13-40, 7.1.2-15; ImageMagick 7.1.2-15. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-56371 or the next vulnerability affects your stack