Article View: linux.debian.bugs.dist
Article #2909Bug#1152789: tesseract: CVE-2026-119338 CVE-2026-119339 CVE-2026-119340 CVE-2026-119341
From: Salvatore Bonaccorso
Date: Sun, 01 Nov 2026 16:30
Date: Sun, 01 Nov 2026 16:30
73 lines
4766 bytes
4766 bytes
Source: tesseract
Version: 5.5.0-1
X-Debbugs-CC: team@security.debian.org
Severity: important
Tags: security upstream
Hi,
The following vulnerabilities were published for tesseract.
CVE-2026-119338[0]:
| Tesseract is an open source OCR engine. From 5.4.0 until 5.5.4,
| AppendLinePolygon in src/api/pagerenderer.cpp destroys the caller-
| owned right-to-left Pta accumulator while receiving it by value,
| leaving line_top_rtl_pts and line_bottom_rtl_pts dangling. On an
| upright Hebrew or Arabic page at the default PAGE XML level,
| POLYGONFLAG with a false skewed_flag enters the vulnerable calls,
| while LEVELFLAG greater than zero provides an alternative gate. The
| calls repeatedly read and free the stale object, causing a double
| free and use after free and allowing corrupted coordinates to reach
| RecalcPolygonline. This issue is fixed in version 5.5.4.
CVE-2026-119339[1]:
| 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.
CVE-2026-119340[2]:
| 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.
| Negative dimensions or a 65535 by 65535 product can create
| inconsistent allocation state and later out-of-bounds accesses while
| loading a crafted traineddata file, causing denial of service. This
| issue is fixed in version 5.5.4.
CVE-2026-119341[3]:
| 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. When the legacy engine is selected,
| classify_use_pre_adapted_templates is enabled, and an attacker can
| write the output-basename .a file, the success or rejection path can
| pass file-controlled pointers to ~ADAPT_CLASS_STRUCT and operator
| delete, causing memory corruption and denial of service. This issue
| is fixed in version 5.5.4.
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-119338
https://www.cve.org/CVERecord?id=CVE-2026-119338
[1] https://security-tracker.debian.org/tracker/CVE-2026-119339
https://www.cve.org/CVERecord?id=CVE-2026-119339
[2] https://security-tracker.debian.org/tracker/CVE-2026-119340
https://www.cve.org/CVERecord?id=CVE-2026-119340
[3] https://security-tracker.debian.org/tracker/CVE-2026-119341
https://www.cve.org/CVERecord?id=CVE-2026-119341
Regards,
Salvatore
Technical Details
Message-ID:
<NUGBr-9eXu-5@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Salvatore Bonaccorso <carnil@debian.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1152789: tesseract: CVE-2026-119338 CVE-2026-119339 CVE-2026-119340 CVE-2026-119341 Date: Sun, 01 Nov 2026 17:30:01 +0100 Message-ID: <NUGBr-9eXu-5@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Sun Nov 1 16:21:09 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Salvatore Bonaccorso <carnil@debian.org>, 1152789@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: team@security.debian.org, almipo@mail.ru X-Debian-Pr-Message: report 1152789 X-Debian-Pr-Package: src:tesseract X-Debian-Pr-Keywords: security upstream X-Debian-Pr-Source: tesseract MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Debian-User: carnil X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2000106 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 73 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sun, 1 Nov 2026 17:20:19 +0100 X-Original-Message-ID: <audmwy9Pxn2OPFBg@eldamar.lan>