All vulnerabilities

Servers and applications

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.

Severity
Critical 9.8
Published
12 Sept 2016
Last changed
17 Jun 2026
Added to UpHeron
14 Oct 2026
Sources
NVD

Affected software

SoftwareAffected versions
PHPServers and applications · cpe:a:php:php
  • Version 7.0.9
  • Version 7.0.8
  • Version 7.0.7
  • Version 7.0.6
All 11 release lines
  • Every version up to 5.6.24
  • Version 7.0.0
  • Version 7.0.1
  • Version 7.0.2
  • Version 7.0.3
  • Version 7.0.4
  • Version 7.0.5
  • Version 7.0.6
  • Version 7.0.7
  • Version 7.0.8
  • Version 7.0.9

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2016-7126
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2016-7126