CVE-2018-14553
gdImageClone in gd.c in libgd 2.1.0-rc2 through 2.2.5 has a NULL pointer dereference allowing...
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).
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.5
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).
- Record
CVE-2018-14553- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:N/A:P - Weakness
- CWE-476
- Updated
- 2026-11-02
CVE List No score
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).
- Record
CVE-2018-14553- Updated
- 2026-11-02
EUVDEUVD-2018-6462 No score
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).
- Record
EUVD-2018-6462- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-jw3x-9g83-4hvr
7.5
gdImageClone in gd.c in libgd 2.1.0-rc2 through 2.2.5 has a NULL pointer dereference allowing...
gdImageClone in gd.c in libgd 2.1.0-rc2 through 2.2.5 has a NULL pointer dereference allowing atteckers to crash an application via a specific function call sequence.
- Record
GHSA-jw3x-9g83-4hvr- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-476
- Updated
- 2026-11-02
OSVALPINE-CVE-2018-14553
7.5
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).
- Record
ALPINE-CVE-2018-14553- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVBELL-CVE-2018-14553
7.5
CVE-2018-14553 does not affect BellSoft software
- Record
BELL-CVE-2018-14553- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 14 moreShow less
OSV
7.5
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).
- Record
CVE-2018-14553- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2018-14553
7.5
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).
- Record
DEBIAN-CVE-2018-14553- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVRHSA-2020:4659
7.4
Red Hat Security Advisory: gd security update
- Record
RHSA-2020:4659- CVSS 3.0
- 7.4 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H - Updated
- 2026-11-02
OSVRLSA-2020:4659
7.4
Moderate: gd security update
GD is an open source code library for the dynamic creation of images by programmers. GD creates PNG, JPEG, GIF, WebP, XPM, BMP images, among other formats.
Security Fix(es):
-
gd: Heap-based buffer overflow in gdImageColorMatch() in gd_color_match.c (CVE-2019-6977)
-
gd: NULL pointer dereference in gdImageClone (CVE-2018-14553)
-
gd: Double free in the gdImage*Ptr in gd_gif_out.c, gd_jpeg.c, and gd_wbmp.c (CVE-2019-6978)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the Rocky Linux 8.3 Release Notes linked from the References section.
- Record
RLSA-2020:4659- CVSS 3.0
- 7.4 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2018-14553
7.5
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).
- Record
UBUNTU-CVE-2018-14553- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVALSA-2020:4659 No score
Moderate: gd security update
GD is an open source code library for the dynamic creation of images by programmers. GD creates PNG, JPEG, GIF, WebP, XPM, BMP images, among other formats.
Security Fix(es):
-
gd: Heap-based buffer overflow in gdImageColorMatch() in gd_color_match.c (CVE-2019-6977)
-
gd: NULL pointer dereference in gdImageClone (CVE-2018-14553)
-
gd: Double free in the gdImage*Ptr in gd_gif_out.c, gd_jpeg.c, and gd_wbmp.c (CVE-2019-6978)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.
- Record
ALSA-2020:4659- Updated
- 2026-11-02
OSVMGASA-2020-0098 No score
Updated libgd packages fix security vulnerability
The updated packages fix a security vulnerability:
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. (CVE-2018-14553)
- Record
MGASA-2020-0098- Updated
- 2026-11-02
OSVopenSUSE-SU-2020:0332-1 No score
Security update for gd
This update for gd fixes the following issues:
Security issue fixed:
- CVE-2018-14553: Fixed a null pointer dereference in gdImageClone (bsc#1165471).
- CVE-2019-11038: Fixed a information disclosure in gdImageCreateFromXbm() (bsc#1140120).
This update was imported from the SUSE:SLE-15:Update update project.
- Record
openSUSE-SU-2020:0332-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10777-1 No score
gd-2.3.3-1.1 on GA media
These are all security issues fixed in the gd-2.3.3-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10777-1- Updated
- 2026-11-02
OSVSUSE-SU-2020:0594-1 No score
Security update for gd
This update for gd fixes the following issues:
Security issue fixed:
- CVE-2018-14553: Fixed a null pointer dereference in gdImageClone (bsc#1165471).
- CVE-2019-11038: Fixed a information disclosure in gdImageCreateFromXbm() (bsc#1140120).
- Record
SUSE-SU-2020:0594-1- Updated
- 2026-11-02
OSVSUSE-SU-2020:0594-2 No score
Security update for gd
This update for gd fixes the following issues:
Security issue fixed:
- CVE-2018-14553: Fixed a null pointer dereference in gdImageClone (bsc#1165471).
- CVE-2019-11038: Fixed a information disclosure in gdImageCreateFromXbm() (bsc#1140120).
- Record
SUSE-SU-2020:0594-2- Updated
- 2026-11-02
OSVSUSE-SU-2020:0623-1 No score
Security update for gd
This update for gd fixes the following issues:
- CVE-2017-7890: Fixed a buffer over-read into uninitialized memory (bsc#1050241).
- CVE-2018-14553: Fixed a null pointer dereference in gdImageClone() (bsc#1165471).
- CVE-2019-11038: Fixed a information disclosure in gdImageCreateFromXbm() (bsc#1140120).
- Record
SUSE-SU-2020:0623-1- Updated
- 2026-11-02
OSVUSN-4316-1 No score
libgd2 vulnerabilities
It was discovered that GD Graphics Library incorrectly handled cloning an image. An attacker could possibly use this issue to cause GD Graphics Library to crash, resulting in a denial of service. (CVE-2018-14553)
It was discovered that GD Graphics Library incorrectly handled loading images from X bitmap format files. An attacker could possibly use this issue to cause GD Graphics Library to crash, resulting in a denial of service, or to disclose contents of the stack that has been left there by previous code. This issue only affected Ubuntu 18.04 LTS and Ubuntu 16.04 LTS. (CVE-2019-11038)
- Record
USN-4316-1- Updated
- 2026-11-02
OSVUSN-4316-2 No score
libgd2 vulnerabilities
USN-4316-1 fixed a vulnerability in GD Graphics Library. This update provides the corresponding update for Ubuntu 14.04 ESM.
Original advisory details:
It was discovered that GD Graphics Library incorrectly handled cloning an image. An attacker could possibly use this issue to cause GD Graphics Library to crash, resulting in a denial of service. (CVE-2018-14553)
It was discovered that GD Graphics Library incorrectly handled loading images from X bitmap format files. An attacker could possibly use this issue to cause GD Graphics Library to crash, resulting in a denial of service, or to disclose contents of the stack that has been left there by previous code. (CVE-2019-11038)
- Record
USN-4316-2- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
gdAlpine:v3.10 |
before 2.2.5-r3 | 2.2.5-r3 |
gdAlpine:v3.11 |
before 2.2.5-r3 | 2.2.5-r3 |
gdAlpine:v3.12 |
before 2.3.0-r0 | 2.3.0-r0 |
gdAlpine:v3.13 |
before 2.3.0-r0 | 2.3.0-r0 |
gdAlpine:v3.14 |
before 2.3.0-r0 | 2.3.0-r0 |
gdAlpine:v3.15 |
before 2.3.0-r0 | 2.3.0-r0 |
gdAlpine:v3.16 |
before 2.3.0-r0 | 2.3.0-r0 |
gdAlpine:v3.17 |
before 2.3.0-r0 | 2.3.0-r0 |
gdAlpine:v3.18 |
before 2.3.0-r0 | 2.3.0-r0 |
gdAlpine:v3.19 |
before 2.3.0-r0 | 2.3.0-r0 |
Show 44 moreShow less
| Package | Affected | Fixed |
|---|---|---|
gdAlpine:v3.20 |
before 2.3.0-r0 | 2.3.0-r0 |
gdAlpine:v3.21 |
before 2.3.0-r0 | 2.3.0-r0 |
gdAlpine:v3.22 |
before 2.3.0-r0 | 2.3.0-r0 |
gdAlpine:v3.23 |
before 2.3.0-r0 | 2.3.0-r0 |
gdAlpine:v3.24 |
before 2.3.0-r0 | 2.3.0-r0 |
gdAlpine:v3.8 |
before 2.2.5-r3 | 2.2.5-r3 |
gdAlpine:v3.9 |
before 2.2.5-r3 | 2.2.5-r3 |
gdAlmaLinux:8 |
before 2.2.5-7.el8 | 2.2.5-7.el8 |
gd-develAlmaLinux:8 |
before 2.2.5-7.el8 | 2.2.5-7.el8 |
libgd2Debian:12 |
before 2.3.0-1 | 2.3.0-1 |
libgd2Debian:13 |
before 2.3.0-1 | 2.3.0-1 |
libgd2Debian:14 |
before 2.3.0-1 | 2.3.0-1 |
libgd2Debian:8 |
before 2.1.0-5+deb8u14, plus listed versions 2.1.0-52.1.0-5+deb8u12.1.0-5+deb8u102.1.0-5+deb8u112.1.0-5+deb8u12 Show 9 moreShow less2.1.0-5+deb8u132.1.0-5+deb8u22.1.0-5+deb8u32.1.0-5+deb8u42.1.0-5+deb8u52.1.0-5+deb8u62.1.0-5+deb8u72.1.0-5+deb8u82.1.0-5+deb8u9 |
2.1.0-5+deb8u14 |
libgd2Debian:10 |
before 2.2.5-5.2+deb10u1, plus listed versions 2.2.5-5.2 |
2.2.5-5.2+deb10u1 |
libgdMageia:7 |
before 2.2.5-5.1.mga7 | 2.2.5-5.1.mga7 |
gdRed Hat:enterprise_linux:8::appstream |
before 0:2.2.5-7.el8 | 0:2.2.5-7.el8 |
gd-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:2.2.5-7.el8 | 0:2.2.5-7.el8 |
gd-debugsourceRed Hat:enterprise_linux:8::appstream |
before 0:2.2.5-7.el8 | 0:2.2.5-7.el8 |
gd-develRed Hat:enterprise_linux:8::appstream |
before 0:2.2.5-7.el8 | 0:2.2.5-7.el8 |
gd-progs-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:2.2.5-7.el8 | 0:2.2.5-7.el8 |
gdRocky Linux:8 |
before 0:2.2.5-7.el8 | 0:2.2.5-7.el8 |
gdSUSE:Linux Enterprise Module for Basesystem 15 SP1 |
before 2.2.5-4.14.1 | 2.2.5-4.14.1 |
gdSUSE:Linux Enterprise Module for Desktop Applications 15 SP1 |
before 2.2.5-4.14.1 | 2.2.5-4.14.1 |
gdSUSE:Linux Enterprise Module for Package Hub 15 SP1 |
before 2.2.5-4.14.1 | 2.2.5-4.14.1 |
gdSUSE:Linux Enterprise Desktop 12 SP4 |
before 2.1.0-24.17.1 | 2.1.0-24.17.1 |
gdSUSE:Linux Enterprise Software Development Kit 12 SP4 |
before 2.1.0-24.17.1 | 2.1.0-24.17.1 |
gdSUSE:Linux Enterprise Software Development Kit 12 SP5 |
before 2.1.0-24.17.1 | 2.1.0-24.17.1 |
gdSUSE:Linux Enterprise Server 12 SP4 |
before 2.1.0-24.17.1 | 2.1.0-24.17.1 |
gdSUSE:Linux Enterprise Server for SAP Applications 12 SP4 |
before 2.1.0-24.17.1 | 2.1.0-24.17.1 |
gdSUSE:Linux Enterprise Server 12 SP5 |
before 2.1.0-24.17.1 | 2.1.0-24.17.1 |
gdSUSE:Linux Enterprise Server for SAP Applications 12 SP5 |
before 2.1.0-24.17.1 | 2.1.0-24.17.1 |
gdSUSE:Linux Enterprise Workstation Extension 12 SP4 |
before 2.1.0-24.17.1 | 2.1.0-24.17.1 |
gdSUSE:Linux Enterprise Workstation Extension 12 SP5 |
before 2.1.0-24.17.1 | 2.1.0-24.17.1 |
libgd2Ubuntu:Pro:14.04:LTS |
before 2.1.0-3ubuntu0.11+esm1, plus listed versions 2.1.0-22.1.0-32.1.0-3ubuntu0.12.1.0-3ubuntu0.22.1.0-3ubuntu0.3 Show 6 moreShow less2.1.0-3ubuntu0.52.1.0-3ubuntu0.62.1.0-3ubuntu0.72.1.0-3ubuntu0.82.1.0-3ubuntu0.102.1.0-3ubuntu0.11 |
2.1.0-3ubuntu0.11+esm1 |
libgd2Ubuntu:16.04:LTS |
before 2.1.1-4ubuntu0.16.04.12, plus listed versions 2.1.1-4build12.1.1-4build22.1.1-4ubuntu0.16.04.12.1.1-4ubuntu0.16.04.22.1.1-4ubuntu0.16.04.3 Show 6 moreShow less2.1.1-4ubuntu0.16.04.52.1.1-4ubuntu0.16.04.62.1.1-4ubuntu0.16.04.72.1.1-4ubuntu0.16.04.82.1.1-4ubuntu0.16.04.102.1.1-4ubuntu0.16.04.11 |
2.1.1-4ubuntu0.16.04.12 |
libgd2Ubuntu:18.04:LTS |
before 2.2.5-4ubuntu0.4, plus listed versions 2.2.5-32.2.5-42.2.5-4ubuntu0.22.2.5-4ubuntu0.3 |
2.2.5-4ubuntu0.4 |
doxygenUbuntu:20.04:LTS |
All versions, plus listed versions 1.8.13-10ubuntu31.8.13-11ubuntu11.8.13-121.8.13-12ubuntu11.8.16-21.8.16-2build11.8.17-0ubuntu11.8.17-0ubuntu2 |
None known |
doxygenUbuntu:22.04:LTS |
All versions, plus listed versions 1.9.1-2ubuntu11.9.1-2ubuntu2 |
None known |
doxygenUbuntu:24.04:LTS |
All versions, plus listed versions 1.9.4-41.9.8+ds-21.9.8+ds-2build11.9.8+ds-2build31.9.8+ds-2build51.9.8+ds-2ubuntu0.1 |
None known |
doxygenUbuntu:25.10 |
All versions, plus listed versions 1.9.8+ds-2.1build11.9.8+ds-2.1ubuntu0.1 |
None known |
doxygenUbuntu:26.10 |
All versions, plus listed versions 1.15.0+ds1-1ubuntu31.15.0+ds1-1.1ubuntu11.15.0+ds1-1.1ubuntu2 |
None known |
doxygenUbuntu:26.04:LTS |
All versions, plus listed versions 1.9.8+ds-2.1build11.15.0+ds1-1ubuntu21.15.0+ds1-1ubuntu3 |
None known |
gdopenSUSE:Leap 15.1 |
before 2.2.5-lp151.6.6.1 | 2.2.5-lp151.6.6.1 |
gdopenSUSE:Tumbleweed |
before 2.3.3-1.1 | 2.3.3-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2018-14553 is a high vulnerability (CVSS 7.5) in Libgd, published February 11, 2020. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.44%, the 88th percentile. Fixed in gd 2.2.5-r3.
References
bugzilla.redhat.com/show_bug.cgi?id=1599032
github.com/libgd/libgd/pull/580
github.com/libgd/libgd/commit/a93eac0e843148dc2d631c3ba80af17e9c8c860f
lists.debian.org/debian-lts-announce/2020/02/msg00014.html
lists.opensuse.org/opensuse-security-announce/2020-03/msg00020.html
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6
Show 58 moreShow less
usn.ubuntu.com/4316-2
usn.ubuntu.com/4316-1
lists.debian.org/debian-lts-announce/2024/04/msg00003.html
nvd.nist.gov/vuln/detail/CVE-2018-14553
github.com/fcabralpacheco/libgd/commit/441cbfed60ebf6cb63b8ce120ed0a82b15e7aaf8
lists.fedoraproject.org/archives/list/[email protected]/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6
github.com/advisories/GHSA-jw3x-9g83-4hvr
security.alpinelinux.org/vuln/CVE-2018-14553
errata.almalinux.org/8/ALSA-2020-4659.html
vulners.com/cve/CVE-2018-14553
vulners.com/cve/CVE-2019-6977
vulners.com/cve/CVE-2019-6978
docs.bell-sw.com/security/cves/CVE-2018-14553
security-tracker.debian.org/tracker/CVE-2018-14553
advisories.mageia.org/MGASA-2020-0098.html
bugs.mageia.org/show_bug.cgi?id=26220
debian.org/lts/security/2020/dla-2106
access.redhat.com/errata/RHSA-2020:4659
access.redhat.com/security/updates/classification
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.3_release_notes
bugzilla.redhat.com/show_bug.cgi?id=1600727
bugzilla.redhat.com/show_bug.cgi?id=1671390
bugzilla.redhat.com/show_bug.cgi?id=1672207
security.access.redhat.com/data/csaf/v2/advisories/2020/rhsa-2020_4659.json
access.redhat.com/security/cve/CVE-2018-14553
cve.org/CVERecord?id=CVE-2018-14553
access.redhat.com/security/cve/CVE-2019-6977
cve.org/CVERecord?id=CVE-2019-6977
nvd.nist.gov/vuln/detail/CVE-2019-6977
access.redhat.com/security/cve/CVE-2019-6978
cve.org/CVERecord?id=CVE-2019-6978
nvd.nist.gov/vuln/detail/CVE-2019-6978
errata.rockylinux.org/RLSA-2020:4659
suse.com/support/update/announcement/2020/suse-su-20200594-1
bugzilla.suse.com/1140120
bugzilla.suse.com/1165471
suse.com/security/cve/CVE-2018-14553
suse.com/security/cve/CVE-2019-11038
suse.com/support/update/announcement/2020/suse-su-20200594-2
suse.com/support/update/announcement/2020/suse-su-20200623-1
bugzilla.suse.com/1050241
suse.com/security/cve/CVE-2017-7890
ubuntu.com/security/CVE-2018-14553
ubuntu.com/security/notices/USN-4316-2
ubuntu.com/security/notices/USN-4316-1
ubuntu.com/security/CVE-2019-11038
lists.opensuse.org/archives/list/[email protected]/thread/NWB66YOOIMGCJ5F2WRRSM2MM3KFYXNTZ
suse.com/security/cve/CVE-2007-2756
suse.com/security/cve/CVE-2016-10166
suse.com/security/cve/CVE-2016-10167
suse.com/security/cve/CVE-2016-10168
suse.com/security/cve/CVE-2016-6912
suse.com/security/cve/CVE-2016-9317
suse.com/security/cve/CVE-2017-6362
suse.com/security/cve/CVE-2018-1000222
suse.com/security/cve/CVE-2018-5711
suse.com/security/cve/CVE-2019-6977
suse.com/security/cve/CVE-2019-6978