Summary
It was discovered that Tesseract incorrectly handled certain internal
string operations during character recognition. An attacker could use a
crafted input to cause a use-after-free and denial of service. This issue
only affects Ubuntu 22.04 LTS. (CVE-2021-36081)
It was discovered that Tesseract incorrectly handled certain model files
with unsupported weight matrix formats. An attacker could use a crafted
model file to cause Tesseract to abort, resulting in a denial of service.
This issue only affects Ubuntu 24.04 LTS and Ubuntu 26.04 LTS.
(CVE-2026-119339)
It was discovered that Tesseract did not properly validate matrix
dimensions when loading model files. An attacker could use a crafted
model file to cause out-of-bounds memory access, resulting in a denial
of service. (CVE-2026-119340)
It was discovered that Tesseract did not properly initialize internal
data structures when loading template files. An attacker could use a
crafted template file to cause memory corruption, resulting in a denial
of service. (CVE-2026-119341)
Fixed packages 3
| Release | Package | Fixed in |
|---|---|---|
| Ubuntu · Pro 22.04 LTS Pro:22.04:LTS | tesseract | 4.1.1-2.1ubuntu0.1~esm2 |
| Ubuntu · Pro 24.04 LTS Pro:24.04:LTS | tesseract | 5.3.4-1ubuntu0.1~esm2 |
| Ubuntu · Pro 26.04 LTS Pro:26.04:LTS | tesseract | 5.5.0-1ubuntu0.1~esm2 |
Vulnerabilities 4
-
Medium 5.5
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 FAST_FLOAT builds, DeSerializeOld invokes ASSERT_…
-
Medium 5.5
Tesseract: GENERIC_2D_ARRAY DeSerializeSize signed integer comparison bypass allows negative dimensions
Tesseract is an open source OCR engine. Prior to 5.5.4, GENERIC_2D_ARRAY::DeSerializeSize in src/ccstruct/matrix.h reads matrix dimensions as signed int32_t values and compares them only with UINT16_MAX, allowing negative values to reach ResizeNoInit. Negativ…
-
None 0.0
Tesseract: File-controlled pointers still reach `delete` in ADAPT_CLASS_STRUCT destructor
Tesseract is an open source OCR engine. Prior to 5.5.4, ReadAdaptedClass in src/classify/adaptive.cpp raw-reads an ADAPT_CLASS_STRUCT from a pre-adapted-template .a file without neutralizing TempProtos and Config pointer fields before any destructor path. Whe…
-
Unscored —
Tesseract OCR 5.0.0-alpha-20201231 has a one_ell_conflict use-after-free during a strpbrk call.