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

# CVE-2018-16412

Publication date 3 September 2018

Last updated 25 August 2025

---

Ubuntu priority

**Low**

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

## Cvss 3 Severity Score

**8.8 · High**

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

Toggle side navigation

## Description

ImageMagick 7.0.8-11 Q16 has a heap-based buffer over-read in the
coders/psd.c ParseImageResourceBlocks function.

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

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| imagemagick | 24.10 oracular | Not affected |
| 24.04 LTS noble | Not affected |
| 23.10 mantic | Not affected |
| 23.04 lunar | Not affected |
| 22.10 kinetic | Not affected |
| 22.04 LTS jammy | Not affected |
| 20.04 LTS focal | Not affected |
| 19.04 disco | Not affected |
| 18.10 cosmic | Fixed 8:6.9.10.8+dfsg-1ubuntu2.2 |
| 18.04 LTS bionic | Fixed 8:6.9.7.4+dfsg-16ubuntu6.7 |
| 16.04 LTS xenial | Fixed 8:6.8.9.9-7ubuntu5.14 |
| 14.04 LTS trusty | Fixed 8:6.7.7.10-6ubuntu3.13+esm8  Ubuntu Pro |

---

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

### Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

[Get Ubuntu Pro](https://ubuntu.com/pro)
[30-day free trial](https://ubuntu.com/pro/free-trial)

## Notes

---

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

PoC in github issue

---

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

PoC on 32-bit only

### 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:   [4745eb1](https://github.com/ImageMagick/ImageMagick6/commit/4745eb1047617330141e9abfd5ae01236a71ae12) |

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

8.8 · High

* Base metrics

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

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

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

## References

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

### Related Ubuntu Security Notices (USN)

+ [USN-4034-1](https://usn.ubuntu.com/USN-4034-1)
+ ImageMagick vulnerabilities
+ 25 June 2019

+ [USN-6980-1](https://usn.ubuntu.com/USN-6980-1)
+ ImageMagick vulnerabilities
+ 22 August 2024

### Other references

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