{"id":"CVE-2016-7127","published":"2016-09-12T01:00:00Z","modified":"2024-08-06T01:50:47Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.06842,"percentile":0.94178,"provenance":"source"},"cwes":[],"references":[{"url":"http://www.securityfocus.com/bid/92757","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://www.php.net/ChangeLog-7.php","tags":["x_refsource_CONFIRM"]},{"url":"https://bugs.php.net/bug.php?id=72730","tags":["x_refsource_CONFIRM"]},{"url":"https://security.gentoo.org/glsa/201611-22","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"http://www.securitytracker.com/id/1036680","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"http://rhn.redhat.com/errata/RHSA-2016-2750.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://www.php.net/ChangeLog-5.php","tags":["x_refsource_CONFIRM"]},{"url":"https://www.tenable.com/security/tns-2016-19","tags":["x_refsource_CONFIRM"]},{"url":"http://openwall.com/lists/oss-security/2016/09/02/9","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://github.com/php/php-src/commit/1bd103df00f49cf4d4ade2cfe3f456ac058a4eae?w=1","tags":["x_refsource_CONFIRM"]}],"priority":{"score":18.8,"factors":[{"name":"EPSS percentile","points":18.84}]},"summary":{"text":"The imagegammacorrect function in ext/gd/gd.c of PHP (versions before 5.6.25 and 7.x before 7.0.10) fails to properly validate gamma values. An attacker able to supply arguments to this function with differing signs for the second and third parameters can trigger an out-of-bounds write, causing denial of service or possibly other unspecified impact.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:59:11Z"},"euvd":{"id":"EUVD-2016-8005","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-cve-2013-7226-family-cve-2013-7226","parents":[{"from":"CVE-2013-7226","to":"CVE-2016-7127","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["ext/gd/gd.c"],"commits":["https://github.com/php/php-src/commit/2938329ce19cb8c4197dec146c3ec887c6f61d01","https://github.com/php/php-src/commit/1bd103df00f49cf4d4ade2cfe3f456ac058a4eae"],"basis":"shared function","functions":["PHP_FUNCTION"]}]},{"from":"CVE-2014-2020","to":"CVE-2016-7127","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["ext/gd/gd.c"],"commits":["https://github.com/php/php-src/commit/2938329ce19cb8c4197dec146c3ec887c6f61d01","https://github.com/php/php-src/commit/1bd103df00f49cf4d4ade2cfe3f456ac058a4eae"],"basis":"shared function","functions":["PHP_FUNCTION"]}]},{"from":"CVE-2016-7126","to":"CVE-2016-7127","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["ext/gd/gd.c"],"commits":["https://github.com/php/php-src/commit/b6f13a5ef9d6280cf984826a5de012a32c396cd4","https://github.com/php/php-src/commit/28022c9b1fd937436ab67bb3d61f652c108baf96","https://github.com/php/php-src/commit/1bd103df00f49cf4d4ade2cfe3f456ac058a4eae"],"basis":"shared function","functions":["PHP_FUNCTION"]}]}]}}