{"id":"CVE-2018-3836","aliases":["DEBIAN-CVE-2018-3836","DLA-1284-1","EUVD-2018-15622","GHSA-jv24-gr2j-qp4r","MGASA-2018-0154","MGASA-2018-0279","UBUNTU-CVE-2018-3836","USN-4819-1","openSUSE-SU-2024:10914-1"],"status":"published","title":"An exploitable command injection vulnerability exists in the gplotMakeOutput function of...","description":"An exploitable command injection vulnerability exists in the gplotMakeOutput function of Leptonica 1.74.4. A specially crafted gplot rootname argument can cause a command injection resulting in arbitrary code execution. An attacker can provide a malicious path as input to an application that passes attacker data to this function to trigger this vulnerability.","severity":{"version":"3.0","score":7,"vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-07","score":0.01429,"percentile":0.73166,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-78"],"published":"2018-02-15T00:00:00Z","modified":"2026-10-24T10:30:20Z","fixes":[{"ecosystem":"Debian:12","package":"leptonlib","fixed_in":["1.75.3-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"leptonlib","fixed_in":["1.75.3-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"leptonlib","fixed_in":["1.75.3-1"],"sources":["osv"]},{"ecosystem":"Debian:7","package":"leptonlib","fixed_in":["1.69-3.1+deb7u1"],"sources":["osv"]},{"ecosystem":"Mageia:6","package":"leptonica","fixed_in":["1.75.2-1.mga6"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:14.04:LTS","package":"leptonlib","fixed_in":["1.70.1-1ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"leptonlib","fixed_in":["1.73-1ubuntu0.1~esm1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"leptonlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.75.3-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"leptonlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.75.3-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"leptonlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.75.3-1"}]}]},{"source":"osv","ecosystem":"Debian:7","package":"leptonlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.69-3.1+deb7u1"}]}],"versions":["1.69-3.1"]},{"source":"osv","ecosystem":"Mageia:6","package":"leptonica","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.75.2-1.mga6"}]}]},{"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:14.04:LTS","package":"leptonlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.70.1-1ubuntu0.1~esm1"}]}],"versions":["1.69-4ubuntu1","1.69-4ubuntu2","1.69-4ubuntu3","1.69-4ubuntu4","1.70.1-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"leptonlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.73-1ubuntu0.1~esm1"}]}],"versions":["1.72-3","1.72-3build1","1.73-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"leptonlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.70.1-1ubuntu0.1~esm1"}]}],"versions":["1.69-4ubuntu1","1.69-4ubuntu2","1.69-4ubuntu3","1.69-4ubuntu4","1.70.1-1"],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"leptonlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.73-1ubuntu0.1~esm1"}]}],"versions":["1.72-3","1.72-3build1","1.73-1"],"bundled":3},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"leptonica","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.80.0-1.9"}]}],"bundled":7}],"products":[{"vendor":"dan bloomberg","product":"leptonica"},{"vendor":"debian","product":"debian_linux"},{"vendor":"leptonica","product":"leptonica"}],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2018/02/msg00019.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://www.talosintelligence.com/vulnerability_reports/TALOS-2018-0516","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-3836"},{"url":"https://github.com/advisories/GHSA-jv24-gr2j-qp4r"},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-3836","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2018-0154.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=22591","tags":["report"]},{"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://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-3836","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-3836","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-4819-1","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2017-18196","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-7186","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-3836","description":"An exploitable command injection vulnerability exists in the gplotMakeOutput function of Leptonica 1.74.4. A specially crafted gplot rootname argument can cause a command injection resulting in arbitrary code execution. An attacker can provide a malicious path as input to an application that passes attacker data to this function to trigger this vulnerability.","status":"published","published":"2018-04-24T19:00:00Z","modified":"2024-09-16T16:22:40.419Z","cvss":[{"version":"3.0","score":7,"vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"updated_at":"2026-11-02T14:35:05.619113Z"}],"euvd":[{"id":"EUVD-2018-15622","description":"An exploitable command injection vulnerability exists in the gplotMakeOutput function of Leptonica 1.74.4. A specially crafted gplot rootname argument can cause a command injection resulting in arbitrary code execution. An attacker can provide a malicious path as input to an application that passes attacker data to this function to trigger this vulnerability.","status":"published","published":"2018-04-24T19:00:00Z","modified":"2024-09-16T16:22:40Z","cvss":[{"version":"3.0","score":7,"vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T00:55:52.590586Z"}],"ghsa":[{"id":"GHSA-jv24-gr2j-qp4r","title":"An exploitable command injection vulnerability exists in the gplotMakeOutput function of...","description":"An exploitable command injection vulnerability exists in the gplotMakeOutput function of Leptonica 1.74.4. A specially crafted gplot rootname argument can cause a command injection resulting in arbitrary code execution. An attacker can provide a malicious path as input to an application that passes attacker data to this function to trigger this vulnerability.","status":"published","published":"2022-05-13T01:02:08Z","modified":"2023-02-01T05:02:30Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:49:55.565803Z"}],"nvd":[{"id":"CVE-2018-3836","description":"An exploitable command injection vulnerability exists in the gplotMakeOutput function of Leptonica 1.74.4. A specially crafted gplot rootname argument can cause a command injection resulting in arbitrary code execution. An attacker can provide a malicious path as input to an application that passes attacker data to this function to trigger this vulnerability.","status":"published","published":"2018-04-24T19:29:03.97Z","modified":"2026-06-17T01:57:52.42Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"3.0","score":7,"vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"2.0","score":7.2,"vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:04:26.098615Z"}],"osv":[{"id":"CVE-2018-3836","description":"An exploitable command injection vulnerability exists in the gplotMakeOutput function of Leptonica 1.74.4. A specially crafted gplot rootname argument can cause a command injection resulting in arbitrary code execution. An attacker can provide a malicious path as input to an application that passes attacker data to this function to trigger this vulnerability.","status":"published","published":"2018-04-24T19:29:03.97Z","modified":"2026-10-24T10:30:20.434304202Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:09.442568Z"},{"id":"DEBIAN-CVE-2018-3836","description":"An exploitable command injection vulnerability exists in the gplotMakeOutput function of Leptonica 1.74.4. A specially crafted gplot rootname argument can cause a command injection resulting in arbitrary code execution. An attacker can provide a malicious path as input to an application that passes attacker data to this function to trigger this vulnerability.","status":"published","published":"2018-04-24T19:29:03.97Z","modified":"2026-10-23T18:03:06.173354673Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:30.867575Z"},{"id":"UBUNTU-CVE-2018-3836","description":"An exploitable command injection vulnerability exists in the gplotMakeOutput function of Leptonica 1.74.4. A specially crafted gplot rootname argument can cause a command injection resulting in arbitrary code execution. An attacker can provide a malicious path as input to an application that passes attacker data to this function to trigger this vulnerability.","status":"published","published":"2018-04-24T19:29:00Z","modified":"2026-04-22T11:55:01.059023Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"},{"version":"3.0","score":7,"vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"},{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:18.33562Z"},{"id":"DLA-1284-1","title":"leptonlib - security update","status":"published","published":"2018-02-15T00:00:00Z","modified":"2026-03-09T01:01:24.830898Z","updated_at":"2026-11-02T15:46:09.336894Z"},{"id":"MGASA-2018-0154","title":"Updated leptonica packages fix a security vulnerability","description":"Package leptonica has been updated to the current stable version 1.75.2 which \nfixes a security issue (potential injection attack using gplot rootdir) reported \nin CVE-2018-3836.\n","status":"published","published":"2018-03-01T21:27:52Z","modified":"2026-04-16T06:23:37.103878369Z","updated_at":"2026-11-02T15:49:40.442238Z"},{"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"},{"id":"USN-4819-1","title":"leptonlib vulnerabilities","description":"It was discovered that Leptonica incorrectly handled path names. An\nattacker could possibly use this issue to obtain sensitive information.\nThis issue only affected Ubuntu 16.04 ESM. (CVE-2017-18196)\n\nIt was discovered that Leptonica incorrectly handled certain input\narguments. An attacker could possibly use this issue to execute arbitrary\ncommands. (CVE-2018-3836)\n\nIt was discovered that Leptonica incorrectly handled input arguments. An\nattacker could possibly use this issue to cause a denial of service or\nother unspecified impact. (CVE-2018-7186)\n","status":"published","published":"2021-03-15T21:56:16Z","modified":"2026-06-29T13:48:30.87407995Z","updated_at":"2026-11-02T16:58:15.159055Z"}]}}
