{"id":"UBUNTU-CVE-2018-7186","details":"Leptonica before 1.75.3 does not limit the number of characters in a %s format argument to fscanf or sscanf, which allows remote attackers to cause a denial of service (stack-based buffer overflow) or possibly have unspecified other impact via a long string, as demonstrated by the gplotRead and ptaReadStream functions.","modified":"2026-04-22T12:03:04.854375Z","published":"2018-02-16T16:29:00Z","related":["USN-4819-1"],"upstream":["CVE-2018-7186"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-7186"},{"type":"REPORT","url":"https://github.com/DanBloomberg/leptonica/commit/ee301cb2029db8a6289c5295daa42bba7715e99a"},{"type":"REPORT","url":"https://bugs.debian.org/890548"},{"type":"REPORT","url":"https://lists.debian.org/debian-lts/2018/02/msg00054.html"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-7186"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4819-1"}],"affected":[{"package":{"name":"leptonlib","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/leptonlib@1.70.1-1ubuntu0.1~esm1?arch=source&distro=trusty/esm"},"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"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_version":"1.70.1-1ubuntu0.1~esm1","binary_name":"leptonica-progs"},{"binary_name":"liblept4","binary_version":"1.70.1-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-7186.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"},{"fixed":"1.73-1ubuntu0.1~esm1"}]}],"versions":["1.72-3","1.72-3build1","1.73-1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","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-7186.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"}]}