{"id":"UBUNTU-CVE-2018-7440","details":"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.","modified":"2026-04-22T12:03:19.535210Z","published":"2018-02-23T21:29:00Z","upstream":["CVE-2018-7440"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-7440"},{"type":"REPORT","url":"https://github.com/DanBloomberg/leptonica/issues/303#issuecomment-366472212"},{"type":"REPORT","url":"https://github.com/DanBloomberg/leptonica/pull/313/commits/49ecb6c2dfd6ed5078c62f4a8eeff03e3beced3b"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-7440"}],"affected":[{"package":{"name":"leptonlib","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/leptonlib@1.73-1ubuntu0.1~esm1?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.72-3","1.72-3build1","1.73-1","1.73-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"leptonica-progs","binary_version":"1.73-1ubuntu0.1~esm1"},{"binary_name":"liblept5","binary_version":"1.73-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-7440.json"}},{"package":{"name":"leptonlib","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/leptonlib@1.75.3-3?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.75.3-3"}]}],"versions":["1.74.4-1","1.74.4-2","1.75.3-1","1.75.3-2"],"ecosystem_specific":{"binaries":[{"binary_name":"leptonica-progs","binary_version":"1.75.3-3"},{"binary_version":"1.75.3-3","binary_name":"liblept5"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-7440.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}