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.
Published: 2026-10-30
Score: 5.5 Medium
EPSS: n/a
KEV: No
Impact: Denial of Service
Action: Apply Patch
AI Analysis

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.

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

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 yet.

History

Sat, 31 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Fri, 30 Oct 2026 20:30:00 +0000

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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-30T22:13:31.619Z

Reserved: 2026-10-29T20:44:30.286Z

Link: CVE-2026-119339

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-30T21:16:51.940

Modified: 2026-10-30T23:17:09.800

Link: CVE-2026-119339

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-30T20:13:37Z

Links: CVE-2026-119339 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-30T22:00:15Z

Weaknesses