Every CVE Search/ Get API key

CVE-2018-7247

An issue was discovered in pixHtmlViewer in prog/htmlviewer.c in Leptonica before 1.75.3....

9.8 CriticalFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

2.47%Up 1.7 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 9.8

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.

Record
CVE-2018-7247
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-119
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2018-7247
Updated
2026-11-02
EUVDEUVD-2018-18986 No score

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.

Record
EUVD-2018-18986
Updated
2026-11-03
GitHub AdvisoriesGHSA-29q2-994c-m8hr 9.8

An issue was discovered in pixHtmlViewer in prog/htmlviewer.c in Leptonica before 1.75.3....

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.

Record
GHSA-29q2-994c-m8hr
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-119
Updated
2026-11-02
OSV 9.8

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.

Record
CVE-2018-7247
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2018-7247 9.8

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.

Record
DEBIAN-CVE-2018-7247
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 4 moreShow less
OSVUBUNTU-CVE-2018-7247 9.8

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.

Record
UBUNTU-CVE-2018-7247
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVMGASA-2018-0175 No score

Updated leptonica packages fix security vulnerabilities

Package leptonica has been updated to the current stable version 1.75.3 which fixes:

CVE-2018-7186 - multiple stack-based buffer overflows in gplotRead() and ptaReadStream()

CVE-2018-7247 - a buffer overflow in src/viewfiles.c with unsanitized input (rootname)

Record
MGASA-2018-0175
Updated
2026-11-02
OSVopenSUSE-SU-2024:10914-1 No score

leptonica-devel-1.80.0-1.9 on GA media

These are all security issues fixed in the leptonica-devel-1.80.0-1.9 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10914-1
Updated
2026-11-02
OSVUSN-5143-1 No score

leptonlib vulnerability

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

Record
USN-5143-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
leptonlib
Debian:12
before 1.76.0-1
1.76.0-1
leptonlib
Debian:13
before 1.76.0-1
1.76.0-1
leptonlib
Debian:14
before 1.76.0-1
1.76.0-1
leptonica
Mageia:6
From an advisory covering 2 CVEs
before 1.75.3-1.mga6
1.75.3-1.mga6
mingw-leptonica
Mageia:6
From an advisory covering 2 CVEs
before 1.75.3-1.mga6
1.75.3-1.mga6
leptonlib
Ubuntu:Pro:18.04:LTS
before 1.75.3-3ubuntu0.1~esm1, plus listed versions
1.74.4-11.74.4-21.75.3-11.75.3-21.75.3-3
1.75.3-3ubuntu0.1~esm1
leptonica
openSUSE:Tumbleweed
From an advisory covering 7 CVEs
before 1.80.0-1.9
1.80.0-1.9

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2018-7247 is a critical vulnerability (CVSS 9.8) in Leptonica, published February 19, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.47%, the 84th percentile. Fixed in leptonlib 1.76.0-1.

References

Show 11 moreShow less
MoveEnter Open