CVE-2016-9933

Source
https://cve.org/CVERecord?id=CVE-2016-9933
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-9933.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2016-9933
Downstream
Related
Published
2017-01-04T20:59:00.480Z
Modified
2026-07-08T12:06:45.102411Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

Stack consumption vulnerability in the gdImageFillToBorder function in gd.c in the GD Graphics Library (aka libgd) before 2.2.2, as used in PHP before 5.6.28 and 7.x before 7.0.13, allows remote attackers to cause a denial of service (segmentation violation) via a crafted imagefilltoborder call that triggers use of a negative color value.

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:2.2.1:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "2.2.1"
        },
        {
            "last_affected": "2.2.1"
        }
    ],
    "source": [
        "CPE_STRING",
        "REFERENCES"
    ]
}

Affected versions

2.*
2.2.1
gd-2.*
gd-2.2.1

Database specific

vanir_signatures_modified
"2026-07-08T12:06:45Z"
vanir_signatures
[
    {
        "target": {
            "function": "gdImageFillToBorder",
            "file": "src/gd.c"
        },
        "id": "CVE-2016-9933-0ad2ad76",
        "digest": {
            "function_hash": "51851102624442393955613366683884704211",
            "length": 1578.0
        },
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "source": "https://github.com/libgd/libgd/commit/77f619d48259383628c3ec4654b1ad578e9eb40e"
    },
    {
        "target": {
            "file": "src/gd.c"
        },
        "id": "CVE-2016-9933-d8ddcde0",
        "digest": {
            "line_hashes": [
                "57749089167143626458798823933147928600",
                "121404800837027207503918118032884996150",
                "214785165878694708727711374079984772155",
                "177786475786199882260886250082204468426",
                "192487108250425406850418729855460599379",
                "120103679383625323170182334970288533301"
            ],
            "threshold": 0.9
        },
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "source": "https://github.com/libgd/libgd/commit/77f619d48259383628c3ec4654b1ad578e9eb40e"
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-9933.json"

Git / github.com/php/php-src

Affected ranges

Type
GIT
Repo
https://github.com/php/php-src
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "source": "REFERENCES"
}

Database specific

vanir_signatures_modified
"2026-07-08T12:06:45Z"
vanir_signatures
[
    {
        "target": {
            "function": "gdImageFillToBorder",
            "file": "ext/gd/libgd/gd.c"
        },
        "id": "CVE-2016-9933-3344d009",
        "digest": {
            "function_hash": "204555986885295926445620285353660811254",
            "length": 1700.0
        },
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "source": "https://github.com/php/php-src/commit/863d37ea66d5c960db08d6f4a2cbd2518f0f80d1"
    },
    {
        "target": {
            "file": "ext/gd/libgd/gd.c"
        },
        "id": "CVE-2016-9933-95ab2d49",
        "digest": {
            "line_hashes": [
                "212289127705669442614260577537722716247",
                "213634916113294883352746733094991011668",
                "187076187851435916055087938545543830861",
                "169292344746694247268202568092638681361"
            ],
            "threshold": 0.9
        },
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "source": "https://github.com/php/php-src/commit/863d37ea66d5c960db08d6f4a2cbd2518f0f80d1"
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-9933.json"