CVE-2016-7126
Publication date 12 September 2016
Last updated 25 August 2025
Ubuntu priority
Cvss 3 Severity Score
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.
Status
| Package | Ubuntu Release | Status |
|---|---|---|
| libgd2 | 16.04 LTS xenial |
Not affected
|
| 14.04 LTS trusty |
Not affected
|
|
| php5 | 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty |
Not affected
|
|
| php7.0 | 16.04 LTS xenial |
Not affected
|
| 14.04 LTS trusty | Not in release | |
Notes
tyhicks
The PHP bug states that libgd2 is not affected and I've verified this through code review and testing.
Severity score breakdown
| Parameter | Value |
|---|---|
| Base score |
|
| Attack vector | Network |
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | High |
| Integrity impact | High |
| Availability impact | High |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |