ImageMagick before 7.1.2-36 contains a use after free vulnerability in the ASHLAR encoder caused by multi-threading when a specific failure occurs. Attackers can trigger the failure condition while encoding ASHLAR images to access freed memory, causing crashes or memory corruption.
https://www.vulncheck.com/advisories/imagemagick-before-7.1.2-36-use-after-free-in-ashlar-encoder
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-5545-xpgp-wj32