CVE-2016-7126: PHP
Critical severity, CVSS 9.8. EPSS: 8.8% chance of exploitation in the next 30 days.
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.
Affected products
- PHP PHP: version 7.0.0 only; version 7.0.1 only; version 7.0.2 only; version 7.0.3 only; version 7.0.4 only; version 7.0.5 only; …
Published 2016-09-12. Last modified 2026-06-17.