Stack-based buffer overflow in libgd - CVE-2016-5116
Published: August 7, 2016 / Updated: August 3, 2020
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error when processing a long name. A remote unauthenticated attacker can trigger stack-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
Debian Linux
Fedora
gd (Alpine package)
libgd2 (Debian package)
gd
How to mitigate CVE-2016-5116
gd (Alpine package) - update to 2.1.1-r2
libgd2 (Debian package) - update to 2.1.0-5+deb8u4
gd - addressed in versions 2.1.1-4.fc22, 2.1.1-6.fc23, 2.2.1-1.fc24
External References
- http://lists.opensuse.org/opensuse-updates/2016-09/msg00078.html
- http://www.debian.org/security/2016/dsa-3619
- http://www.openwall.com/lists/oss-security/2016/05/29/5
- http://www.ubuntu.com/usn/USN-3030-1
- https://github.com/libgd/libgd/commit/4dc1a2d7931017d3625f2d7cff70a17ce58b53b4
- https://github.com/libgd/libgd/issues/211