Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: 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).

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-14553
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:15 UTC · Revision 1

Source evidence

CVE-2018-14553

core-osv · Original source

Published 11 Feb 2020, 13:15 UTC

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).

osv:CVE-2018-14553
Complete source record
{
  "id": "dba5f53009750210488945a6a7cf1b7603f46f0f2acd329f24dcdce838f54351",
  "url": "https://osv.dev/vulnerability/CVE-2018-14553",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-14553",
    "summary": "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).",
    "evidence": "osv:CVE-2018-14553",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2018-14553",
      "aliases": [
        "CVE-2018-14553"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/libgd/libgd",
              "type": "GIT",
              "events": [
                {
                  "introduced": "2912c0a2e0a246318f41bf1997f34ce1dc3e5e42"
                },
                {
                  "last_affected": "8255231b68889597d04d451a72438ab92a405aba"
                },
                {
                  "introduced": "9f0a7e7f4f0fb16d1d7936f2837a2559237edde9"
                },
                {
                  "last_affected": "3ba6e6c857a96d06be2128fec2843b8962aa6757"
                },
                {
                  "fixed": "a93eac0e843148dc2d631c3ba80af17e9c8c860f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:libgd:libgd:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.1.1"
                      },
                      {
                        "last_affected": "2.2.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:libgd:libgd:2.1.0:-:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.1.0-NA"
                      },
                      {
                        "last_affected": "2.1.0-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:libgd:libgd:2.1.0:rc2:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.1.0-rc2"
                      },
                      {
                        "last_affected": "2.1.0-rc2"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "a93eac0e843148dc2d631c3ba80af17e9c8c860f"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.1.0-NA",
            "2.1.0-rc2",
            "gd-2.2.5",
            "gd-2.2.4",
            "gd-2.2.3",
            "gd-2.2.2",
            "gd-2.2.1",
            "gd-2.2.0",
            "gd-2.1.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-14553.json",
            "vanir_signatures": [
              {
                "id": "CVE-2018-14553-6de27c33",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "101596286683791141158940098408006981970",
                    "57027709968180314751806798402433430148",
                    "219751563406889302728145834431736606265",
                    "269005566747141311857741952118440894727",
                    "7920834115374501717266888308718827631",
                    "114995183731647994804863226759030143018",
                    "137350249030089037543778813862820402485",
                    "314141834951349117205344496345660421666",
                    "60860856782584586368952408655708045654",
                    "22725740368233869882587282633583529125",
                    "240501142895742632411135257526459398233",
                    "181974805664716321179466111885354045082",
                    "73748466374182154486630270515923290986",
                    "126852781156425569605314939158155997220"
                  ]
                },
                "source": "https://github.com/libgd/libgd/commit/a93eac0e843148dc2d631c3ba80af17e9c8c860f",
                "target": {
                  "file": "src/gd.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-14553-c9b36c9d",
                "digest": {
                  "length": 2608,
                  "function_hash": "129339956977801164261072113179957572465"
                },
                "source": "https://github.com/libgd/libgd/commit/a93eac0e843148dc2d631c3ba80af17e9c8c860f",
                "target": {
                  "file": "src/gd.c",
                  "function": "gdImageClone"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:24:24Z"
          }
        }
      ],
      "modified": "2026-10-20T13:24:24.695638382Z",
      "provider": "osv",
      "references": [
        "https://lists.debian.org/debian-lts-announce/2024/04/msg00003.html",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/",
        "https://github.com/libgd/libgd/pull/580",
        "https://lists.debian.org/debian-lts-announce/2020/02/msg00014.html",
        "https://usn.ubuntu.com/4316-1/",
        "https://usn.ubuntu.com/4316-2/",
        "https://bugzilla.redhat.com/show_bug.cgi?id=1599032",
        "https://github.com/libgd/libgd/commit/a93eac0e843148dc2d631c3ba80af17e9c8c860f"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:*"
            ],
            "vendor_product": "canonical:ubuntu_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "14.04"
                  },
                  {
                    "last_affected": "14.04"
                  },
                  {
                    "introduced": "16.04"
                  },
                  {
                    "last_affected": "16.04"
                  },
                  {
                    "introduced": "18.04"
                  },
                  {
                    "last_affected": "18.04"
                  },
                  {
                    "introduced": "19.10"
                  },
                  {
                    "last_affected": "19.10"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "32"
                  },
                  {
                    "last_affected": "32"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*"
            ],
            "vendor_product": "opensuse:leap",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "15.1"
                  },
                  {
                    "last_affected": "15.1"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2018-14553",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387635,
  "published_at": "2020-02-11T13:15:11.197+00:00"
}