{"id":"CVE-2016-7126","url":"https://www.cyber-defence.io/tools/cve/CVE-2016-7126","generatedAt":"2026-10-28T20:57:43.594Z","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 validate the number of colors, which allows remote attackers to cause a denial of service (select_colors allocation error and out-of-bounds…","description":"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.","published":"2016-09-12T01:59:05.000Z","lastModified":"2026-06-17T00:52:38.000Z","status":"Modified","sourceIdentifier":"cve@mitre.org","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"cwe":["CWE-787"],"affected":["php/php"],"epss":{"score":0.08819,"percentile":0.95162,"date":"2026-10-27","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"high","text":"High impact if exploited, but EPSS currently rates exploitation as unlikely (8.82%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit."},"changes":[],"references":[{"url":"http://openwall.com/lists/oss-security/2016/09/02/9","tags":["Mailing List"],"source":"cve@mitre.org"},{"url":"http://rhn.redhat.com/errata/RHSA-2016-2750.html","tags":["Third Party Advisory"],"source":"cve@mitre.org"},{"url":"http://www.php.net/ChangeLog-5.php","tags":["Release Notes"],"source":"cve@mitre.org"},{"url":"http://www.php.net/ChangeLog-7.php","tags":["Release Notes"],"source":"cve@mitre.org"},{"url":"http://www.securityfocus.com/bid/92755","tags":["Third Party Advisory","VDB Entry"],"source":"cve@mitre.org"},{"url":"http://www.securitytracker.com/id/1036680","tags":["Third Party Advisory","VDB Entry"],"source":"cve@mitre.org"},{"url":"https://bugs.php.net/bug.php?id=72697","tags":["Exploit","Issue Tracking"],"source":"cve@mitre.org"},{"url":"https://github.com/php/php-src/commit/28022c9b1fd937436ab67bb3d61f652c108baf96","tags":["Patch","Vendor Advisory"],"source":"cve@mitre.org"},{"url":"https://github.com/php/php-src/commit/b6f13a5ef9d6280cf984826a5de012a32c396cd4?w=1","tags":["Issue Tracking","Patch"],"source":"cve@mitre.org"},{"url":"https://security.gentoo.org/glsa/201611-22","tags":["Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://www.tenable.com/security/tns-2016-19","tags":["Third Party Advisory"],"source":"cve@mitre.org"},{"url":"http://openwall.com/lists/oss-security/2016/09/02/9","tags":["Mailing List"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://rhn.redhat.com/errata/RHSA-2016-2750.html","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.php.net/ChangeLog-5.php","tags":["Release Notes"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.php.net/ChangeLog-7.php","tags":["Release Notes"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securityfocus.com/bid/92755","tags":["Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securitytracker.com/id/1036680","tags":["Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://bugs.php.net/bug.php?id=72697","tags":["Exploit","Issue Tracking"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/php/php-src/commit/28022c9b1fd937436ab67bb3d61f652c108baf96","tags":["Patch","Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/php/php-src/commit/b6f13a5ef9d6280cf984826a5de012a32c396cd4?w=1","tags":["Issue Tracking","Patch"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.gentoo.org/glsa/201611-22","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.tenable.com/security/tns-2016-19","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2016-7126","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}