Heap-based buffer overflow in GraphicsMagick - CVE-2016-7996

 

Heap-based buffer overflow in GraphicsMagick - CVE-2016-7996

Published: January 18, 2017 / Updated: August 3, 2020


Vulnerability identifier: #VU33182
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2016-7996
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in Heap-based buffer overflow in the WPG format reader in GraphicsMagick 1.3.25 and earlier. A remote attacker can use a colormap with a large number of entries. to trigger heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

GraphicsMagick
Amazon Linux AMI
Fedora
graphicsmagick (Alpine package)
GraphicsMagick

How to mitigate CVE-2016-7996

Update to version 1.3.26.

GraphicsMagick - update to 1.3.26
GraphicsMagick - addressed in versions 1.3.25-6.el6, 1.3.25-6.el7, 1.3.25-6.fc24, 1.3.25-6.fc25

External References

Related Security Bulletins