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

# CVE-2018-7648

Publication date 2 March 2018

Last updated 25 August 2025

---

Ubuntu priority

**Medium**

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

## Cvss 3 Severity Score

**9.8 · Critical**

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

Toggle side navigation

## Description

An issue was discovered in mj2/opj\_mj2\_extract.c in OpenJPEG 2.3.0. The
output prefix was not checked for length, which could overflow a buffer,
when providing a prefix with 50 or more characters on the command line.

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

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| openjpeg | 17.10 artful | Not in release |
| 16.04 LTS xenial | Not affected |
| 14.04 LTS trusty | Not affected |
| openjpeg2 | 17.10 artful | Not affected |
| 16.04 LTS xenial | Not affected |
| 14.04 LTS trusty | 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-2018-7648?format=md#patch-details)

## Notes

---

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

-DBUILD\_MJ2:BOOL=OFF is set in Ubuntu and Debian packaging,
so code affected is not built.

---

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

-DBUILD\_MJ2 is set to ON in openjpeg, however, the vulnerable
code is not present in this package since the file received
as an argument is not processed in the same way as it is in
openjpeg2, it is simply used as is.

### 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 |
| --- | --- |
| openjpeg | * Upstream:   [cc38247](https://github.com/uclouvain/openjpeg/commit/cc3824767bde397fedb8a1ae4786a222ba860c8d) |
| openjpeg2 | * Upstream:   [cc38247](https://github.com/uclouvain/openjpeg/commit/cc3824767bde397fedb8a1ae4786a222ba860c8d) |

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

9.8 · Critical

* Base metrics

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

  | Parameter | Value |
  | --- | --- |
  | Base score | 9.8 · Critical |
  | Exploitability score | - |
  | Impact score | - |

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

## References

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

### Other references

* <https://github.com/kbabioch/openjpeg/commit/6d8c0c06ee32dc03ba80acd48334e98728e56cf5>
* <https://github.com/uclouvain/openjpeg/issues/1088>
* <https://www.cve.org/CVERecord?id=CVE-2018-7648>
