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.
History

No history.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published: 2016-09-12T01:00:00

Updated: 2024-08-06T01:50:47.421Z

Reserved: 2016-09-02T00:00:00

Link: CVE-2016-7126

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2016-09-12T01:59:04.723

Modified: 2020-11-16T19:43:04.927

Link: CVE-2016-7126

cve-icon Redhat

Severity : Moderate

Publid Date: 2016-09-02T00:00:00Z

Links: CVE-2016-7126 - Bugzilla