graphicsmagick is vulnerable to denial of service (DoS). A memory allocation failure was discovered in the ReadPNMImage function in coders/pnm.c. The vulnerability causes a big memory allocation, which may lead to remote denial of service in the MagickRealloc function in magick/memory.c.