CVE-2018-14553
gdImageClone in gd.c in libgd 2.1.0-rc2 through 2.2.5 has a NULL pointer dereference allowing attackers to crash an application via a specific function call sequence. Only affects PHP when linked with an external libgd (not bundled).
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | doxygen | Fix pending | UBUNTU-CVE-2018-14553 | |
| Ubuntu 26.04 | doxygen | Fix pending | UBUNTU-CVE-2018-14553 | |
| Ubuntu 25.10 | doxygen | Will not fix php uses the system libgd2 in doxygen, libgd files are under the libmscgen directory. | UBUNTU-CVE-2018-14553 | |
| Ubuntu 24.04 | doxygen | Fix pending | UBUNTU-CVE-2018-14553 | |
| Ubuntu 22.04 | doxygen | Fix pending | UBUNTU-CVE-2018-14553 | |
| Ubuntu 20.04 | doxygen | Will not fix php uses the system libgd2 in doxygen, libgd files are under the libmscgen directory. | UBUNTU-CVE-2018-14553 | |
| Ubuntu 18.04 | doxygen | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | libgd2 | Fixed | 2.2.5-4ubuntu0.4 | UBUNTU-CVE-2018-14553 |
| Ubuntu 16.04 | doxygen | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | libgd2 | Fixed | 2.1.1-4ubuntu0.16.04.12 | UBUNTU-CVE-2018-14553 |
| Ubuntu 16.04 | php7.0 | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | doxygen | Will not fix php uses the system libgd2 in doxygen, libgd files are under the libmscgen directory. | ||
| Ubuntu 14.04 | libgd2 | Fix pending | 2.1.0-3ubuntu0.11+esm1 (Ubuntu Pro) | UBUNTU-CVE-2018-14553 |
| Debian 14 | libgd2 | Fixed | 2.3.0-1 | DEBIAN-CVE-2018-14553 |
| Debian 13 | libgd2 | Fixed | 2.3.0-1 | DEBIAN-CVE-2018-14553 |
| Debian 12 | libgd2 | Fixed | 2.3.0-1 | DEBIAN-CVE-2018-14553 |
| Red Hat Enterprise Linux 8 | gd | Fixed | 0:2.2.5-7.el8 | RHSA-2020:4659 |
| Red Hat Enterprise Linux 8 | gd-devel | Fixed | 0:2.2.5-7.el8 | RHSA-2020:4659 |
| Red Hat Enterprise Linux 7 | gd | Not affected | ||
| Red Hat Enterprise Linux 7 | gd-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | gd-progs | Not affected | ||
| Red Hat Enterprise Linux 6 | gd | Not affected | ||
| Red Hat Enterprise Linux 6 | gd-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | gd-progs | Not affected | ||
| Red Hat Enterprise Linux 5 | gd | Not affected | ||
| AlmaLinux 8 | gd | Fixed | 2.2.5-7.el8 | ALSA-2020:4659 |
| AlmaLinux 8 | gd-devel | Fixed | 2.2.5-7.el8 | ALSA-2020:4659 |
| Rocky Linux 8 | gd | Fixed | 0:2.2.5-7.el8 | RLSA-2020:4659 |
| Alpine Linux 3.24 | gd | Fixed | 2.3.0-r0 | ALPINE-CVE-2018-14553 |
| Alpine Linux 3.23 | gd | Fixed | 2.3.0-r0 | ALPINE-CVE-2018-14553 |
| Alpine Linux 3.22 | gd | Fixed | 2.3.0-r0 | ALPINE-CVE-2018-14553 |
| Alpine Linux 3.21 | gd | Fixed | 2.3.0-r0 | ALPINE-CVE-2018-14553 |
| Alpine Linux 3.20 | gd | Fixed | 2.3.0-r0 | ALPINE-CVE-2018-14553 |
| Alpine Linux 3.19 | gd | Fixed | 2.3.0-r0 | ALPINE-CVE-2018-14553 |
| Alpine Linux 3.18 | gd | Fixed | 2.3.0-r0 | ALPINE-CVE-2018-14553 |
| Alpine Linux 3.17 | gd | Fixed | 2.3.0-r0 | ALPINE-CVE-2018-14553 |
| Alpine Linux 3.16 | gd | Fixed | 2.3.0-r0 | ALPINE-CVE-2018-14553 |
| Alpine Linux 3.15 | gd | Fixed | 2.3.0-r0 | ALPINE-CVE-2018-14553 |
| Alpine Linux 3.14 | gd | Fixed | 2.3.0-r0 | ALPINE-CVE-2018-14553 |
| Alpine Linux 3.13 | gd | Fixed | 2.3.0-r0 | ALPINE-CVE-2018-14553 |
| Alpine Linux 3.12 | gd | Fixed | 2.3.0-r0 | ALPINE-CVE-2018-14553 |
| Alpine Linux 3.11 | gd | Fixed | 2.2.5-r3 | ALPINE-CVE-2018-14553 |
| Alpine Linux 3.10 | gd | Fixed | 2.2.5-r3 | ALPINE-CVE-2018-14553 |
| Alpine Linux 3.9 | gd | Fixed | 2.2.5-r3 | ALPINE-CVE-2018-14553 |
| Alpine Linux 3.8 | gd | Fixed | 2.2.5-r3 | ALPINE-CVE-2018-14553 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00020.html (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://usn.ubuntu.com/4316-2/ (vendor-advisory)
- https://usn.ubuntu.com/4316-1/ (vendor-advisory)
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1599032
- https://github.com/libgd/libgd/pull/580
- https://github.com/libgd/libgd/commit/a93eac0e843148dc2d631c3ba80af17e9c8c860f
- https://lists.debian.org/debian-lts-announce/2020/02/msg00014.html
- http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00020.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/
- https://usn.ubuntu.com/4316-2/
- https://usn.ubuntu.com/4316-1/
- https://lists.debian.org/debian-lts-announce/2024/04/msg00003.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.