{"id":"UBUNTU-CVE-2026-119338","details":"Tesseract is an open source OCR engine. From 5.4.0 until 5.5.4, AppendLinePolygon in src/api/pagerenderer.cpp destroys the caller-owned right-to-left Pta accumulator while receiving it by value, leaving line_top_rtl_pts and line_bottom_rtl_pts dangling. On an upright Hebrew or Arabic page at the default PAGE XML level, POLYGONFLAG with a false skewed_flag enters the vulnerable calls, while LEVELFLAG greater than zero provides an alternative gate. The calls repeatedly read and free the stale object, causing a double free and use after free and allowing corrupted coordinates to reach RecalcPolygonline. This issue is fixed in version 5.5.4.","modified":"2026-11-04T03:30:25.585249715Z","published":"2026-11-03T00:00:00Z","upstream":["CVE-2026-119338"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-119338"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-119338"},{"type":"REPORT","url":"https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-vf7v-2h4f-6f4j"},{"type":"REPORT","url":"https://github.com/tesseract-ocr/tesseract/pull/4647"},{"type":"REPORT","url":"https://github.com/tesseract-ocr/tesseract/commit/fa52414ff1fd13ae4b00048d2498f9141b0bc2eb"},{"type":"REPORT","url":"https://github.com/tesseract-ocr/tesseract/releases/tag/5.5.4"}],"affected":[{"package":{"name":"tesseract","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/tesseract?arch=source&distro=esm-infra-legacy%2Ftrusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.02.02-1","3.03.02-3","3.03.02-3ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.03.02-3ubuntu0.1~esm1","binary_name":"libtesseract3"},{"binary_name":"tesseract-ocr","binary_version":"3.03.02-3ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-119338.json"}},{"package":{"name":"tesseract","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/tesseract?arch=source&distro=esm-apps-legacy%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.04.00-5ubuntu1","3.04.01-2","3.04.01-4","3.04.01-4ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"libtesseract3","binary_version":"3.04.01-4ubuntu0.1~esm1"},{"binary_name":"tesseract-ocr","binary_version":"3.04.01-4ubuntu0.1~esm1"},{"binary_name":"tesseract-ocr-all","binary_version":"3.04.01-4ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-119338.json"}},{"package":{"name":"tesseract","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/tesseract?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.04.01-6","3.04.01-6build1","3.04.01-6build2","4.00~git2188-cdc35338-4build1","4.00~git2188-cdc35338-5","4.00~git2207-766b7bd6-3.1","4.00~git2219-40f43111-1.2","4.00~git2288-10f4998a-2","4.00~git2288-10f4998a-2ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"libtesseract4","binary_version":"4.00~git2288-10f4998a-2ubuntu0.1~esm1"},{"binary_name":"tesseract-ocr","binary_version":"4.00~git2288-10f4998a-2ubuntu0.1~esm1"},{"binary_name":"tesseract-ocr-all","binary_version":"4.00~git2288-10f4998a-2ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-119338.json"}},{"package":{"name":"tesseract","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/tesseract?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.1.0-1","4.1.0-2","4.1.1-1","4.1.1-2","4.1.1-2build1","4.1.1-2build2","4.1.1-2ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"4.1.1-2ubuntu0.1~esm1","binary_name":"libtesseract4"},{"binary_name":"tesseract-ocr","binary_version":"4.1.1-2ubuntu0.1~esm1"},{"binary_version":"4.1.1-2ubuntu0.1~esm1","binary_name":"tesseract-ocr-all"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-119338.json"}},{"package":{"name":"tesseract","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/tesseract?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.1.1-2.1","4.1.1-2.1build1","4.1.1-2.1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"libtesseract4","binary_version":"4.1.1-2.1ubuntu0.1~esm1"},{"binary_version":"4.1.1-2.1ubuntu0.1~esm1","binary_name":"tesseract-ocr"},{"binary_name":"tesseract-ocr-all","binary_version":"4.1.1-2.1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-119338.json"}},{"package":{"name":"tesseract","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/tesseract?arch=source&distro=esm-apps%2Fnoble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.3.0-2build1","5.3.3-1","5.3.3-1build1","5.3.4-1","5.3.4-1build3","5.3.4-1build4","5.3.4-1build5","5.3.4-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"5.3.4-1ubuntu0.1~esm1","binary_name":"libtesseract5"},{"binary_name":"tesseract-ocr","binary_version":"5.3.4-1ubuntu0.1~esm1"},{"binary_name":"tesseract-ocr-all","binary_version":"5.3.4-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-119338.json"}},{"package":{"name":"tesseract","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/tesseract?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.5.0-1build1","5.5.0-1.1"],"ecosystem_specific":{"binaries":[{"binary_version":"5.5.0-1.1","binary_name":"libtesseract5"},{"binary_name":"tesseract-ocr","binary_version":"5.5.0-1.1"},{"binary_name":"tesseract-ocr-all","binary_version":"5.5.0-1.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-119338.json"}},{"package":{"name":"tesseract","ecosystem":"Ubuntu:Pro:26.04:LTS","purl":"pkg:deb/ubuntu/tesseract?arch=source&distro=esm-apps%2Fresolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.5.0-1","5.5.0-1build1","5.5.0-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"5.5.0-1ubuntu0.1~esm1","binary_name":"libtesseract5"},{"binary_name":"tesseract-ocr","binary_version":"5.5.0-1ubuntu0.1~esm1"},{"binary_name":"tesseract-ocr-all","binary_version":"5.5.0-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-119338.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}