First published: Mon Sep 12 2016(Updated: )
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.
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
PHP | <7.0.10 | 7.0.10 |
PHP | =7.0.0 | |
PHP | =7.0.1 | |
PHP | =7.0.2 | |
PHP | =7.0.3 | |
PHP | =7.0.4 | |
PHP | =7.0.5 | |
PHP | =7.0.6 | |
PHP | =7.0.7 | |
PHP | =7.0.8 | |
PHP | =7.0.9 | |
PHP | <=5.6.24 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2016-7126 has a severity rating that indicates the potential for denial of service due to an allocation error and out-of-bounds write.
To fix CVE-2016-7126, upgrade your PHP installation to version 5.6.25 or later, or version 7.0.10 or later.
CVE-2016-7126 affects PHP versions prior to 5.6.25 and 7.0.10, including versions 5.6.24 and earlier for the 5.x series, and 7.0.9 and earlier for the 7.x series.
The potential impacts of CVE-2016-7126 include denial of service attacks caused by allocation errors or out-of-bounds writes.
CVE-2016-7126 can be exploited by remote attackers to trigger denial of service vulnerabilities.