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 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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| tesseract-ocr | tesseract | >= 5.4.0, < 5.5.4 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | tesseract | No fix yet | — |
| Debian 13 | tesseract | No fix yet | — |
| Debian 12 | tesseract | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | tesseract | No fix yet | — |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 26.04 LTS | tesseract | No fix yet | — |
| Ubuntu Pro 24.04 LTS | tesseract | No fix yet | — |
| Ubuntu Pro 22.04 LTS | tesseract | No fix yet | — |
| Ubuntu Pro 20.04 LTS | tesseract | No fix yet | — |
| Ubuntu Pro 18.04 LTS | tesseract | No fix yet | — |
| Ubuntu Pro 16.04 LTS | tesseract | No fix yet | — |
| Ubuntu Pro 14.04 LTS | tesseract | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | tesseract-ocr | 5.5.4-2.1 | openSUSE-SU-2026:12411-1 |
Advisories 1
- openSUSE-SU-2026:12411-1 libtesseract5-5.5.4-2.1 on GA media SUSE / openSUSE Security Updates · Nov 4, 2026