CVE-2016-5116

Source
https://nvd.nist.gov/vuln/detail/CVE-2016-5116
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2016-5116.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2016-5116
Downstream
Related
Published
2016-08-07T10:59:12Z
Modified
2025-09-30T02:05:46.617938Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H CVSS Calculator
Summary
[none]
Details

gd_xbm.c in the GD Graphics Library (aka libgd) before 2.2.0, as used in certain custom PHP 5.5.x configurations, allows context-dependent attackers to obtain sensitive information from process memory or cause a denial of service (stack-based buffer under-read and application crash) via a long name.

References

Affected packages

Git / github.com/libgd/libgd

Affected ranges

Type
GIT
Repo
https://github.com/libgd/libgd
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

Other

GD_1_3_0
GD_1_4_0
GD_1_5_0
GD_1_6_0
GD_1_6_1
GD_1_6_2
GD_1_6_3
GD_1_7_0
GD_1_7_1
GD_1_7_2
GD_1_7_3
GD_1_8_0
GD_1_8_1
GD_1_8_3
GD_1_8_4
GD_2_0_0
GD_2_0_1
GD_2_0_10
GD_2_0_11
GD_2_0_12
GD_2_0_13
GD_2_0_14
GD_2_0_15
GD_2_0_17
GD_2_0_18
GD_2_0_19
GD_2_0_2
GD_2_0_20
GD_2_0_21
GD_2_0_22
GD_2_0_23
GD_2_0_24
GD_2_0_25
GD_2_0_26
GD_2_0_27
GD_2_0_28
GD_2_0_29
GD_2_0_3
GD_2_0_30
GD_2_0_31
GD_2_0_32
GD_2_0_33
GD_2_0_34RC1
GD_2_0_4
GD_2_0_5
GD_2_0_6
GD_2_0_7
GD_2_0_8
GD_2_0_9

gd-2.*

gd-2.1.0
gd-2.1.0-alpha1
gd-2.1.0-rc1
gd-2.1.0-rc2
gd-2.1.1

Database specific

{
    "vanir_signatures": [
        {
            "deprecated": false,
            "target": {
                "function": "gdImageXbmCtx",
                "file": "src/gd_xbm.c"
            },
            "source": "https://github.com/libgd/libgd/commit/4dc1a2d7931017d3625f2d7cff70a17ce58b53b4",
            "signature_type": "Function",
            "id": "CVE-2016-5116-2c83dd3e",
            "signature_version": "v1",
            "digest": {
                "function_hash": "159732849098274341352919018137382865240",
                "length": 1437.0
            }
        },
        {
            "deprecated": false,
            "target": {
                "file": "src/gd_xbm.c"
            },
            "source": "https://github.com/libgd/libgd/commit/4dc1a2d7931017d3625f2d7cff70a17ce58b53b4",
            "signature_type": "Line",
            "id": "CVE-2016-5116-41870929",
            "signature_version": "v1",
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "45446309610186637121537505383792093410",
                    "265905027050232767493273108757908362247",
                    "33880144858283707541817879245031416904",
                    "218305928582978842128241372718436549115",
                    "256244119785605007248422930174615791543",
                    "253758725510508772508363173779679192748",
                    "68483349420796518696459711596542909788",
                    "74395346714304077413397129009478721316",
                    "159233106803560269695689526086168933696",
                    "122476412516029492119399838354455694923",
                    "147202700807701675432947523147302272779",
                    "165541713406580544154107895245655823908",
                    "318612835839705280670649476684004771066",
                    "16883678198067729595338841462367864144",
                    "165654997791556511415724280720000445993",
                    "146954115355138684746230718289110638235",
                    "168041509013837465422342443672834825193",
                    "202242598604278395000708774946506096569",
                    "171800542763170613578730856458574116284",
                    "52214021197683462104019989292556730579",
                    "39446760264591832102619175847381075691"
                ]
            }
        },
        {
            "deprecated": false,
            "target": {
                "function": "gdCtxPrintf",
                "file": "src/gd_xbm.c"
            },
            "source": "https://github.com/libgd/libgd/commit/4dc1a2d7931017d3625f2d7cff70a17ce58b53b4",
            "signature_type": "Function",
            "id": "CVE-2016-5116-8cf1ef89",
            "signature_version": "v1",
            "digest": {
                "function_hash": "38154755681792414440026108603311973871",
                "length": 262.0
            }
        }
    ]
}