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

Published Jun 23, 2026
·
Updated

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 Software

7 affected componentsFixes available
ImageMagick ImageMagick<7.1.2-15, <6.9.13-40
ImageMagick ImageMagick<6.9.13-40
ImageMagick ImageMagick>=7.0.0-0<7.1.2-15
debian/imagemagick<8:6.9.11.60+dfsg-1.6+deb12u12
8:6.9.11.60+dfsg-1.6+deb12u12
debian/imagemagick<8:7.1.1.43+dfsg1-1+deb13u11
8:7.1.1.43+dfsg1-1+deb13u11
debian/imagemagick<8:7.1.2.15+dfsg1-1
8:7.1.2.15+dfsg1-1
debian/imagemagick<=8:6.9.11.60+dfsg-1.6+deb12u11
8:6.9.11.60+dfsg-1.6+deb12u158:7.1.1.43+dfsg1-1+deb13u128:7.1.1.43+dfsg1-1+deb13u148:7.1.2.34+dfsg1-18:7.1.2.35+dfsg1-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/imagemagick to a version that resolves this vulnerability.

    Fixed in 8:6.9.11.60+dfsg-1.6+deb12u12
  2. Upgrade

    Upgrade debian/imagemagick to a version that resolves this vulnerability.

    Fixed in 8:7.1.1.43+dfsg1-1+deb13u11
  3. Upgrade

    Upgrade debian/imagemagick to a version that resolves this vulnerability.

    Fixed in 8:7.1.2.15+dfsg1-1
  4. Upgrade

    Upgrade debian/imagemagick to a version that resolves this vulnerability.

    Fixed in 8:6.9.11.60+dfsg-1.6+deb12u15Fixed in 8:7.1.1.43+dfsg1-1+deb13u12Fixed in 8:7.1.1.43+dfsg1-1+deb13u14Fixed in 8:7.1.2.34+dfsg1-1Fixed in 8:7.1.2.35+dfsg1-2
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 7.1.2-15
  6. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.9.13-40
  7. Compensating control

    Until upgraded, avoid processing or opening untrusted/crafted TXT files that include texture attributes (to prevent triggering the memory leak in coders/txt.c).

Event History

Jun 23, 2026
CVE Published
via MITRE·12:13 PM
Data Sourced
via MITRE·12:13 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:16 PM
DescriptionSeverityWeaknessAffected Software
Oct 30, 2026
Data Sourced
via OSV·10:00 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2026-56371?

The severity of CVE-2026-56371 is classified as low.

2

What is CVE-2026-56371 about?

CVE-2026-56371 describes a memory leak vulnerability in ImageMagick when processing TXT files with texture attributes.

3

How does CVE-2026-56371 affect ImageMagick?

CVE-2026-56371 causes a memory leak each time an improperly crafted TXT file is processed.

4

How do I fix CVE-2026-56371?

To fix CVE-2026-56371, upgrade to ImageMagick version 7.1.2-15 or 6.9.13-40 or later.

5

What are the consequences of CVE-2026-56371?

The primary consequence of CVE-2026-56371 is the potential for increased memory usage, leading to degraded performance.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203