{"id":"CVE-2016-7126","published":"2016-09-12T01:00:00Z","modified":"2024-08-06T01:50:47Z","title":"The imagetruecolortopalette function in ext/gd/gd.c in PHP before 5.6.25 and 7.x before 7.0.10 does not properly…","vendor":null,"product":null,"tier":"tail","description":{"text":"The imagetruecolortopalette function in ext/gd/gd.c in PHP before 5.6.25 and 7.x before 7.0.10 does not properly validate the number of colors, which allows remote attackers to cause a denial of service (select_colors allocation error and out-of-bounds write) or possibly have unspecified other impact via a large value in the third argument.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.08819,"percentile":0.9531,"provenance":"source"},"cwes":[],"references":[{"url":"http://www.php.net/ChangeLog-7.php","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":"https://github.com/php/php-src/commit/b6f13a5ef9d6280cf984826a5de012a32c396cd4?w=1","tags":["x_refsource_CONFIRM"]},{"url":"http://rhn.redhat.com/errata/RHSA-2016-2750.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://www.securityfocus.com/bid/92755","tags":["vdb-entry","x_refsource_BID"]},{"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://bugs.php.net/bug.php?id=72697","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/php/php-src/commit/28022c9b1fd937436ab67bb3d61f652c108baf96","tags":["x_refsource_CONFIRM"]}],"priority":{"score":19.1,"factors":[{"name":"EPSS percentile","points":19.06}]},"summary":{"text":"The imagetruecolortopalette function in ext/gd/gd.c in PHP before 5.6.25 and 7.x before 7.0.10 fails to properly validate the number of colors. An remote attacker who can supply a large value as the function's third argument can cause a denial of service through a select_colors allocation error and out-of-bounds write, and possibly achieve other unspecified impact, with no particular authentication or user interaction indicated.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:53:54Z"},"euvd":{"id":"EUVD-2016-8004","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-cve-2013-7226-family-cve-2013-7226","parents":[{"from":"CVE-2013-7226","to":"CVE-2016-7126","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/b6f13a5ef9d6280cf984826a5de012a32c396cd4","https://github.com/php/php-src/commit/28022c9b1fd937436ab67bb3d61f652c108baf96"],"basis":"shared function","functions":["PHP_FUNCTION"]}]},{"from":"CVE-2014-2020","to":"CVE-2016-7126","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/b6f13a5ef9d6280cf984826a5de012a32c396cd4","https://github.com/php/php-src/commit/28022c9b1fd937436ab67bb3d61f652c108baf96"],"basis":"shared function","functions":["PHP_FUNCTION"]}]}],"children":[{"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"]}]}]}}