CVE-2018-7442
An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function does not block ...
An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function does not block '/' characters in the gplot rootname argument, potentially leading to path traversal and arbitrary file overwrite.
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
- None
Exploit likelihood
What each source reports
NVD Score used
9.1
An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function does not block '/' characters in the gplot rootname argument, potentially leading to path traversal and arbitrary file overwrite.
- Record
CVE-2018-7442- CVSS 3.0
- 9.1 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N - CVSS 2.0
- 6.4 Medium
AV:N/AC:L/Au:N/C:P/I:P/A:N - Weakness
- CWE-22
- Updated
- 2026-11-02
CVE List No score
An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function does not block '/' characters in the gplot rootname argument, potentially leading to path traversal and arbitrary file overwrite.
- Record
CVE-2018-7442- Updated
- 2026-11-02
EUVDEUVD-2018-19173 No score
An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function does not block '/' characters in the gplot rootname argument, potentially leading to path traversal and arbitrary file overwrite.
- Record
EUVD-2018-19173- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-fmvw-q9g6-wfgh
9.1
An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function does not block ...
An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function does not block '/' characters in the gplot rootname argument, potentially leading to path traversal and arbitrary file overwrite.
- Record
GHSA-fmvw-q9g6-wfgh- CVSS 3.0
- 9.1 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-22
- Updated
- 2026-11-02
OSV
9.1
An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function does not block '/' characters in the gplot rootname argument, potentially leading to path traversal and arbitrary file overwrite.
- Record
CVE-2018-7442- CVSS 3.0
- 9.1 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N - Updated
- 2026-11-02
OSVDEBIAN-CVE-2018-7442
9.1
An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function does not block '/' characters in the gplot rootname argument, potentially leading to path traversal and arbitrary file overwrite.
- Record
DEBIAN-CVE-2018-7442- CVSS 3.0
- 9.1 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N - Updated
- 2026-11-02
OSVUBUNTU-CVE-2018-7442
9.1
An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function does not block '/' characters in the gplot rootname argument, potentially leading to path traversal and arbitrary file overwrite.
- Record
UBUNTU-CVE-2018-7442- CVSS 3.0
- 9.1 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N - Updated
- 2026-11-02
OSVMGASA-2018-0279 No score
Updated leptonica packages fix security vulnerabilities
This update fixes a security issue (potential injection attack using gplot rootdir) originally reported in CVE-2018-3836.
This fix was incomplete and again reported in CVE-2018-7440 and CVE-2018-7442. The improved fix is included in leptonica-1.76.0.
- Record
MGASA-2018-0279- 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
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 3 CVEs |
before 1.76.0-1.mga6 | 1.76.0-1.mga6 |
leptonlibUbuntu:Pro:14.04:LTS |
All versions, plus listed versions 1.69-4ubuntu11.69-4ubuntu21.69-4ubuntu31.69-4ubuntu41.70.1-11.70.1-1ubuntu0.1~esm1 |
None known |
leptonlibUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 1.72-31.72-3build11.73-11.73-1ubuntu0.1~esm1 |
None known |
leptonlibUbuntu:Pro:18.04:LTS |
All versions, plus listed versions 1.74.4-11.74.4-21.75.3-11.75.3-21.75.3-31.75.3-3ubuntu0.1~esm1 |
None known |
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-7442 is a critical vulnerability (CVSS 9.1) in Leptonica, published February 23, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.99%, the 80th percentile. Fixed in leptonlib 1.76.0-1.
References
lists.debian.org/debian-lts/2018/02/msg00086.html
security.gentoo.org/glsa/202312-01
nvd.nist.gov/vuln/detail/CVE-2018-7442
github.com/advisories/GHSA-fmvw-q9g6-wfgh
security-tracker.debian.org/tracker/CVE-2018-7442
advisories.mageia.org/MGASA-2018-0279.html
Show 13 moreShow less
bugs.mageia.org/show_bug.cgi?id=23130
bugs.mageia.org/show_bug.cgi?id=22591
bugzilla.redhat.com/show_bug.cgi?id=1549735
bugzilla.redhat.com/show_bug.cgi?id=1549729
ubuntu.com/security/CVE-2018-7442
cve.org/CVERecord?id=CVE-2018-7442
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