The ReadMATImage function in coders/mat.c in ImageMagick through 6.9.9-3 and 7.x through 7.0.6-3 has memory leaks involving the quantum_info and clone_info data structures.
https://security.gentoo.org/glsa/201711-07
https://github.com/ImageMagick/ImageMagick/issues/624