SB20261118310 - Multiple vulnerabilities in tesseract
Published: November 18, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 10 vulnerabilities.
1) Out-of-bounds read (CVE-ID: N/A)
CWE-ID: CWE-125 - Out-of-bounds read
CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service in applications that load untrusted Tesseract language data.
The vulnerability exists due to an out-of-bounds read in Tesseract's IntSimdMatrix::Init() when a deserialized quantized weight matrix has a zero second dimension, producing a negative index into a null-backed array before dimension validation occurs. A remote attacker can submit a crafted .traineddata file to a server that loads user-supplied language data through TessBaseAPI::Init() to crash the process during initialization.
2) Out-of-bounds write (CVE-ID: N/A)
CWE-ID: CWE-787 - Out-of-bounds write
CVSSv4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to corrupt heap memory, potentially enabling arbitrary code execution or denial of service.
The vulnerability exists due to an out-of-bounds write in Tesseract's Classify::ReadIntTemplates when processing negative class identifiers without lower-bound validation during legacy engine initialization. A remote attacker can trick a victim into loading a crafted .traineddata file containing a legacy inttemp component to trigger pointer writes before the class array or out-of-bounds pruner pointer reads followed by writes through those pointers, corrupting heap memory before OCR begins.
3) Release of invalid pointer or reference (CVE-ID: CVE-2026-119341)
CWE-ID: CWE-763 - Release of invalid pointer or reference
CVSSv4: 0 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause memory corruption through file-controlled pointers.
The vulnerability exists due to improper release of file-controlled pointers in Tesseract's ReadAdaptedClass and ADAPT_CLASS_STRUCT destructor when loading pre-adapted templates with the legacy engine and pre-adapted templates enabled. A remote attacker can place a crafted <output-basename>.a file in a writable output location, setting NumConfigs = 0 or NumTempProtos = -1, to make unreplaced Config pointers or an uncleared TempProtos pointer reach destruction and corrupt memory.
4) Integer overflow (CVE-ID: CVE-2026-119340)
CWE-ID: CWE-190 - Integer overflow
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by crashing Tesseract.
The vulnerability exists due to signed dimension checks that accept negative values and signed integer overflow in Tesseract's GENERIC_2D_ARRAY deserialization and resizing routines when loading language model matrices. A remote attacker can trick a victim into loading a crafted .traineddata file with dimensions encoded as 0xFFFFFFFF or dimensions of (65535, 65535) to trigger invalid allocation or out-of-bounds access and crash the application.
5) Reachable assertion (CVE-ID: CVE-2026-119339)
CWE-ID: CWE-617 - Reachable Assertion
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by terminating the Tesseract process.
The vulnerability exists due to a reachable assertion in WeightMatrix::DeSerializeOld when processing legacy-format weight matrices in FAST_FLOAT builds, enabled by default. A remote attacker can trick a victim into loading a crafted .traineddata file or LSTM model blob whose WeightMatrix mode byte has bit 7 (0x80) clear to trigger ASSERT_HOST and abort the process.
6) Double free (CVE-ID: CVE-2026-119338)
CWE-ID: CWE-415 - Double Free
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to potentially cause a denial of service through heap memory corruption.
The vulnerability exists due to double free and use-after-free in Tesseract's PAGE XML renderer when AppendLinePolygon frees a caller-owned accumulator without updating the caller's pointer while processing right-to-left text. A remote attacker can supply a Hebrew or Arabic page image to an OCR pipeline configured to emit PAGE XML to trigger repeated frees, stale coordinate reads, and subsequent out-of-bounds reads that may cause a crash.
7) Out-of-bounds read (CVE-ID: N/A)
CWE-ID: CWE-125 - Out-of-bounds read
CVSSv4: 5.7 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to disclose heap information through neural network activations and cause a denial of service.
The vulnerability exists due to a heap out-of-bounds read in tesseract's IntSimdMatrix::MatrixDotVector when generic dotproduct processing uses an insufficiently sized scales_ vector without validating its length against the output dimension. A remote attacker can trick a victim into loading a crafted int-mode weight matrix with valid weight dimensions and an empty or short scales_ vector under generic dotproduct processing to expose heap data or crash the application.
8) Out-of-bounds read (CVE-ID: N/A)
CWE-ID: CWE-125 - Out-of-bounds read
CVSSv4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service and indirectly disclose adjacent heap data through recognition scores.
The vulnerability exists due to an out-of-bounds read in Tesseract's RecodeBeamSearch::ContinueContext when recoder codes exceed network output array bounds without load-time or inference-time validation. A remote attacker can trick a victim into running OCR with a crafted .traineddata model combining a small-softmax network and recoder codes near 65534 to trigger a crash and leak adjacent heap values into scoring output.
9) Out-of-bounds write (CVE-ID: N/A)
CWE-ID: CWE-787 - Out-of-bounds write
CVSSv4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to corrupt heap memory, disclose adjacent heap data, and cause a denial of service.
The vulnerability exists due to out-of-bounds writes and reads in RecodeBeamSearch when recognition uses an unvalidated null_char_ index deserialized independently of the network output width. A remote attacker can trick a victim into loading a crafted .traineddata model with null_char_ set to 0x40000000 or a negative value and performing recognition to trigger an attacker-offset heap write and subsequent out-of-bounds reads.
10) Use-after-free (CVE-ID: N/A)
CWE-ID: CWE-416 - Use After Free
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by crashing Tesseract.
The vulnerability exists due to heap use-after-free in PAGE_RES_IT::ReplaceCurrentWord when multilingual LSTM recognition retains a shared input or fuzzy-space combination word alongside newly recognized words, then frees the shared word while replacements still reference it. A remote attacker can trick a user into processing an attacker-chosen image with at least two languages loaded, where one language recognizes no words and another recognizes words, to trigger a crash.
Remediation
Install update from vendor's website.
References
- https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-9vwv-49m8-jv9m
- https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-96jm-jc65-f968
- https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-357f-833m-3f83
- https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-6xhq-wvww-6xfg
- https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-h9g4-frjx-6cj3
- https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-vf7v-2h4f-6f4j
- https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-5rc4-r384-5c7p
- https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-pqc9-gv83-r5mf
- https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-m232-6r7p-cwq7
- https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-jrf4-mx9r-v94h
- https://github.com/tesseract-ocr/tesseract/commit/a95faa0078bcbb59357468f81e079814f8f28e74