{"id":"CVE-2018-7247","aliases":["DEBIAN-CVE-2018-7247","EUVD-2018-18986","GHSA-29q2-994c-m8hr","MGASA-2018-0175","UBUNTU-CVE-2018-7247","USN-5143-1","openSUSE-SU-2024:10914-1"],"status":"published","title":"An issue was discovered in pixHtmlViewer in prog/htmlviewer.c in Leptonica before 1.75.3....","description":"An issue was discovered in pixHtmlViewer in prog/htmlviewer.c in Leptonica before 1.75.3. Unsanitized input (rootname) can overflow a buffer, leading potentially to arbitrary code execution or possibly unspecified other impact.","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.02466,"percentile":0.84579,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-119"],"published":"2018-02-19T18:00:00Z","modified":"2026-10-23T18:03:08Z","fixes":[{"ecosystem":"Debian:12","package":"leptonlib","fixed_in":["1.76.0-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"leptonlib","fixed_in":["1.76.0-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"leptonlib","fixed_in":["1.76.0-1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"leptonlib","fixed_in":["1.75.3-3ubuntu0.1~esm1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"leptonlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.76.0-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"leptonlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.76.0-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"leptonlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.76.0-1"}]}]},{"source":"osv","ecosystem":"Mageia:6","package":"leptonica","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.75.3-1.mga6"}]}],"bundled":2},{"source":"osv","ecosystem":"Mageia:6","package":"mingw-leptonica","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.75.3-1.mga6"}]}],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"leptonlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.75.3-3ubuntu0.1~esm1"}]}],"versions":["1.74.4-1","1.74.4-2","1.75.3-1","1.75.3-2","1.75.3-3"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"leptonlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.75.3-3ubuntu0.1~esm1"}]}],"versions":["1.74.4-1","1.74.4-2","1.75.3-1","1.75.3-2","1.75.3-3"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"leptonica","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.80.0-1.9"}]}],"bundled":7}],"products":[{"vendor":"leptonica","product":"leptonica"}],"references":[{"url":"https://github.com/DanBloomberg/leptonica/commit/c1079bb8e77cdd426759e466729917ca37a3ed9f","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-7247"},{"url":"https://github.com/advisories/GHSA-29q2-994c-m8hr"},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-7247","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2018-0175.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=22742","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2018-7247","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-5143-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-7247","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-7247","description":"An issue was discovered in pixHtmlViewer in prog/htmlviewer.c in Leptonica before 1.75.3. Unsanitized input (rootname) can overflow a buffer, leading potentially to arbitrary code execution or possibly unspecified other impact.","status":"published","published":"2018-02-19T18:00:00Z","modified":"2024-09-16T16:28:55.269Z","updated_at":"2026-11-02T14:35:10.313768Z"}],"euvd":[{"id":"EUVD-2018-18986","description":"An issue was discovered in pixHtmlViewer in prog/htmlviewer.c in Leptonica before 1.75.3. Unsanitized input (rootname) can overflow a buffer, leading potentially to arbitrary code execution or possibly unspecified other impact.","status":"published","published":"2018-02-19T18:00:00Z","modified":"2024-09-16T16:28:55Z","updated_at":"2026-11-03T00:55:51.136895Z"}],"ghsa":[{"id":"GHSA-29q2-994c-m8hr","title":"An issue was discovered in pixHtmlViewer in prog/htmlviewer.c in Leptonica before 1.75.3....","description":"An issue was discovered in pixHtmlViewer in prog/htmlviewer.c in Leptonica before 1.75.3. Unsanitized input (rootname) can overflow a buffer, leading potentially to arbitrary code execution or possibly unspecified other impact.","status":"published","published":"2022-05-14T03:38:25Z","modified":"2023-02-02T05:08:01Z","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-119"],"updated_at":"2026-11-02T14:52:38.632929Z"}],"nvd":[{"id":"CVE-2018-7247","description":"An issue was discovered in pixHtmlViewer in prog/htmlviewer.c in Leptonica before 1.75.3. Unsanitized input (rootname) can overflow a buffer, leading potentially to arbitrary code execution or possibly unspecified other impact.","status":"published","published":"2018-02-19T18:29:00.367Z","modified":"2026-06-17T02:02:52.147Z","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-119"],"updated_at":"2026-11-02T14:04:23.783914Z"}],"osv":[{"id":"CVE-2018-7247","description":"An issue was discovered in pixHtmlViewer in prog/htmlviewer.c in Leptonica before 1.75.3. Unsanitized input (rootname) can overflow a buffer, leading potentially to arbitrary code execution or possibly unspecified other impact.","status":"published","published":"2018-02-19T18:29:00.367Z","modified":"2026-10-20T13:35:02.589449882Z","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-7247","description":"An issue was discovered in pixHtmlViewer in prog/htmlviewer.c in Leptonica before 1.75.3. Unsanitized input (rootname) can overflow a buffer, leading potentially to arbitrary code execution or possibly unspecified other impact.","status":"published","published":"2018-02-19T18:29:00.367Z","modified":"2026-10-23T18:03:08.763002288Z","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-7247","description":"An issue was discovered in pixHtmlViewer in prog/htmlviewer.c in Leptonica before 1.75.3. Unsanitized input (rootname) can overflow a buffer, leading potentially to arbitrary code execution or possibly unspecified other impact.","status":"published","published":"2018-02-19T18:29:00Z","modified":"2026-04-22T12:02:25.842418Z","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":"MGASA-2018-0175","title":"Updated leptonica packages fix security vulnerabilities","description":"Package leptonica has been updated to the current stable version 1.75.3\nwhich fixes:\n\nCVE-2018-7186 - multiple stack-based buffer overflows in gplotRead()\nand ptaReadStream()\n\nCVE-2018-7247 - a buffer overflow in src/viewfiles.c with unsanitized\ninput (rootname)\n","status":"published","published":"2018-03-19T12:13:14Z","modified":"2026-04-16T06:24:09.119611457Z","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-5143-1","title":"leptonlib vulnerability","description":"It was discovered that Leptonica incorrectly handled certain image files. An\nattacker could possibly use this issue to execute arbitrary code or other\nunspecified impact.\n","status":"published","published":"2022-02-08T09:57:31Z","modified":"2026-04-22T10:18:53.743216Z","updated_at":"2026-11-02T16:58:15.683829Z"}]}}
