When GraphicsMagick 1.3.25 processes a MATLAB image in coders/mat.c, it can lead to a denial of service (OOM) in ReadMATImage() if the size specified for a MAT Object is larger than the actual amount of data.
https://www.debian.org/security/2018/dsa-4321
http://www.securityfocus.com/bid/99356
http://hg.code.sf.net/p/graphicsmagick/code/rev/e5761e3a2012