Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2016-7126 Details

Description

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.

Metrics

CVSS 3.x Severity and Vector Strings:

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

URLSource(s)Tag(s)
http://openwall.com/lists/oss-security/2016/09/02/9 CVEMailing List
http://rhn.redhat.com/errata/RHSA-2016-2750.html CVEThird Party Advisory
https://bugs.php.net/bug.php?id=72697 CVEExploitIssue Tracking
https://github.com/php/php-src/commit/28022c9b1fd937436ab67bb3d61f652c108baf96 CVEPatchVendor Advisory
https://github.com/php/php-src/commit/b6f13a5ef9d6280cf984826a5de012a32c396cd4?w=1 CVEIssue TrackingPatch

see all 22 references

Weakness Enumeration

CWE-IDCWE NameSource
CWE-787Out-of-bounds Write[email protected]

Affected Products

ProductVersions
php php
7.0.0
7.0.1
7.0.2
7.0.3
7.0.4

CPE

  • cpe:2.3:a:php:php:7.0.0:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:7.0.1:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:7.0.2:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:7.0.3:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:7.0.4:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:7.0.5:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:7.0.6:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:7.0.7:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:7.0.8:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:7.0.9:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:*:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.

Change History

13 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2016-7126
NVD Published Date:
Sep 12, 2016
NVD Last Modified:
Jun 17, 2026
Source:
[email protected]