Your submission was sent successfully! Close

You have successfully unsubscribed! Close

Thank you for signing up for our newsletter!
In these regular emails you will find the latest updates about Ubuntu and upcoming events where you can meet our team.Close

CVE-2016-7126

Published: 12 September 2016

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.

Notes

AuthorNote
tyhicks
The PHP bug states that libgd2 is not affected and I've verified this
through code review and testing.

Priority

Medium

Cvss 3 Severity Score

9.8

Score breakdown

Status

Package Release Status
libgd2
Launchpad, Ubuntu, Debian
precise Not vulnerable
(overflow checks performed)
trusty Not vulnerable
(overflow checks performed)
upstream Not vulnerable
(overflow checks performed)
xenial Not vulnerable

php5
Launchpad, Ubuntu, Debian
precise Not vulnerable
(uses system gd)
trusty Not vulnerable
(uses system gd)
upstream Needs triage

xenial Does not exist

php7.0
Launchpad, Ubuntu, Debian
precise Does not exist

trusty Does not exist

upstream Needs triage

xenial Not vulnerable
(uses system gd)
Patches:
upstream: https://github.com/php/php-src/commit/b6f13a5ef9d6280cf984826a5de012a32c396cd4?w=1

Severity score breakdown

Parameter Value
Base score 9.8
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