ImageMagick 7.x before 7.1.2-36 and 6.x before 6.9.13-61 contains a use after free in the DOT decoder caused by improper synchronization when multiple DOT images are decoded concurrently in a multithreaded environment. Attackers who can cause an application to decode several DOT images in parallel can trigger the use after free, crashing the application.