SB2026112738 - Multiple vulnerabilities in tesseract
Published: November 27, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 9 vulnerabilities.
1) Out-of-bounds read (CVE-ID: N/A)
CWE-ID: CWE-125 - Out-of-bounds read
CVSSv4: 5.6 [CVSS:4.0/AV:L/AC:L/AT:P/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 a missing image-size check that leads to an out-of-bounds heap read and a possible out-of-bounds heap write in the line finder when layout analysis processes an oversized image using an affected thresholding method. A remote attacker can induce a user to process a crafted image under those settings to crash Tesseract.
2) Integer overflow (CVE-ID: N/A)
CWE-ID: CWE-190 - Integer overflow
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 by hanging an OCR worker or terminating the process.
The vulnerability exists due to integer wraparound, missing loop termination checks, and unchecked error conditions in Tesseract's image decoding, layout analysis, recognition, and output routines when processing image input. A remote attacker can submit a crafted image to a service that uses Tesseract to trigger an endless loop, exhaust resources, or terminate the process.
3) Heap-based buffer overflow (CVE-ID: N/A)
CWE-ID: CWE-122 - Heap-based Buffer 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 corrupt heap memory and cause a denial of service.
The vulnerability exists due to a heap-based buffer overflow in block_edges() when page segmentation or orientation and script detection processes a zone without verifying that it lies within the image. A remote attacker can induce a victim to process an image with an untrusted companion zone file to crash Tesseract.
4) Heap-based buffer overflow (CVE-ID: N/A)
CWE-ID: CWE-122 - Heap-based Buffer Overflow
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 by triggering heap corruption, a process abort, or a hang.
The vulnerability exists due to a heap-based buffer overflow in Tesseract’s table detection when page deskewing converts rotated coordinates to 16-bit signed integers without checking their range. A remote attacker can submit a crafted image to a service that uses Tesseract to cause a denial of service.
5) Integer overflow (CVE-ID: N/A)
CWE-ID: CWE-190 - Integer overflow
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 by crashing the process that handles an image.
The vulnerability exists due to an integer overflow in TabVector::FitVector() when automatic page segmentation accumulates line-fitting totals. A remote attacker can submit a specially crafted image to a service using Tesseract to trigger a crash through division by zero or an invalid heap access.
6) Out-of-bounds read (CVE-ID: N/A)
CWE-ID: CWE-125 - Out-of-bounds read
CVSSv4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause incorrect word rejection or terminate the OCR process.
The vulnerability exists due to a heap out-of-bounds read in Tesseract's legacy OCR engine when signed 16-bit offsets or indices wrap during recognized-word post-processing. A remote attacker can induce a victim to process a crafted image with the legacy engine to trigger the read and potentially disrupt OCR.
7) Out-of-bounds read (CVE-ID: N/A)
CWE-ID: CWE-125 - Out-of-bounds read
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 an application that uses Tesseract's legacy OCR engine and does not catch the resulting exception.
The vulnerability exists due to an out-of-bounds read in Tesseract::check_abbreviation when the legacy OCR engine uses the same index for byte offsets and character lengths while checking recognized text. A remote attacker can induce a victim to process a crafted image with the legacy OCR engine to trigger an exception that may terminate the application.
8) Integer overflow (CVE-ID: N/A)
CWE-ID: CWE-190 - Integer overflow
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 by hanging or crashing the OCR process.
The vulnerability exists due to signed 16-bit coordinate wraparound in fixed-pitch detection when analyzing image layouts. A remote attacker can submit a crafted image to a service using Tesseract to trigger an out-of-bounds heap write followed by an endless loop or a crash, or to trigger a separate assertion failure that aborts the process.
9) Uncontrolled Memory Allocation (CVE-ID: N/A)
CWE-ID: CWE-789 - Uncontrolled Memory Allocation
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 exhausting memory and potentially crashing Tesseract.
The vulnerability exists due to excessive memory allocation in TFile::DeSerialize when deserializing a vector, because it allocates memory for the declared element count without checking whether enough bytes remain in the input stream. A remote attacker can induce a victim to load a crafted .traineddata model to trigger excessive memory allocation during model loading, including in the LSTM recoder.
Remediation
Install update from vendor's website.
References
- https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-75CW-G97F-PG6W
- https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-XWWV-9H8H-XX8H
- https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-9JW8-H38W-2M69
- https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-2H39-P3C8-3VP6
- https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-7WF8-58WX-CG2R
- https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-F478-8362-67WJ
- https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-5VH6-G6XJ-PCHC
- https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-FHXM-QH9P-WC39
- https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-FXPC-5X59-R9PX