{"id":"UBUNTU-CVE-2018-7442","details":"An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function does not block '/' characters in the gplot rootname argument, potentially leading to path traversal and arbitrary file overwrite.","modified":"2025-09-08T16:44:47Z","published":"2018-02-23T21:29:00Z","upstream":["CVE-2018-7442"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-7442"},{"type":"REPORT","url":"https://lists.debian.org/debian-lts/2018/02/msg00086.html"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-7442"}],"affected":[{"package":{"name":"leptonlib","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/leptonlib@1.70.1-1ubuntu0.1~esm1?arch=source&distro=esm-infra-legacy/trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.69-4ubuntu1","1.69-4ubuntu2","1.69-4ubuntu3","1.69-4ubuntu4","1.70.1-1","1.70.1-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.70.1-1ubuntu0.1~esm1","binary_name":"leptonica-progs"},{"binary_version":"1.70.1-1ubuntu0.1~esm1","binary_name":"liblept4"},{"binary_version":"1.70.1-1ubuntu0.1~esm1","binary_name":"libleptonica-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-7442.json"}},{"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_version":"1.73-1ubuntu0.1~esm1","binary_name":"leptonica-progs"},{"binary_version":"1.73-1ubuntu0.1~esm1","binary_name":"liblept5"},{"binary_version":"1.73-1ubuntu0.1~esm1","binary_name":"libleptonica-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-7442.json"}},{"package":{"name":"leptonlib","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/leptonlib@1.75.3-3ubuntu0.1~esm1?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.74.4-1","1.74.4-2","1.75.3-1","1.75.3-2","1.75.3-3","1.75.3-3ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.75.3-3ubuntu0.1~esm1","binary_name":"leptonica-progs"},{"binary_version":"1.75.3-3ubuntu0.1~esm1","binary_name":"liblept5"},{"binary_version":"1.75.3-3ubuntu0.1~esm1","binary_name":"libleptonica-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-7442.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"},{"type":"Ubuntu","score":"medium"}]}