Quick answers
- Is CVE-2016-7996 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2016-7996 being exploited in the wild.
- How severe is CVE-2016-7996?
- Critical severity, with a CVSS score of 9.8, published 18 January 2017.
- Which products and versions are affected?
- GraphicsMagick GraphicsMagick 1.3.25 and earlier.
- Is there a fix for CVE-2016-7996?
- A patch was published on 2016-12-24: Debian released security update DSA-3746-1 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2016-7996 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2016-7996?
- Check whether you run Graphicsmagick. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
A heap-based buffer overflow exists in the WPG (WordPerfect Graphics) format reader of GraphicsMagick versions 1.3.25 and earlier. The vulnerability is rooted in a lack of bounds checking for colormap entries when the library is built with the default QuantumDepth=8 configuration. An attacker can exploit this by providing a WPG file containing a colormap with more than 256 entries, leading to a heap overflow. This can result in a crash (denial of service) or potentially remote code execution. The issue has been addressed in Debian security updates and subsequent GraphicsMagick releases.
Affected products
- GraphicsMagick GraphicsMagick 1.3.25 and earlier
Timeline
- 2016-10-07: disclosed: Vulnerability disclosed on oss-security mailing list
- 2016-12-24: patched: Debian released security update DSA-3746-1
- 2017-01-18: advisory: NVD published CVE-2016-7996 details