---
title: "CVE-2016-5842\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-5842?format=md
keywords: index, follow
---

# CVE-2016-5842

Publication date 27 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-5842?format=md#impact-score)

Toggle side navigation

## Description

MagickCore/property.c in ImageMagick before 7.0.2-1 allows remote attackers
to obtain sensitive memory information via vectors involving the q
variable, which triggers an out-of-bounds read.

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

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| imagemagick | 16.10 yakkety | Fixed 8:6.8.9.9-7ubuntu8.1 |
| 16.04 LTS xenial | Fixed 8:6.8.9.9-7ubuntu5.2 |
| 15.10 wily | Ignored end of life |
| 14.04 LTS trusty | Fixed 8:6.7.7.10-6ubuntu3.2 |
| 12.04 LTS precise | Fixed 8:6.6.9.7-5ubuntu3.5 |

---

* [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-5842?format=md#patch-details)

## Notes

---

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

This is 0136-Improve-checking-of-EXIF-profile-to-prevent-integer-.patch

### 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 |
| --- | --- |
| imagemagick | * Upstream:   [d8ab7f0](https://github.com/ImageMagick/ImageMagick/commit/d8ab7f046587f2e9f734b687ba7e6e10147c294b) |

## 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 | High |
  | Integrity impact | None |
  | Availability impact | None |
* 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:H/I:N/A:N

## References

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

### Related Ubuntu Security Notices (USN)

+ [USN-3131-1](https://usn.ubuntu.com/USN-3131-1)
+ ImageMagick vulnerabilities
+ 21 November 2016

### Other references

* <http://www.openwall.com/lists/oss-security/2016/06/23/1>
* <https://www.cve.org/CVERecord?id=CVE-2016-5842>
