Every CVE Search/ Get API key

CVE-2018-7442

An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function does not block ...

9.1 CriticalFix available

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

1.99%Up 1.6 points since Apr 14, 2021
90%50%10%1%

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 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS 2.0
6.4 MediumAV: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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

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 3 CVEs
before 1.76.0-1.mga6
1.76.0-1.mga6
leptonlib
Ubuntu: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
leptonlib
Ubuntu:Pro:16.04:LTS
All versions, plus listed versions
1.72-31.72-3build11.73-11.73-1ubuntu0.1~esm1
None known
leptonlib
Ubuntu: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
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-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

Show 13 moreShow less
MoveEnter Open