Buffer overflow in PHP
CVE-2016-7127
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.068, 94.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- PHP — versions 7.0.0, 7.0.1, 7.0.2
Weakness classification (CWE)
References
- www.securityfocus.com/bid/92757 (vdb-entry)
- www.php.net/ChangeLog-7.php (Release Notes)
- bugs.php.net/bug.php (Exploit, Issue Tracking)
- GLSA-201611-22 (vendor-advisory)
- www.securitytracker.com/id/1036680 (vdb-entry)
- RHSA-2016:2750 (vendor-advisory)
- www.php.net/ChangeLog-5.php (Release Notes)
- www.tenable.com/security/tns-2016-19
- [oss-security] 20160902 Re: CVE assignment for PHP 5.6.25 and 7.0.10 - and libcurl (mailing-list, Mailing List)
- github.com/php/php-src/commit/1bd103df00f49cf4d4ade2cfe3f456ac058a4eae (Patch, Issue Tracking)