---
id: CVE-2026-88053
title: Tesseract is an open source OCR engine
summary: >-
  Tesseract is an open source OCR engine. In version 5.5.3 and earlier,
  Classify::ReadIntTemplates in src/classify/intproto.cpp reads NumClassPruners,
  NumClasses, and NumProtoSets from the TESSDATA_INTTEMP component of a crafted
  .trainedda…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-787
vendor: tesseract-ocr
product: tesseract_ocr
affected:
  - tesseract_ocr <= 5.5.3
published: '2026-09-10'
updated: '2026-09-16'
sourceUpdated: '2026-09-16T16:14:31.130'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-88053'
references:
  - url: >-
      https://github.com/tesseract-ocr/tesseract/commit/8b0574680f3b22f246ade6a4c8e3029104255c63
    label: security-advisories@github.com
  - url: >-
      https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-rphx-x795-5qjv
    label: security-advisories@github.com
  - url: >-
      https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-rphx-x795-5qjv
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-88053.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-88053'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2531573'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-88053'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-88053'
tags:
  - nvd
  - cve.org
  - exploit-available
  - csaf
  - vex
  - red-hat
epss: 0.00176
epssPercentile: 0.06338
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-09-11T15:57:52.566515Z'
scores:
  nvd: 7.8
  cna: 8.6
  vendor: 8.4
ingestedAt: '2026-09-14T15:24:03.244Z'
---

## Overview

Tesseract is an open source OCR engine. In version 5.5.3 and earlier, Classify::ReadIntTemplates in src/classify/intproto.cpp reads NumClassPruners, NumClasses, and NumProtoSets from the TESSDATA_INTTEMP component of a crafted .traineddata file and uses those values as loop bounds without validating them against MAX_NUM_CLASS_PRUNERS, MAX_NUM_CLASSES, and MAX_NUM_PROTO_SETS. The loops store heap pointers into fixed-capacity ClassPruners and ProtoSets arrays in INT_TEMPLATES_STRUCT and INT_CLASS_STRUCT, so an oversized count causes heap out-of-bounds pointer writes during legacy-classifier initialization before OCR begins, resulting in heap corruption, a crash, 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-16 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-88053.json)
