The ReadWPGImage function in coders/wpg.c in ImageMagick 7.0.7-9 does not properly validate the colormap index in a WPG palette, which allows remote attackers to cause a denial of service (use of uninitialized data or invalid memory allocation) or possibly have unspecified other impact via a malformed WPG file.
The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.
Link | Tags |
---|---|
https://www.debian.org/security/2017/dsa-4040 | third party advisory vendor advisory |
https://usn.ubuntu.com/3681-1/ | third party advisory vendor advisory |
https://www.debian.org/security/2017/dsa-4074 | third party advisory vendor advisory |
https://github.com/ImageMagick/ImageMagick/issues/851 | patch third party advisory issue tracking |
https://github.com/ImageMagick/ImageMagick/commit/e04cf3e9524f50ca336253513d977224e083b816 | third party advisory issue tracking |
https://github.com/ImageMagick/ImageMagick/commit/2130bf6f89ded32ef0c88a11694f107c52566c53 | patch third party advisory issue tracking |