CVE-2026-119339: Tesseract: Crafted LSTM model (`WeightMatrix` mode byte) triggers `ASSERT_HOST` abort in `WeightMatrix::DeSerializeOld` under `FAST_FLOAT` — Denial of Service
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 FASTFLOAT builds, DeSerializeOld invokes ASSERTHOST 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.
Other sources
Tesseract: Crafted LSTM model (WeightMatrix mode byte) triggers ASSERTHOST abort in WeightMatrix::DeSerializeOld under FASTFLOAT — Denial of Service
— Microsoft
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/tesseractto a version that resolves this vulnerability.Fixed in 5.5.4-1 - Upgrade
Upgrade
azurelinux/tesseractto a version that resolves this vulnerability.Fixed in 0:5.5.4-8.azl4 - Upgrade
Upgrade
tesseractto a version that resolves this vulnerability.Fixed in 5.5.4
Event History
Frequently Asked Questions
Which deployments are most likely to be exposed?
Deployments using Tesseract versions before 5.5.4 that load traineddata LSTM networks are affected. Default FAST_FLOAT builds are specifically vulnerable because the malformed mode byte reaches an ASSERT_HOST abort.
What must an attacker be able to do to trigger the denial of service?
An attacker needs to cause the application to load a crafted traineddata LSTM model through TessBaseAPI::Init. The issue is triggered by a malicious WeightMatrix mode byte in that model, rather than by OCR input alone.
How can I determine whether my application is potentially affected?
It is potentially affected if it uses Tesseract earlier than 5.5.4, is built with FAST_FLOAT, and accepts or loads traineddata models from an untrusted source. A successful trigger terminates the process during model initialization.
What is the available remediation?
Upgrade Tesseract to version 5.5.4, which fixes the issue. Until upgraded, avoid loading untrusted traineddata LSTM models.