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

# CVE-2018-7247

Publication date 19 February 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-7247?format=md#impact-score)

Toggle side navigation

## Description

An issue was discovered in pixHtmlViewer in prog/htmlviewer.c in Leptonica
before 1.75.3. Unsanitized input (rootname) can overflow a buffer, leading
potentially to arbitrary code execution or possibly unspecified other
impact.

### From the Ubuntu Security Team

It was discovered tha Leptonica incorrectly handled certain image files. An
attacker could possibly use this issue to execute arbitrary code or other
unspecified impact.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| leptonlib | 23.04 lunar | Fixed 1.76.0-1 |
| 22.10 kinetic | Fixed 1.76.0-1 |
| 22.04 LTS jammy | Fixed 1.76.0-1 |
| 21.10 impish | Fixed 1.76.0-1 |
| 21.04 hirsute | Fixed 1.76.0-1 |
| 20.10 groovy | Fixed 1.76.0-1 |
| 20.04 LTS focal | Fixed 1.76.0-1 |
| 19.10 eoan | Fixed 1.76.0-1 |
| 19.04 disco | Fixed 1.76.0-1 |
| 18.10 cosmic | Fixed 1.76.0-1 |
| 18.04 LTS bionic | Fixed 1.75.3-3ubuntu0.1~esm1  Ubuntu Pro |
| 17.10 artful | Ignored end of life |
| 16.04 LTS xenial | Not affected |
| 14.04 LTS trusty | Not affected |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

### 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)

## 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.0/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-7247)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2018-7247)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2018-7247)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2018-7247)

### Related Ubuntu Security Notices (USN)

+ [USN-5143-1](https://usn.ubuntu.com/USN-5143-1)
+ Leptonica vulnerability
+ 8 February 2022

### Other references

* <https://github.com/DanBloomberg/leptonica/commit/c1079bb8e77cdd426759e466729917ca37a3ed9f>
* <https://www.cve.org/CVERecord?id=CVE-2018-7247>
