{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-119338","id":"CVE-2026-119338","title":"Tesseract use-after-free in PAGE XML polygon rendering","description":"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 LEVELFL","descriptionLong":"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.","published":"2026-10-30T20:12:29.030Z","updated":"2026-11-06T01:07:28.544314576Z","reserved":"2026-10-29T20:44:30.286Z","status":"Awaiting Analysis","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":6.9,"vector":"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","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"4.0","score":6.9,"vector":"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","rating":"medium","source":"GitHub_M"},{"version":"4.0","score":6.9,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"medium","source":"github.com"},{"version":"4.0","score":null,"vector":"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","rating":"unrated","source":"OSV"}],"rating":"medium","products":["tesseract-ocr tesseract"],"affectedProducts":[{"vendor":"tesseract-ocr","product":"tesseract","defaultStatus":null,"versions":[{"version":">= 5.4.0, < 5.5.4","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-125","CWE-415","CWE-416"],"aliases":["GHSA-vf7v-2h4f-6f4j"],"references":[{"url":"https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-vf7v-2h4f-6f4j","tags":["x_refsource_CONFIRM","exploit","advisory"]},{"url":"https://github.com/tesseract-ocr/tesseract/pull/4647","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/tesseract-ocr/tesseract/commit/fa52414ff1fd13ae4b00048d2498f9141b0bc2eb","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/tesseract-ocr/tesseract/releases/tag/5.5.4","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119338.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-119338","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00138,"epssPercentile":0.03282,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-119338","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-119338","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-119338","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-119338","ok":true,"note":"scored 2026-11-19"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}