CVE-2016-7126

php: select_colors write out-of-bounds

Published Sep 12, 2016 CVSS 3.1 · 9.8 Critical EPSS 8.8% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-3689-1 php5 security update
EUVD EUVD EUVD-2016-8004 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.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 6, 2024, 1:50 AM
Reserved
Sep 2, 2016, 12:00 AM
Status
Modified
Published
Sep 12, 2016, 1:59 AM
Modified
Jun 17, 2026, 12:52 AM
Severity
Moderate
Public date
Sep 2, 2016, 12:00 AM