Tesseract-ocr vulnerabilities
In the last 30 days, 4 Tesseract-ocr vulnerabilities were published: 0 critical, 0 actively exploited. Most common weakness: out-of-bounds read (CWE-125).
CVSS score: 6.9 Severity: Medium Identifier: CVE-2026-119338 Tesseract: Double free and use after free in the PAGE XML renderer on right-to-left pages Package: tesseract (>= 5.4.0, < 5.5.4) Published Published
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.
- Exploitation
- No known exploitation
- EPSS
- 0.18% chance of exploitation in the next 30 days, higher than 4.6% of CVEs
- CVSS
- 6.9 out of 10 · source NVD (github.com)
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Versions
- >= 5.4.0, < 5.5.4
- Weakness
- CWE-125, CWE-415, CWE-416
- Sources
- CVE.org · NVD · EPSS
- Dates
- published Oct 30, 2026 · first seen here 4 h ago
CVSS score: 5.5 Severity: Medium Identifier: CVE-2026-119340 Tesseract: GENERIC_2D_ARRAY DeSerializeSize signed integer comparison bypass allows negative dimensions Package: tesseract (< 5.5.4) Published Published
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.
- Exploitation
- No known exploitation
- EPSS
- 0.17% chance of exploitation in the next 30 days, higher than 3.9% of CVEs
- CVSS
- 5.5 out of 10 · source NVD (github.com)
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Versions
- < 5.5.4
- Weakness
- CWE-190, CWE-681
- Sources
- CVE.org · NVD · EPSS
- Dates
- published Oct 30, 2026 · first seen here 4 h ago
CVSS score: 5.5
Severity: Medium
Identifier: CVE-2026-119339
Tesseract: Crafted LSTM model (WeightMatrix mode byte) triggers ASSERT_HOST abort in WeightMatrix::DeSerializeOld under FAST_FLOAT — Denial of Service
Package: tesseract (< 5.5.4)
Published Published
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.
- Exploitation
- No known exploitation
- EPSS
- 0.17% chance of exploitation in the next 30 days, higher than 3.9% of CVEs
- CVSS
- 5.5 out of 10 · source NVD (github.com)
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Versions
- < 5.5.4
- Weakness
- CWE-20, CWE-617
- Sources
- CVE.org · NVD · EPSS
- Dates
- published Oct 30, 2026 · first seen here 4 h ago
CVSS score: 0.0
Severity: Not rated
Identifier: CVE-2026-119341
Tesseract: File-controlled pointers still reach delete in ADAPT_CLASS_STRUCT destructor
Package: tesseract (< 5.5.3)
Published Published
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.
- Exploitation
- No known exploitation
- EPSS
- 0.46% chance of exploitation in the next 30 days, higher than 32.2% of CVEs
- CVSS
- 0.0 out of 10 · source NVD (github.com)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N - Versions
- < 5.5.3
- Weakness
- CWE-763
- Sources
- CVE.org · NVD · EPSS
- Dates
- published Oct 30, 2026 · first seen here 4 h ago