#1147403 tesseract: CVE-2026-88047 CVE-2026-88048 CVE-2026-88049 CVE-2026-88050 CVE-2026-88051 CVE-2026-88052 CVE-2026-88053 CVE-2026-88054

Package:
src:tesseract
Source:
src:tesseract
Submitter:
Salvatore Bonaccorso
Date:
2026-11-09 08:37:03 UTC
Severity:
normal
Tags:
#1147403#5
Date:
2026-09-11 15:09:38 UTC
From:
To:
Hi,

The following vulnerabilities were published for tesseract.

CVE-2026-88047[0]:
| Tesseract is an open source OCR engine. In version 5.5.3 and
| earlier, Classify::ReadNormProtos in src/classify/normmatch.cpp
| parses the NORMPROTO component of a .traineddata file and uses
| std::istream::operator>>(char*) to extract a whitespace-delimited
| token into a fixed 61-byte stack buffer without setting a stream
| width. The 100-byte line buffer can carry a token of up to 99
| characters, so a token longer than 60 characters writes up to 39
| attacker-controlled bytes past the buffer during TessBaseAPI::Init
| of the legacy engine, causing stack corruption, denial of service,
| and potentially control-flow hijacking on affected standard-library
| implementations. Builds using Apple's libc++ C++20 bounded array
| overload are incidentally protected, while typical libstdc++ builds
| remain affected. No fixed release is available as of this review.


CVE-2026-88048[1]:
| Tesseract is an open source OCR engine. In version 5.5.3 and
| earlier, FullyConnected::DeSerialize in src/lstm/fullyconnected.cpp
| does not validate the deserialized layer scalars ni_ and no_ against
| the weight-matrix dimensions. During FullyConnected::Forward,
| MatrixDotVector in src/lstm/weightmatrix.cpp writes w.dim1() results
| into temp_line, which is sized from no_, and reads w.dim2() minus
| one inputs from curr_input, which is sized from ni_. A crafted
| .traineddata NT_SOFTMAX layer can therefore use inconsistent
| dimensions to cause a heap out-of-bounds write and read on the
| default LSTM engine, resulting in heap corruption, a crash,
| information disclosure, or potentially controlled corruption. No
| fixed release is available as of this review.


CVE-2026-88049[2]:
| Tesseract is an open source OCR engine. In version 5.5.3 and
| earlier, prior .traineddata hardening added bounds checks to
| NetworkIO::CopyTimeStepGeneral and NetworkIO::Randomize in
| src/lstm/networkio.cpp but left NetworkIO::WriteTimeStepPart and
| NetworkIO::AddTimeStepPart unchecked. In LSTM::Forward in
| src/lstm/lstm.cpp, source_ is sized from the independently
| deserialized na_ field while the WriteTimeStepPart count is ns_,
| which comes from the CI gate WeightMatrix dim1() value. A crafted
| NT_LSTM layer can make ns_ much larger than na_, causing a heap out-
| of-bounds write during the first recognition step on the default
| LSTM engine and resulting in heap corruption, a crash, or
| potentially controlled corruption. No fixed release is available as
| of this review.


CVE-2026-88050[3]:
| Tesseract is an open source OCR engine. In version 5.5.3 and
| earlier, RecodedCharID::DeSerialize in src/ccutil/unicharcompress.h
| validates length_ but accepts negative code_ values from a crafted
| .traineddata recoder component. UnicharCompress::ComputeCodeRange in
| src/ccutil/unicharcompress.cpp can consequently produce code_range_
| equal to zero, after which SetupDecoder indexes is_valid_start_ with
| the negative code on a size-zero vector. The resulting out-of-bounds
| bit write uses a large wrapped index and reliably causes a wild-
| address crash or allocation failure on the default LSTM engine. No
| fixed release is available as of this review.


CVE-2026-88051[4]:
| Tesseract is an open source OCR engine. In version 5.5.3 and
| earlier, the callback form of GenericVector::read in
| src/ccutil/genericvector.h reads the independent int32 fields
| reserved and size_used_ from a .traineddata model without a cap or
| an invariant check. reserve(reserved) allocates the backing array,
| but the callback loop writes size_used_ elements. A crafted
| TESSDATA_INTTEMP component with version_id 4 or later can therefore
| set reserved to a small value and size_used_ to a large value when
| fontinfo_table_.read(fp, read_info) is called from
| src/classify/intproto.cpp, causing a heap out-of-bounds write of
| FontInfo structures, heap corruption, a crash, or potentially
| controlled corruption. No fixed release is available as of this
| review.


CVE-2026-88052[5]:
| Tesseract is an open source OCR engine. In version 5.5.3 and
| earlier, UNICHARSET::load_via_fgets in src/ccutil/unicharset.cpp
| trusts the declared unichar count as a loop bound and uses id as an
| unchecked index into the unichars vector.
| unichar_insert_backwards_compatible can leave the vector unchanged
| for an empty, duplicate, or already-encodable representation,
| causing id to become larger than unichars.size(). Subsequent set_*
| calls and the write to unichars[id].properties.enabled then write
| UNICHAR_PROPERTIES beyond the vector during initialization in both
| the default LSTM and legacy engines, causing heap corruption, a
| crash, or potentially controlled corruption. No fixed release is
| available as of this review.


CVE-2026-88053[6]:
| Tesseract is an open source OCR engine. In version 5.5.3 and
| earlier, Classify::ReadIntTemplates in src/classify/intproto.cpp
| reads NumClassPruners, NumClasses, and NumProtoSets from the
| TESSDATA_INTTEMP component of a crafted .traineddata file and uses
| those values as loop bounds without validating them against
| MAX_NUM_CLASS_PRUNERS, MAX_NUM_CLASSES, and MAX_NUM_PROTO_SETS. The
| loops store heap pointers into fixed-capacity ClassPruners and
| ProtoSets arrays in INT_TEMPLATES_STRUCT and INT_CLASS_STRUCT, so an
| oversized count causes heap out-of-bounds pointer writes during
| legacy-classifier initialization before OCR begins, resulting in
| heap corruption, a crash, or potentially controlled corruption. No
| fixed release is available as of this review.


CVE-2026-88054[7]:
| Tesseract is an open source OCR engine. In version 5.5.3 and
| earlier, Plumbing::DeSerialize in src/lstm/plumbing.cpp rejects
| excessively large network stacks but accepts a zero-length stack for
| NT_SERIES, NT_PARALLEL, or NT_REVERSED layers in a crafted
| .traineddata model. During LSTMRecognizer initialization in
| src/lstm/lstmrecognizer.cpp, CacheXScaleFactor(XScaleFactor())
| reaches Series::CacheXScaleFactor in src/lstm/series.cpp, which
| dereferences stack_[0] on the empty vector and invokes a virtual
| method through an invalid Network pointer. This causes a
| deterministic crash and denial of service at model load. No fixed
| release is available as of this review.


If you fix the vulnerabilities please also make sure to include the
CVE (Common Vulnerabilities & Exposures) ids in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-88047
https://www.cve.org/CVERecord?id=CVE-2026-88047
[1] https://security-tracker.debian.org/tracker/CVE-2026-88048
https://www.cve.org/CVERecord?id=CVE-2026-88048
[2] https://security-tracker.debian.org/tracker/CVE-2026-88049
https://www.cve.org/CVERecord?id=CVE-2026-88049
[3] https://security-tracker.debian.org/tracker/CVE-2026-88050
https://www.cve.org/CVERecord?id=CVE-2026-88050
[4] https://security-tracker.debian.org/tracker/CVE-2026-88051
https://www.cve.org/CVERecord?id=CVE-2026-88051
[5] https://security-tracker.debian.org/tracker/CVE-2026-88052
https://www.cve.org/CVERecord?id=CVE-2026-88052
[6] https://security-tracker.debian.org/tracker/CVE-2026-88053
https://www.cve.org/CVERecord?id=CVE-2026-88053
[7] https://security-tracker.debian.org/tracker/CVE-2026-88054
https://www.cve.org/CVERecord?id=CVE-2026-88054

Regards,
Salvatore

#1147403#12
Date:
2026-11-09 08:36:12 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
tesseract, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1147403@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alexander Pozdnyakov <almipo@mail.ru> (supplier of updated tesseract package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 31 Oct 2026 15:38:12 +0000
Source: tesseract
Architecture: source
Version: 5.5.4-1
Distribution: unstable
Urgency: medium
Maintainer: Alexander Pozdnyakov <almipo@mail.ru>
Changed-By: Alexander Pozdnyakov <almipo@mail.ru>
Closes: 1144388 1147403
Changes:
 tesseract (5.5.4-1) unstable; urgency=medium
 .
   * New upstream release. Includes fixes as the resolution
     of the following security issue (Closes: #1144388, #1147403)
     - CVE-2026-73066
     - CVE-2026-73067
     - CVE-2026-88047
     - CVE-2026-88048
     - CVE-2026-88049
     - CVE-2026-88050
     - CVE-2026-88051
     - CVE-2026-88052
     - CVE-2026-88053
     - CVE-2026-88054
   * Update debian/copyright:
     - Updated year
     - Added licenses for unittest/blobs_test.cc
     - Added licenses for unittest/points_test.cc
   * Update debian/control:
     - Removed: asciidoc, xsltproc, docbook-xsl,
       docbook-xml
     - Added: asciidoctor, ruby-asciidoctor-pdf
   * Build with --enable-doc
Checksums-Sha1:
 f6213a76ff86889bf8c5f612281c136b374c565a 2297 tesseract_5.5.4-1.dsc
 4593eb666949c3b8a7e18915d5049828d6f38446 14949199 tesseract_5.5.4.orig-test.tar.gz
 3cfbef045309adbbf6e4475224d8cbf164f4952b 1969431 tesseract_5.5.4.orig.tar.gz
 36103f93c045807cff551215d4aa9c13ff4cd9c5 55428 tesseract_5.5.4-1.debian.tar.xz
 01fbb6c19c46a78082730893ce5caa85afcc145c 9115 tesseract_5.5.4-1_source.buildinfo
Checksums-Sha256:
 d4b356be8689d004065136e091c823b5e1bd07b84e7d21fee11886bd2fe86e83 2297 tesseract_5.5.4-1.dsc
 2788d27de6e448f8ffa7dd19a22c5781768440dee60a34607099f0c66d44b911 14949199 tesseract_5.5.4.orig-test.tar.gz
 a8dbf8b8c8ee427ff6ad1d99116502feaf59440af1adb893caf60a6576826cf4 1969431 tesseract_5.5.4.orig.tar.gz
 4f9a61b32276d686ed27b4bd3a5ac447c40bd97f8a839222db24dfcb656d5189 55428 tesseract_5.5.4-1.debian.tar.xz
 2de71882b0bc22a6f4b0132b92fb3725537865f8aee9fbc5f8b53982175e8803 9115 tesseract_5.5.4-1_source.buildinfo
Files:
 07ea0a799719c0116d30d772ee3fcf25 2297 graphics optional tesseract_5.5.4-1.dsc
 99bf2e67515db47ab114a7e17c0dd42d 14949199 graphics optional tesseract_5.5.4.orig-test.tar.gz
 ad5c5e9ecca2a6c7f71c31b2b400d92b 1969431 graphics optional tesseract_5.5.4.orig.tar.gz
 b4ec09dd6e75e29ce1da007f4820da9e 55428 graphics optional tesseract_5.5.4-1.debian.tar.xz
 a19f031e4d357e0db87626c5da1a41c3 9115 graphics optional tesseract_5.5.4-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQHEBAEBCgAuFiEEQGIgyLhVKAI3jM5BH1x6i0VWQxQFAmrxgk0QHGJhZ2VAZGVi
aWFuLm9yZwAKCRAfXHqLRVZDFOY3C/9DqN+JWywFVOShvJ+uhiKsbhcMY0oJ0weW
My+DJcaP/SQ4DKOlQCX2BSAWjEqLjhxoeTLtilgnsXHg8SmDpR3elHKo7rykz6o4
pQFkAYkhsXoiV0vjBwzqTu2IFOgReONujSqhZRwuUIwfT/zWlCvaltYyjFTIjo7T
izVOnIz5p/a8E/Cde7q0TaiAYCPRmKXLWRaMaQnE56WZJhbQ1MMhBa/EqaGQ495r
oUhRX0aKfXpZkhvFwyuOqrBImalgiS3w38hq5MLvSkH+png+Q1Tk+cg0ZN5QjmAW
S79r0/qwRZDgGPq03/6pNtuiZmXbsr4g9oUM8cY17IYb7Kr5asqG+CLHHbGEEpP4
MND5ZrmtagO0k7pxLzlkQl2Ri2ty+PlUPM3wWivf1I7q4t0CxRkuZysNaGWj1/8S
2g1mW3VIsrVv0SXDNy1+GibBvKNVa3OC5XdUiGEZe7CH6ImxKaB5abcFqY9iVOyz
u9b7hl1csbZYi/1c0NnwGAQucx8Q+Ew=
=r+Ee
-----END PGP SIGNATURE-----