CVE-2018-7247
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.
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
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 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.5 High
AV: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 Critical
CVSS: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 Critical
CVSS: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 Critical
CVSS: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 Critical
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
leptonlibDebian:12 |
before 1.76.0-1 | 1.76.0-1 |
leptonlibDebian:13 |
before 1.76.0-1 | 1.76.0-1 |
leptonlibDebian:14 |
before 1.76.0-1 | 1.76.0-1 |
leptonicaMageia:6 From an advisory covering 2 CVEs |
before 1.75.3-1.mga6 | 1.75.3-1.mga6 |
mingw-leptonicaMageia:6 From an advisory covering 2 CVEs |
before 1.75.3-1.mga6 | 1.75.3-1.mga6 |
leptonlibUbuntu: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 |
leptonicaopenSUSE:Tumbleweed From an advisory covering 7 CVEs |
before 1.80.0-1.9 | 1.80.0-1.9 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE 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
github.com/DanBloomberg/leptonica/commit/c1079bb8e77cdd426759e466729917ca37a3ed9f
security.gentoo.org/glsa/202312-01
nvd.nist.gov/vuln/detail/CVE-2018-7247
github.com/advisories/GHSA-29q2-994c-m8hr
security-tracker.debian.org/tracker/CVE-2018-7247
advisories.mageia.org/MGASA-2018-0175.html
Show 11 moreShow less
bugs.mageia.org/show_bug.cgi?id=22742
ubuntu.com/security/CVE-2018-7247
ubuntu.com/security/notices/USN-5143-1
cve.org/CVERecord?id=CVE-2018-7247
suse.com/security/cve/CVE-2017-18196
suse.com/security/cve/CVE-2018-3836
suse.com/security/cve/CVE-2018-7186
suse.com/security/cve/CVE-2018-7247
suse.com/security/cve/CVE-2018-7440
suse.com/security/cve/CVE-2018-7441
suse.com/security/cve/CVE-2018-7442