---
id: CVE-2026-88048
title: Tesseract is an open source OCR engine
summary: >-
  Tesseract is an open source OCR engine. In version 5.5.3 and earlier,
  FullyConnected::DeSerialize in src/lstm/fullyconnected.cpp does not validate
  the deserialized layer scalars ni_ and no_ against the weight-matrix
  dimensions. During Fu…
severity: high
cvss: 7.1
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H'
cwe:
  - CWE-125
  - CWE-787
vendor: tesseract-ocr
product: tesseract_ocr
affected:
  - tesseract_ocr <= 5.5.3
published: '2026-09-10'
updated: '2026-09-14'
sourceUpdated: '2026-09-14T20:01:33.160'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-88048'
references:
  - url: >-
      https://github.com/tesseract-ocr/tesseract/commit/103dc134eb36411ddc6833ec20aa2c76795bd0ff
    label: security-advisories@github.com
  - url: >-
      https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-q44c-23p6-5mw6
    label: security-advisories@github.com
  - url: >-
      https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-q44c-23p6-5mw6
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-88048.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-88048'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2531546'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-88048'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-88048'
tags:
  - nvd
  - cve.org
  - exploit-available
  - csaf
  - vex
  - red-hat
epss: 0.0016
epssPercentile: 0.04483
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-09-11T15:59:27.422376Z'
scores:
  nvd: 7.1
  cna: 8.6
  vendor: 7.8
ingestedAt: '2026-09-12T17:24:59.000Z'
---

## Overview

Tesseract is an open source OCR engine. In version 5.5.3 and earlier, FullyConnected::DeSerialize in src/lstm/fullyconnected.cpp does not validate the deserialized layer scalars ni_ and no_ against the weight-matrix dimensions. During FullyConnected::Forward, MatrixDotVector in src/lstm/weightmatrix.cpp writes w.dim1() results into temp_line, which is sized from no_, and reads w.dim2() minus one inputs from curr_input, which is sized from ni_. A crafted .traineddata NT_SOFTMAX layer can therefore use inconsistent dimensions to cause a heap out-of-bounds write and read on the default LSTM engine, resulting in heap corruption, a crash, information disclosure, or potentially controlled corruption. No fixed release is available as of this review.

## Affected

- `tesseract_ocr <= 5.5.3`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Important · affected: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9 · no fix planned: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9 · updated 2026-09-14 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-88048.json)
