---
title: "CVE-2016-6128\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2016-6128?format=md
keywords: index, follow
---

# CVE-2016-6128

Publication date 30 June 2016

Last updated 25 August 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**7.5 · High**

[Score breakdown](https://ubuntu.com/security/CVE-2016-6128?format=md#impact-score)

Toggle side navigation

## Description

The gdImageCropThreshold function in gd\_crop.c in the GD Graphics Library
(aka libgd) before 2.2.3, as used in PHP before 7.0.9, allows remote
attackers to cause a denial of service (application crash) via an invalid
color index.

[Read the notes from the security team](https://ubuntu.com/security/CVE-2016-6128?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| libgd2 | 16.04 LTS xenial | Fixed 2.1.1-4ubuntu0.16.04.2 |
| 15.10 wily | Fixed 2.1.1-4ubuntu0.15.10.2 |
| 14.04 LTS trusty | Fixed 2.1.0-3ubuntu0.2 |
| 12.04 LTS precise | Not affected |
| php5 | 16.04 LTS xenial | Not in release |
| 15.10 wily | Not affected |
| 14.04 LTS trusty | Not affected |
| 12.04 LTS precise | Not affected |
| php7.0 | 16.04 LTS xenial | Not affected |
| 15.10 wily | Not in release |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Not in release |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2016-6128?format=md#patch-details)

## Notes

---

### [mdeslaur](https://launchpad.net/~mdeslaur)

php uses the system libgd2
introduced in 2.1.0

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| libgd2 | * Upstream:   <https://github.com/libgd/libgd/compare/3fe0a7128bac5000fdcfab888bd2a75ec0c9447d...fd623025505e87bba7ec8555eeb72dae4fb0afd> |

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

7.5 · High

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Privileges required | None |
  | User interaction | None |
  | Scope | Unchanged |
  | Confidentiality impact | None |
  | Integrity impact | None |
  | Availability impact | High |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 7.5 · High |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-6128)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2016-6128)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2016-6128)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2016-6128)

### Related Ubuntu Security Notices (USN)

+ [USN-3030-1](https://usn.ubuntu.com/USN-3030-1)
+ GD library vulnerabilities
+ 11 July 2016

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2016-6128>
