Public vulnerability disclosure

CVE-2026-119338

Tesseract: Double free and use after free in the PAGE XML renderer on right-to-left pages

publishedCWE-125CWE-415CWE-416

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.

Technical severity6.9 mediumCVSS 4.0 · CNA: GitHub_M
Published2026-10-30Source updated 2026-11-05
Collected2026-11-054 attributed sources

Fixes and workarounds

Fix

tesseract (other): GitHub reports patched versions 5.5.4. Check the advisory for the affected release branch.

Source: GitHub GHSA-vf7v-2h4f-6f4j

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority
tesseract
tesseract-ocr
>= 5.4.0, < 5.5.4 (affected) CNA: GitHub_M
tesseract

tesseract
other
>= 5.4.0, <= 5.5.3 (affected, GitHub advisory range) GitHub GHSA-vf7v-2h4f-6f4j

Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.

CVSS assessments

CVSS scores, vectors and reporting authorities
Version / scoreVectorAuthority
4.0 / 6.9
medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:NCNA: GitHub_M
4.0 / 6.9
medium
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:XNVD: [email protected]

Exploit evidence

References

For agents and automation

Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.

Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.

Endpoints and access details

https://api.y2.dev/api/v2/cyber/cves
https://api.y2.dev/api/v2/cyber/cves/{cveId}

A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.

For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.

Agent access JSON · OpenAPI · CVE API guide