GHSA-3q5f-gmjc-38r8: ImageMagick: Memory leak in coders/txt.c without freetype
(updated )
If a texture attribute is specified for a TXT file, an attempt will be made to read it via texture=ReadImage(read_info,exception);. Later, when retrieving metrics via the GetTypeMetrics function, if this function fails (i.e., status == MagickFalse), the calling function will exit immediately but fail to release the texture object, leading to memory leakage.
References
- github.com/ImageMagick/ImageMagick/commit/e6394098af39a9689bb5f0b4eb6a9968e449a8d3
- github.com/ImageMagick/ImageMagick/security/advisories/GHSA-3q5f-gmjc-38r8
- github.com/advisories/GHSA-3q5f-gmjc-38r8
- github.com/dlemstra/Magick.NET/releases/tag/14.10.3
- nvd.nist.gov/vuln/detail/CVE-2026-56371
- www.vulncheck.com/advisories/imagemagick-memory-leak-in-txt-file-processing-via-texture-attribute
Code Behaviors & Features
Detect and mitigate GHSA-3q5f-gmjc-38r8 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →