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.
{ "vanir_signatures": [ { "id": "CVE-2017-5340-7501d6a6", "digest": { "line_hashes": [ "302809697189148475297750884608790259821", "25269136893474997921766866731112141155", "176995661728580401951558063694425109185", "282407999817348256037465684465485374719", "27203332826222208118957196914128024108", "327578526711602898995701292075519451415", "101648155586618325587449013706940504782", "84422741966942976358390282422869288177" ], "threshold": 0.9 }, "source": "https://github.com/php/php-src/commit/4cc0286f2f3780abc6084bcdae5dce595daa3c12", "target": { "file": "Zend/zend_hash.c" }, "signature_version": "v1", "deprecated": false, "signature_type": "Line" }, { "id": "CVE-2017-5340-7570f682", "digest": { "length": 534.0, "function_hash": "108479502598115741326499771321871644248" }, "source": "https://github.com/php/php-src/commit/4cc0286f2f3780abc6084bcdae5dce595daa3c12", "target": { "function": "_zend_hash_init", "file": "Zend/zend_hash.c" }, "signature_version": "v1", "deprecated": false, "signature_type": "Function" } ] }