Stack-based buffer overflow in libgd - CVE-2016-5116

 

Stack-based buffer overflow in libgd - CVE-2016-5116

Published: August 7, 2016 / Updated: August 3, 2020


Vulnerability identifier: #VU33067
CSH Severity: High
CVSS v4: 8.8 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2016-5116
CWE-ID: CWE-121
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 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

libgd
gd (Alpine package)
gd
Fedora

How to mitigate CVE-2016-5116

Update to version 2.2.0.

libgd - update to 2.2.0
gd (Alpine package) - update to 2.1.1-r2
gd - addressed in versions 2.1.1-4.fc22, 2.1.1-6.fc23, 2.2.1-1.fc24

External References

Related Security Bulletins