The imagegammacorrect function in ext/gd/gd.c in PHP before 5.6.25 and 7.x before 7.0.10 does not properly validate gamma values, which allows remote attackers to cause a denial of service (out-of-bounds write) or possibly have unspecified other impact by providing different signs for the second and third arguments.
{ "vanir_signatures": [ { "id": "CVE-2016-7127-b20a7f9e", "digest": { "line_hashes": [ "13061000410432496893915167939260265663", "16449094754789311592583499708074726003", "249040513906500853715332747983958150376" ], "threshold": 0.9 }, "signature_version": "v1", "source": "https://github.com/php/php-src/commit/1bd103df00f49cf4d4ade2cfe3f456ac058a4eae", "target": { "file": "ext/gd/gd.c" }, "deprecated": false, "signature_type": "Line" }, { "id": "CVE-2016-7127-c5e74e49", "digest": { "length": 1319.0, "function_hash": "182819258980180063651267922896273285635" }, "signature_version": "v1", "source": "https://github.com/php/php-src/commit/1bd103df00f49cf4d4ade2cfe3f456ac058a4eae", "target": { "function": "PHP_FUNCTION", "file": "ext/gd/gd.c" }, "deprecated": false, "signature_type": "Function" } ] }