{"id":"CVE-2016-7127","url":"https://www.cyber-defence.io/tools/cve/CVE-2016-7127","generatedAt":"2026-10-28T20:48:17.246Z","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 gamma values, which allows remote attackers to cause a denial of service (out-of-bounds write) or possibly have unspecified other impact…","description":"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.","published":"2016-09-12T01:59:06.000Z","lastModified":"2026-06-17T00:52:38.000Z","status":"Modified","sourceIdentifier":"cve@mitre.org","cvss":{"version":"3.0","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.0/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.06842,"percentile":0.93998,"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 (6.84%). 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","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/92757","source":"cve@mitre.org"},{"url":"http://www.securitytracker.com/id/1036680","source":"cve@mitre.org"},{"url":"https://bugs.php.net/bug.php?id=72730","tags":["Exploit","Issue Tracking"],"source":"cve@mitre.org"},{"url":"https://github.com/php/php-src/commit/1bd103df00f49cf4d4ade2cfe3f456ac058a4eae?w=1","tags":["Issue Tracking","Patch"],"source":"cve@mitre.org"},{"url":"https://security.gentoo.org/glsa/201611-22","source":"cve@mitre.org"},{"url":"https://www.tenable.com/security/tns-2016-19","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","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/92757","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securitytracker.com/id/1036680","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://bugs.php.net/bug.php?id=72730","tags":["Exploit","Issue Tracking"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/php/php-src/commit/1bd103df00f49cf4d4ade2cfe3f456ac058a4eae?w=1","tags":["Issue Tracking","Patch"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.gentoo.org/glsa/201611-22","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.tenable.com/security/tns-2016-19","source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2016-7127","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."}