CVE-2026-119340
Tesseract: GENERIC_2D_ARRAY DeSerializeSize signed integer comparison bypass allows negative dimensions
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
5.5
Tesseract: GENERIC_2D_ARRAY DeSerializeSize signed integer comparison bypass allows negative dimensions
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.
- Record
CVE-2026-119340- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-190, CWE-681
- Updated
- 2026-11-05
EUVDEUVD-2026-114451
5.5
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.
- Record
EUVD-2026-114451- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-05
NVD
5.5
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.
- Record
CVE-2026-119340- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-190, CWE-681
- Updated
- 2026-11-05
OSV
5.5
Tesseract: GENERIC_2D_ARRAY DeSerializeSize signed integer comparison bypass allows negative dimensions
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.
- Record
CVE-2026-119340- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-190, CWE-681
- Updated
- 2026-11-06
OSVDEBIAN-CVE-2026-119340
5.5
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.
- Record
DEBIAN-CVE-2026-119340- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-05
OSVUBUNTU-CVE-2026-119340
5.5
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.
- Record
UBUNTU-CVE-2026-119340- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-05
OSVopenSUSE-SU-2026:12411-1 No score
libtesseract5-5.5.4-2.1 on GA media
These are all security issues fixed in the libtesseract5-5.5.4-2.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2026:12411-1- Updated
- 2026-11-04
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
tesseractDebian:12 |
All versions, plus listed versions 5.3.0-25.3.3-15.3.4-15.3.4-1.15.3.4-1.2 Show 4 moreShow less5.3.4-1.35.3.4-1.45.5.0-15.5.0-1.1 |
None known |
tesseractDebian:13 |
All versions, plus listed versions 5.5.0-15.5.0-1.1 |
None known |
tesseractDebian:14 |
All versions, plus listed versions 5.5.0-15.5.0-1.1 |
None known |
tesseractUbuntu:Pro:14.04:LTS |
All versions, plus listed versions 3.02.02-13.03.02-33.03.02-3ubuntu0.1~esm1 |
None known |
tesseractUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 3.04.00-5ubuntu13.04.01-23.04.01-43.04.01-4ubuntu0.1~esm1 |
None known |
tesseractUbuntu:Pro:18.04:LTS |
All versions, plus listed versions 3.04.01-63.04.01-6build13.04.01-6build24.00~git2188-cdc35338-4build14.00~git2188-cdc35338-5 Show 4 moreShow less4.00~git2207-766b7bd6-3.14.00~git2219-40f43111-1.24.00~git2288-10f4998a-24.00~git2288-10f4998a-2ubuntu0.1~esm1 |
None known |
tesseractUbuntu:Pro:20.04:LTS |
All versions, plus listed versions 4.1.0-14.1.0-24.1.1-14.1.1-24.1.1-2build14.1.1-2build24.1.1-2ubuntu0.1~esm1 |
None known |
tesseractUbuntu:Pro:22.04:LTS |
All versions, plus listed versions 4.1.1-2.14.1.1-2.1build14.1.1-2.1ubuntu0.1~esm1 |
None known |
tesseractUbuntu:Pro:24.04:LTS |
All versions, plus listed versions 5.3.0-2build15.3.3-15.3.3-1build15.3.4-15.3.4-1build35.3.4-1build45.3.4-1build55.3.4-1ubuntu0.1~esm1 |
None known |
tesseractUbuntu:26.10 |
All versions, plus listed versions 5.5.0-1build15.5.0-1.1 |
None known |
tesseractUbuntu:Pro:26.04:LTS |
All versions, plus listed versions 5.5.0-15.5.0-1build15.5.0-1ubuntu0.1~esm1 |
None known |
tesseract-ocropenSUSE:Tumbleweed From an advisory covering 4 CVEs |
before 5.5.4-2.1 | 5.5.4-2.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | CVE List, EUVD, NVD, OSV | |
| affected, aliases, facts, references | OSV | |
| affected, aliases, references | OSV | |
| facts | NVD, OSV | |
| first indexed | CVE List, EUVD, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-119340 is a medium vulnerability (CVSS 5.5) in Tesseract-ocr Tesseract, published October 30, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.12%, the 1st percentile. No source names a fixed version.
References
github.com/tesseract-ocr/tesseract/security/advisories/GHSA-6xhq-wvww-6xfg
github.com/tesseract-ocr/tesseract/pull/4649
github.com/tesseract-ocr/tesseract/commit/048e92378f1a34dcdaf94bc515c7552ac01f08ef
github.com/tesseract-ocr/tesseract/releases/tag/5.5.4
github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119340.json
nvd.nist.gov/vuln/detail/CVE-2026-119340