---
id: CVE-2026-88050
title: Tesseract is an open source OCR engine
summary: >-
  Tesseract is an open source OCR engine. In version 5.5.3 and earlier,
  RecodedCharID::DeSerialize in src/ccutil/unicharcompress.h validates length_
  but accepts negative code_ values from a crafted .traineddata recoder
  component. UnicharCo…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - 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:02:01.503'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-88050'
references:
  - url: >-
      https://github.com/tesseract-ocr/tesseract/commit/c94a5532ee04db5a4919542832fd94caee5ea58f
    label: security-advisories@github.com
  - url: >-
      https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-7v9h-3q3m-w68g
    label: security-advisories@github.com
  - url: >-
      https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-7v9h-3q3m-w68g
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-88050.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-88050'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2531551'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-88050'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-88050'
tags:
  - nvd
  - cve.org
  - exploit-available
  - csaf
  - vex
  - red-hat
epss: 0.00144
epssPercentile: 0.0309
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-10T17:28:04.777181Z'
scores:
  nvd: 5.5
  cna: 6.9
  vendor: 5.5
ingestedAt: '2026-09-12T05:48:06.702Z'
---

## Overview

Tesseract is an open source OCR engine. In version 5.5.3 and earlier, RecodedCharID::DeSerialize in src/ccutil/unicharcompress.h validates length_ but accepts negative code_ values from a crafted .traineddata recoder component. UnicharCompress::ComputeCodeRange in src/ccutil/unicharcompress.cpp can consequently produce code_range_ equal to zero, after which SetupDecoder indexes is_valid_start_ with the negative code on a size-zero vector. The resulting out-of-bounds bit write uses a large wrapped index and reliably causes a wild-address crash or allocation failure on the default LSTM engine. 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** · Moderate · 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-88050.json)
