{"id":"CVE-2026-119338","published":"2026-10-30T20:12:29Z","modified":"2026-11-05T02:41:13Z","title":"Tesseract: Double free and use after free in the PAGE XML renderer on right-to-left pages","vendor":"tesseract-ocr","product":"tesseract","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00138,"percentile":0.03254,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"},{"id":"CWE-415","name":"Double Free"},{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-vf7v-2h4f-6f4j","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tesseract-ocr/tesseract/pull/4647","tags":["x_refsource_MISC"]},{"url":"https://github.com/tesseract-ocr/tesseract/commit/fa52414ff1fd13ae4b00048d2498f9141b0bc2eb","tags":["x_refsource_MISC"]},{"url":"https://github.com/tesseract-ocr/tesseract/releases/tag/5.5.4","tags":["x_refsource_MISC"]}],"priority":{"score":5.5,"factors":[{"name":"EPSS percentile","points":0.65},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"tesseract-ocr","affectedVersions":[{"vendor":"tesseract-ocr","product":"tesseract","versions":[">= 5.4.0, < 5.5.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-05T02:40:50.309406Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-114445","exploited":false,"provenance":"source"}}