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.0th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 95th percentile — 95.0% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.088 · newest: 0.088 · change: 0.000
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)
- security.gentoo.org/glsa/201611-22 (vendor-advisory, Third Party Advisory)
- www.securitytracker.com/id/1036680 (VDB Entry, Third Party Advisory, vdb-entry)
- github.com/php/php-src/commit/b6f13a5ef9d6280cf984826a5de012a32c396cd4 (Patch, Issue Tracking)
- rhn.redhat.com/errata/RHSA-2016-2750.html (vendor-advisory, Third Party Advisory)
- www.securityfocus.com/bid/92755 (VDB Entry, Third Party Advisory, vdb-entry)
- www.php.net/ChangeLog-5.php (Release Notes)
- www.tenable.com/security/tns-2016-19 (Third Party Advisory)
- openwall.com/lists/oss-security/2016/09/02/9 (mailing-list, Mailing List)
- bugs.php.net/bug.php (Exploit, Issue Tracking)
Frequently asked questions
- What is CVE-2016-7126?
- CVE-2016-7126 is a critical-severity vulnerability in PHP, classified under Out-of-bounds Write. CVSS score: 9.8/10. Published 2016-09-12.
- How severe is CVE-2016-7126?
- Critical severity. CVSS v3 base score is 9.8 out of 10.