CVE-2026-119339

Tesseract: Crafted LSTM model (`WeightMatrix` mode byte) triggers `ASSERT_HOST` abort in `WeightMatrix::DeSerializeOld` under `FAST_FLOAT` — Denial of Service

Published Oct 30, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
Tesseract is an open source OCR engine. Prior to 5.5.4, WeightMatrix::DeSerialize trusts a mode byte from a traineddata LSTM network and calls WeightMatrix::DeSerializeOld when kDoubleFlag is clear. In default FAST_FLOAT builds, DeSerializeOld invokes ASSERT_HOST instead of returning an error, so loading a crafted model through TessBaseAPI::Init terminates the process and causes denial of service. This issue is fixed in version 5.5.4.

Analysis

AI-generated

Technical impact

A crafted long short-term memory (LSTM) model file can exploit a boundary check flaw in Tesseract’s WeightMatrix::DeSerializeOld function when compiled with the FAST_FLOAT flag. The function trusts a mode byte from a traineddata file and, upon detecting an unset kDoubleFlag, triggers ASSERT_HOST instead of returning an error. The assert causes the process to abort, so any application that loads the malicious model through TessBaseAPI::Init will terminate, resulting in a denial of service. The weakness is a classic input validation error (CWE‑20) coupled with unsafe procedure routing (CWE‑617).

Affected Systems

The vulnerability affects all tesseract‑ocr tesseract releases prior to version 5.5.4. Users running older builds on systems that load custom LSTM models are susceptible if the application passes untrusted files to the OCR engine.

Risk and Exploitability

The CVSS score of 5.5 indicates a medium severity, and the EPSS score is currently unavailable. The vulnerability is not listed in the CISA KEV catalog. The attack likely requires an adversary who can supply a crafted model file to an instance of Tesseract, such as via an application that accepts user‑supplied traineddata or by embedding the malicious file into software that uses Tesseract. The exploit results only in service interruption and does not directly compromise confidentiality or integrity, but it can be used to cause disruption in environments where OCR is critical.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Tesseract to version 5.5.4 or later to remove the vulnerable code path.
  • If an upgrade is not possible, avoid loading LSTM model files from untrusted or external sources; validate file signatures or run Tesseract in a sandboxed environment.
  • Configure a watchdog or restart mechanism to automatically recover the OCR service after a crash, minimizing downtime.

Generated by OpenCVE AI on October 30, 2026 at 21:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Tesseract-ocr
Tesseract-ocr tesseract Ocr
Vendors & Products Tesseract-ocr
Tesseract-ocr tesseract Ocr
Type Values Removed Values Added
Description Tesseract is an open source OCR engine. Prior to 5.5.4, WeightMatrix::DeSerialize trusts a mode byte from a traineddata LSTM network and calls WeightMatrix::DeSerializeOld when kDoubleFlag is clear. In default FAST_FLOAT builds, DeSerializeOld invokes ASSERT_HOST instead of returning an error, so loading a crafted model through TessBaseAPI::Init terminates the process and causes denial of service. This issue is fixed in version 5.5.4.
Title Tesseract: Crafted LSTM model (`WeightMatrix` mode byte) triggers `ASSERT_HOST` abort in `WeightMatrix::DeSerializeOld` under `FAST_FLOAT` — Denial of Service
Weaknesses CWE-20
CWE-617
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 30, 2026, 10:13 PM
Reserved
Oct 29, 2026, 8:44 PM
Status
Awaiting Analysis
Published
Oct 30, 2026, 9:16 PM
Modified
Nov 2, 2026, 7:14 PM
Severity
Moderate
Public date
Oct 30, 2026, 8:13 PM