NULL pointer dereference in libgd - CVE-2018-14553

 

NULL pointer dereference in libgd - CVE-2018-14553

Published: March 24, 2020 / Updated: April 3, 2020


Vulnerability identifier: #VU26344
CSH Severity: Low
CVSS v4: 2.1 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-14553
CWE-ID: CWE-476
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to a NULL pointer dereference error within the gdImageClone() function in gd.c file in libgd. A remote attacker can trigger denial of service conditions via a specific function call sequence. Only affects PHP when linked with an external libgd (not bundled).


Affected software

libgd
Debian Linux
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Slackware Linux
Ubuntu
Opensuse
Fedora
gd (Alpine package)
libgd-tools (Ubuntu package)
libgd3 (Ubuntu package)
libgd2 (Debian package)
libgd2 (Ubuntu package)
gd (Red Hat package)
gd

How to mitigate CVE-2018-14553

Install update from vendor's website.

libgd - update to 2.3.0
gd (Alpine package) - addressed in versions 2.2.5-r3, 2.2.5-r4
libgd-tools (Ubuntu package) - update to 2.1.0-3ubuntu0.11+esm1
libgd3 (Ubuntu package) - update to 2.1.0-3ubuntu0.11+esm1
libgd2 (Debian package) - update to 2.1.0-5+deb8u14
libgd2 (Ubuntu package) - addressed in versions 2.1.1-4ubuntu0.16.04.12, 2.2.5-4ubuntu0.4, 2.2.5-5.2ubuntu0.19.10.1
gd (Red Hat package) - update to 2.2.5-7.el8
gd - update to 2.3.0-1.fc32

External References

Related Security Bulletins