CVE-2017-5340

Source
https://cve.org/CVERecord?id=CVE-2017-5340
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2017-5340.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2017-5340
Downstream
Related
Published
2017-01-11T06:59:00.160Z
Modified
2026-02-03T06:59:19.267300Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

Zend/zend_hash.c in PHP before 7.0.15 and 7.1.x before 7.1.1 mishandles certain cases that require large array allocations, which allows remote attackers to execute arbitrary code or cause a denial of service (integer overflow, uninitialized memory access, and use of arbitrary destructor function pointers) via crafted serialized data.

References

Affected packages

Git / github.com/php/php-src

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2017-5340.json"
vanir_signatures
[
    {
        "source": "https://github.com/php/php-src/commit/9abbc3cc6d0f448435ca38bef694f671bf7303d8",
        "signature_version": "v1",
        "id": "CVE-2017-5340-12d1fca6",
        "digest": {
            "length": 2665.0,
            "function_hash": "291942526429879441159894536430346133521"
        },
        "signature_type": "Function",
        "target": {
            "function": "_gd2GetHeader",
            "file": "ext/gd/libgd/gd_gd2.c"
        },
        "deprecated": false
    },
    {
        "source": "https://github.com/php/php-src/commit/4cc0286f2f3780abc6084bcdae5dce595daa3c12",
        "signature_version": "v1",
        "id": "CVE-2017-5340-7501d6a6",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "302809697189148475297750884608790259821",
                "25269136893474997921766866731112141155",
                "176995661728580401951558063694425109185",
                "282407999817348256037465684465485374719",
                "27203332826222208118957196914128024108",
                "327578526711602898995701292075519451415",
                "101648155586618325587449013706940504782",
                "84422741966942976358390282422869288177"
            ]
        },
        "signature_type": "Line",
        "target": {
            "file": "Zend/zend_hash.c"
        },
        "deprecated": false
    },
    {
        "source": "https://github.com/php/php-src/commit/4cc0286f2f3780abc6084bcdae5dce595daa3c12",
        "signature_version": "v1",
        "id": "CVE-2017-5340-7570f682",
        "digest": {
            "length": 534.0,
            "function_hash": "108479502598115741326499771321871644248"
        },
        "signature_type": "Function",
        "target": {
            "function": "_zend_hash_init",
            "file": "Zend/zend_hash.c"
        },
        "deprecated": false
    },
    {
        "source": "https://github.com/php/php-src/commit/9abbc3cc6d0f448435ca38bef694f671bf7303d8",
        "signature_version": "v1",
        "id": "CVE-2017-5340-a887e78f",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "268808390959611610380382661363715926383",
                "332457077737297600470842301867489262455",
                "183820387990733455444215637150999073887",
                "296117839669516092864788658433251533836"
            ]
        },
        "signature_type": "Line",
        "target": {
            "file": "ext/gd/libgd/gd_gd2.c"
        },
        "deprecated": false
    }
]