{"id":"CVE-2018-7440","aliases":["DEBIAN-CVE-2018-7440","DLA-1302-1","EUVD-2018-19171","GHSA-x83x-c4xw-rr5g","MGASA-2018-0279","UBUNTU-CVE-2018-7440","openSUSE-SU-2024:10914-1"],"status":"published","title":"An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function allows command...","description":"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.","severity":{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.03739,"percentile":0.89912,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-78"],"published":"2018-02-23T00:00:00Z","modified":"2026-10-23T18:03:08Z","fixes":[{"ecosystem":"Debian:12","package":"leptonlib","fixed_in":["1.75.3-3"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"leptonlib","fixed_in":["1.75.3-3"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"leptonlib","fixed_in":["1.75.3-3"],"sources":["osv"]},{"ecosystem":"Ubuntu:18.04:LTS","package":"leptonlib","fixed_in":["1.75.3-3"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"leptonlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.75.3-3"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"leptonlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.75.3-3"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"leptonlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.75.3-3"}]}]},{"source":"osv","ecosystem":"Debian:7","package":"leptonlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.69-3.1+deb7u2"}]}],"versions":["1.69-3.1","1.69-3.1+deb7u1"],"bundled":2},{"source":"osv","ecosystem":"Mageia:6","package":"leptonica","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.76.0-1.mga6"}]}],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"leptonlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.72-3","1.72-3build1","1.73-1","1.73-1ubuntu0.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"leptonlib","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"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"leptonica","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.80.0-1.9"}]}],"bundled":7}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"leptonica","product":"leptonica"}],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2018/03/msg00005.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://github.com/DanBloomberg/leptonica/issues/303#issuecomment-366472212","tags":["x_transferred","Third Party Advisory","advisory","report"]},{"url":"https://security.gentoo.org/glsa/202312-01","tags":["vendor-advisory","x_transferred","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-7440"},{"url":"https://github.com/advisories/GHSA-x83x-c4xw-rr5g"},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-7440","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2018-0279.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=23130","tags":["report"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=22591","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1549735","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1549729","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-7440","tags":["report"]},{"url":"https://github.com/DanBloomberg/leptonica/pull/313/commits/49ecb6c2dfd6ed5078c62f4a8eeff03e3beced3b","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-7440","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2017-18196","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-3836","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-7186","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-7247","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-7440","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-7441","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-7442","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2018-7440","description":"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.","status":"published","published":"2018-02-23T00:00:00Z","modified":"2024-08-05T06:24:12.006Z","updated_at":"2026-11-02T14:35:10.313768Z"}],"euvd":[{"id":"EUVD-2018-19171","description":"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.","status":"published","published":"2018-02-23T00:00:00Z","modified":"2024-08-05T06:24:12Z","updated_at":"2026-11-03T02:40:05.625439Z"}],"ghsa":[{"id":"GHSA-x83x-c4xw-rr5g","title":"An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function allows command...","description":"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.","status":"published","published":"2022-05-13T01:53:22Z","modified":"2023-02-02T05:02:24Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:51:26.066709Z"}],"nvd":[{"id":"CVE-2018-7440","description":"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.","status":"published","published":"2018-02-23T21:29:00.6Z","modified":"2026-06-17T02:03:07.837Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:04:23.783914Z"}],"osv":[{"id":"CVE-2018-7440","description":"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.","status":"published","published":"2018-02-23T21:29:00.6Z","modified":"2026-10-20T10:50:30.066803462Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:09.74357Z"},{"id":"DEBIAN-CVE-2018-7440","description":"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.","status":"published","published":"2018-02-23T21:29:00.6Z","modified":"2026-10-23T18:03:08.833465511Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:30.867575Z"},{"id":"UBUNTU-CVE-2018-7440","description":"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.","status":"published","published":"2018-02-23T21:29:00Z","modified":"2026-04-22T12:03:19.53521Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:18.772093Z"},{"id":"DLA-1302-1","title":"leptonlib - security update","status":"published","published":"2018-03-07T00:00:00Z","modified":"2026-03-09T01:02:05.180758Z","updated_at":"2026-11-02T15:46:09.336894Z"},{"id":"MGASA-2018-0279","title":"Updated leptonica packages fix security vulnerabilities","description":"This update fixes a security issue (potential injection attack using gplot \nrootdir) originally reported in CVE-2018-3836.\n\nThis fix was incomplete and again reported in CVE-2018-7440 and CVE-2018-7442.\nThe improved fix is included in leptonica-1.76.0.\n","status":"published","published":"2018-06-14T18:14:36Z","modified":"2026-04-16T06:25:02.191138395Z","updated_at":"2026-11-02T15:49:40.442238Z"},{"id":"openSUSE-SU-2024:10914-1","title":"leptonica-devel-1.80.0-1.9 on GA media","description":"These are all security issues fixed in the leptonica-devel-1.80.0-1.9 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2025-05-07T18:09:40.124008Z","updated_at":"2026-11-02T16:58:34.894275Z"}]}}
