Buffer overflow in PHP
CVE-2016-7126
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.088, 95.3th 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.php.net/ChangeLog-7.php (Release Notes)
- GLSA-201611-22 (vendor-advisory, Third Party Advisory)
- www.securitytracker.com/id/1036680 (Third Party Advisory, VDB Entry, vdb-entry)
- github.com/php/php-src/commit/b6f13a5ef9d6280cf984826a5de012a32c396cd4 (Patch, Issue Tracking)
- RHSA-2016:2750 (vendor-advisory, Third Party Advisory)
- www.securityfocus.com/bid/92755 (Third Party Advisory, VDB Entry, vdb-entry)
- www.php.net/ChangeLog-5.php (Release Notes)
- www.tenable.com/security/tns-2016-19 (Third Party Advisory)
- [oss-security] 20160902 Re: CVE assignment for PHP 5.6.25 and 7.0.10 - and libcurl (mailing-list, Mailing List)
- bugs.php.net/bug.php (Exploit, Issue Tracking)