CVE-2026-56371

ImageMagick - Memory Leak in TXT File Processing via Texture Attribute

State
Published
Severity
6.9 Medium
Published
Jun 23, 2026
Updated
Oct 29, 2026
Reserved
Jun 21, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.06.9 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NVulnCheck
3.15.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LVulnCheck

Weaknesses

  • CWE-401 Missing Release of Memory after Effective Lifetime

Affected Products

ProductVersions
ImageMagickImageMagick
  • 7.0.0 to before 7.1.2-15Affected
  • 7.1.2-15Not affected
ImageMagickImageMagick
  • before 6.9.13-40Affected
  • 6.9.13-40Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.