All reports
Medium

tesseract: Tesseract: Denial of service via crafted trained model file

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-119339

Probability of exploitation in the next 30 days: 0.17%

FIRST EPSS · 2026-11-22

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.

A flaw was found in Tesseract. When loading a specially crafted trained model file, the engine fails to properly validate neural network configuration data, triggering an unhandled assertion failure instead of returning an error. A local attacker or application consumer could exploit this by supplying a malicious model file, causing the process to terminate unexpectedly and resulting in a denial of service (DoS).