IsItPatchedInstant security status for any software version
← All products

CVE-2016-7126

CRITICAL severity · CVSS 9.8 · Out-of-bounds write
9.8CVSS CRITICAL

Summary

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.

Impact & exploitability

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
Confidentiality impactHigh
Integrity impactHigh
Availability impactHigh
Exploit probability (EPSS)5%

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products we track (1)

PHP

Recommendation

Apply the vendor fix promptly. Open any affected product above for its exact safe version.

Official patch: https://github.com/php/php-src/commit/28022c9b1fd937436ab67bb3d61f652c108baf96 ↗

Last checked: Wed, 10 Jun 2026 22:18:30 UTC