CVE-2018-7440

NameCVE-2018-7440
DescriptionAn 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
ReferencesDLA-1302-1
NVD severityhigh (attack range: remote)
Debian Bugs891932

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
leptonlib (PTS)jessie1.71-2.1fixed
stretch1.74.1-1fixed
buster, sid1.76.0-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
leptonlibsource(unstable)1.75.3-3high891932
leptonlibsourcejessie(not affected)
leptonlibsourcestretch(not affected)
leptonlibsourcewheezy1.69-3.1+deb7u2highDLA-1302-1

Notes

[stretch] - leptonlib <not-affected> (Incomplete fix for CVE-2018-3836 not applied)
[jessie] - leptonlib <not-affected> (Incomplete fix for CVE-2018-3836 not applied)
https://github.com/DanBloomberg/leptonica/issues/303#issuecomment-366472212
https://github.com/DanBloomberg/leptonica/pull/313/commits/49ecb6c2dfd6ed5078c62f4a8eeff03e3beced3b

Search for package or bug name: Reporting problems