Graphicsmagick · Graphicsmagick · CVE-2017-16545
**Name of the Vulnerable Software and Affected Versions**
GraphicsMagick version 1.3.26
**Description**
The issue is related to the ReadWPGImage function in GraphicsMagick, which is vulnerable due to a null pointer dereference. This can be exploited by a remote attacker using a specially crafted WPG file, potentially allowing them to execute arbitrary code. Additionally, the function does not properly validate colormapped images, which can lead to a denial of service, causing the application to crash due to an invalid write.
**Recommendations**
For GraphicsMagick version 1.3.26, consider disabling the ReadWPGImage function in coders/wpg.c as a temporary workaround until a patch is available. Restrict access to processing WPG images to minimize the risk of exploitation. Avoid using the `ReadWPGImage` function until the issue is resolved.