CVE-2018-14553

Source
https://cve.org/CVERecord?id=CVE-2018-14553
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-14553.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2018-14553
Downstream
Related
Published
2020-02-11T13:15:11.197Z
Modified
2026-07-08T14:14:33.973159Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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

Database specific
{
    "unresolved_ranges": [
        {
            "source": "CPE_STRING",
            "vendor_product": "canonical:ubuntu_linux",
            "extracted_events": [
                {
                    "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"
                }
            ],
            "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:*:*:*:*:*:*:*"
            ]
        },
        {
            "source": "CPE_STRING",
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
                {
                    "introduced": "8.0"
                },
                {
                    "last_affected": "8.0"
                }
            ],
            "cpes": [
                "cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*"
            ]
        },
        {
            "source": "CPE_STRING",
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
                {
                    "introduced": "32"
                },
                {
                    "last_affected": "32"
                }
            ],
            "cpes": [
                "cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*"
            ]
        },
        {
            "source": "CPE_STRING",
            "vendor_product": "opensuse:leap",
            "extracted_events": [
                {
                    "introduced": "15.1"
                },
                {
                    "last_affected": "15.1"
                }
            ],
            "cpes": [
                "cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*"
            ]
        }
    ]
}
References

Affected packages

Git / github.com/libgd/libgd

Affected ranges

Type
GIT
Repo
https://github.com/libgd/libgd
Events
Database specific
{
    "cpe": [
        "cpe:2.3:a:libgd:libgd:*:*:*:*:*:*:*:*",
        "cpe:2.3:a:libgd:libgd:2.1.0:-:*:*:*:*:*:*",
        "cpe:2.3:a:libgd:libgd:2.1.0:rc2:*:*:*:*:*:*"
    ],
    "source": [
        "CPE_RANGE",
        "CPE_STRING",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "2.1.1"
        },
        {
            "last_affected": "2.2.5"
        },
        {
            "introduced": "2.1.0-NA"
        },
        {
            "last_affected": "2.1.0-NA"
        },
        {
            "introduced": "2.1.0-rc2"
        },
        {
            "last_affected": "2.1.0-rc2"
        }
    ]
}

Affected versions

2.*
2.1.0-NA
2.1.0-rc2
gd-2.*
gd-2.1.1
gd-2.2.0
gd-2.2.1
gd-2.2.2
gd-2.2.3
gd-2.2.4
gd-2.2.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-14553.json"
vanir_signatures_modified
"2026-07-08T14:14:33Z"
vanir_signatures
[
    {
        "signature_version": "v1",
        "source": "https://github.com/libgd/libgd/commit/a93eac0e843148dc2d631c3ba80af17e9c8c860f",
        "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"
            ]
        },
        "target": {
            "file": "src/gd.c"
        },
        "deprecated": false,
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "source": "https://github.com/libgd/libgd/commit/a93eac0e843148dc2d631c3ba80af17e9c8c860f",
        "id": "CVE-2018-14553-c9b36c9d",
        "digest": {
            "length": 2608.0,
            "function_hash": "129339956977801164261072113179957572465"
        },
        "target": {
            "function": "gdImageClone",
            "file": "src/gd.c"
        },
        "deprecated": false,
        "signature_type": "Function"
    }
]