Every CVE Search/ Get API key

CVE-2018-14553

gdImageClone in gd.c in libgd 2.1.0-rc2 through 2.2.5 has a NULL pointer dereference allowing...

7.5 HighFix available

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

3.44%Up 1.6 points since Apr 14, 2021
90%50%10%1%

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 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
4.3 MediumAV: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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

Affected packages
PackageAffectedFixed
gd
Alpine:v3.10
before 2.2.5-r3
2.2.5-r3
gd
Alpine:v3.11
before 2.2.5-r3
2.2.5-r3
gd
Alpine:v3.12
before 2.3.0-r0
2.3.0-r0
gd
Alpine:v3.13
before 2.3.0-r0
2.3.0-r0
gd
Alpine:v3.14
before 2.3.0-r0
2.3.0-r0
gd
Alpine:v3.15
before 2.3.0-r0
2.3.0-r0
gd
Alpine:v3.16
before 2.3.0-r0
2.3.0-r0
gd
Alpine:v3.17
before 2.3.0-r0
2.3.0-r0
gd
Alpine:v3.18
before 2.3.0-r0
2.3.0-r0
gd
Alpine:v3.19
before 2.3.0-r0
2.3.0-r0
Show 44 moreShow less
Affected packages
PackageAffectedFixed
gd
Alpine:v3.20
before 2.3.0-r0
2.3.0-r0
gd
Alpine:v3.21
before 2.3.0-r0
2.3.0-r0
gd
Alpine:v3.22
before 2.3.0-r0
2.3.0-r0
gd
Alpine:v3.23
before 2.3.0-r0
2.3.0-r0
gd
Alpine:v3.24
before 2.3.0-r0
2.3.0-r0
gd
Alpine:v3.8
before 2.2.5-r3
2.2.5-r3
gd
Alpine:v3.9
before 2.2.5-r3
2.2.5-r3
gd
AlmaLinux:8
before 2.2.5-7.el8
2.2.5-7.el8
gd-devel
AlmaLinux:8
before 2.2.5-7.el8
2.2.5-7.el8
libgd2
Debian:12
before 2.3.0-1
2.3.0-1
libgd2
Debian:13
before 2.3.0-1
2.3.0-1
libgd2
Debian:14
before 2.3.0-1
2.3.0-1
libgd2
Debian: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 less
2.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
libgd2
Debian:10
before 2.2.5-5.2+deb10u1, plus listed versions
2.2.5-5.2
2.2.5-5.2+deb10u1
libgd
Mageia:7
before 2.2.5-5.1.mga7
2.2.5-5.1.mga7
gd
Red Hat:enterprise_linux:8::appstream
before 0:2.2.5-7.el8
0:2.2.5-7.el8
gd-debuginfo
Red Hat:enterprise_linux:8::appstream
before 0:2.2.5-7.el8
0:2.2.5-7.el8
gd-debugsource
Red Hat:enterprise_linux:8::appstream
before 0:2.2.5-7.el8
0:2.2.5-7.el8
gd-devel
Red Hat:enterprise_linux:8::appstream
before 0:2.2.5-7.el8
0:2.2.5-7.el8
gd-progs-debuginfo
Red Hat:enterprise_linux:8::appstream
before 0:2.2.5-7.el8
0:2.2.5-7.el8
gd
Rocky Linux:8
before 0:2.2.5-7.el8
0:2.2.5-7.el8
gd
SUSE:Linux Enterprise Module for Basesystem 15 SP1
before 2.2.5-4.14.1
2.2.5-4.14.1
gd
SUSE:Linux Enterprise Module for Desktop Applications 15 SP1
before 2.2.5-4.14.1
2.2.5-4.14.1
gd
SUSE:Linux Enterprise Module for Package Hub 15 SP1
before 2.2.5-4.14.1
2.2.5-4.14.1
gd
SUSE:Linux Enterprise Desktop 12 SP4
before 2.1.0-24.17.1
2.1.0-24.17.1
gd
SUSE:Linux Enterprise Software Development Kit 12 SP4
before 2.1.0-24.17.1
2.1.0-24.17.1
gd
SUSE:Linux Enterprise Software Development Kit 12 SP5
before 2.1.0-24.17.1
2.1.0-24.17.1
gd
SUSE:Linux Enterprise Server 12 SP4
before 2.1.0-24.17.1
2.1.0-24.17.1
gd
SUSE:Linux Enterprise Server for SAP Applications 12 SP4
before 2.1.0-24.17.1
2.1.0-24.17.1
gd
SUSE:Linux Enterprise Server 12 SP5
before 2.1.0-24.17.1
2.1.0-24.17.1
gd
SUSE:Linux Enterprise Server for SAP Applications 12 SP5
before 2.1.0-24.17.1
2.1.0-24.17.1
gd
SUSE:Linux Enterprise Workstation Extension 12 SP4
before 2.1.0-24.17.1
2.1.0-24.17.1
gd
SUSE:Linux Enterprise Workstation Extension 12 SP5
before 2.1.0-24.17.1
2.1.0-24.17.1
libgd2
Ubuntu: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 less
2.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
libgd2
Ubuntu: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 less
2.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
libgd2
Ubuntu: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
doxygen
Ubuntu: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
doxygen
Ubuntu:22.04:LTS
All versions, plus listed versions
1.9.1-2ubuntu11.9.1-2ubuntu2
None known
doxygen
Ubuntu: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
doxygen
Ubuntu:25.10
All versions, plus listed versions
1.9.8+ds-2.1build11.9.8+ds-2.1ubuntu0.1
None known
doxygen
Ubuntu:26.10
All versions, plus listed versions
1.15.0+ds1-1ubuntu31.15.0+ds1-1.1ubuntu11.15.0+ds1-1.1ubuntu2
None known
doxygen
Ubuntu:26.04:LTS
All versions, plus listed versions
1.9.8+ds-2.1build11.15.0+ds1-1ubuntu21.15.0+ds1-1ubuntu3
None known
gd
openSUSE:Leap 15.1
before 2.2.5-lp151.6.6.1
2.2.5-lp151.6.6.1
gd
openSUSE:Tumbleweed
before 2.3.3-1.1
2.3.3-1.1

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE 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

Show 58 moreShow less
MoveEnter Open