CVE-2018-7440
An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function allows command...
An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function allows command injection via a $(command) approach in the gplot rootname argument. This issue exists because of an incomplete fix for CVE-2018-3836.
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 Leptonica through 1.75.3. The gplotMakeOutput function allows command injection via a $(command) approach in the gplot rootname argument. This issue exists because of an incomplete fix for CVE-2018-3836.
- Record
CVE-2018-7440- 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-78
- Updated
- 2026-11-02
CVE List No score
An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function allows command injection via a $(command) approach in the gplot rootname argument. This issue exists because of an incomplete fix for CVE-2018-3836.
- Record
CVE-2018-7440- Updated
- 2026-11-02
EUVDEUVD-2018-19171 No score
An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function allows command injection via a $(command) approach in the gplot rootname argument. This issue exists because of an incomplete fix for CVE-2018-3836.
- Record
EUVD-2018-19171- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-x83x-c4xw-rr5g
9.8
An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function allows command...
An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function allows command injection via a $(command) approach in the gplot rootname argument. This issue exists because of an incomplete fix for CVE-2018-3836.
- Record
GHSA-x83x-c4xw-rr5g- 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-78
- Updated
- 2026-11-02
OSV
9.8
An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function allows command injection via a $(command) approach in the gplot rootname argument. This issue exists because of an incomplete fix for CVE-2018-3836.
- Record
CVE-2018-7440- 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-7440
9.8
An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function allows command injection via a $(command) approach in the gplot rootname argument. This issue exists because of an incomplete fix for CVE-2018-3836.
- Record
DEBIAN-CVE-2018-7440- 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
OSVUBUNTU-CVE-2018-7440
9.8
An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function allows command injection via a $(command) approach in the gplot rootname argument. This issue exists because of an incomplete fix for CVE-2018-3836.
- Record
UBUNTU-CVE-2018-7440- 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-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.75.3-3 | 1.75.3-3 |
leptonlibDebian:13 |
before 1.75.3-3 | 1.75.3-3 |
leptonlibDebian:14 |
before 1.75.3-3 | 1.75.3-3 |
leptonlibDebian:7 From an advisory covering 2 CVEs |
before 1.69-3.1+deb7u2, plus listed versions 1.69-3.11.69-3.1+deb7u1 |
1.69-3.1+deb7u2 |
leptonicaMageia:6 From an advisory covering 3 CVEs |
before 1.76.0-1.mga6 | 1.76.0-1.mga6 |
leptonlibUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 1.72-31.72-3build11.73-11.73-1ubuntu0.1~esm1 |
None known |
leptonlibUbuntu:18.04:LTS |
before 1.75.3-3, plus listed versions 1.74.4-11.74.4-21.75.3-11.75.3-2 |
1.75.3-3 |
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-7440 is a critical vulnerability (CVSS 9.8) in Leptonica, published February 23, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.74%, the 89th percentile. Fixed in leptonlib 1.75.3-3.
References
lists.debian.org/debian-lts-announce/2018/03/msg00005.html
github.com/DanBloomberg/leptonica/issues/303
security.gentoo.org/glsa/202312-01
nvd.nist.gov/vuln/detail/CVE-2018-7440
github.com/advisories/GHSA-x83x-c4xw-rr5g
security-tracker.debian.org/tracker/CVE-2018-7440
Show 15 moreShow less
advisories.mageia.org/MGASA-2018-0279.html
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-7440
github.com/DanBloomberg/leptonica/pull/313/commits/49ecb6c2dfd6ed5078c62f4a8eeff03e3beced3b
cve.org/CVERecord?id=CVE-2018-7440
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