---
id: CVE-2026-119341
title: >-
  Tesseract: File-controlled pointers still reach `delete` in ADAPT_CLASS_STRUCT
  destructor
summary: >-
  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 an…
severity: none
cvss: 0
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N'
cvssSource: cna
cwe:
  - CWE-763
vendor: tesseract-ocr
product: tesseract
affected:
  - tesseract < 5.5.3
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-11-02T15:02:19.295936Z'
exploitAvailable: true
published: '2026-10-30'
updated: '2026-11-02'
sourceUpdated: '2026-11-02T15:02:43.092Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-119341'
references:
  - url: >-
      https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-357f-833m-3f83
    label: >-
      https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-357f-833m-3f83
  - url: 'https://github.com/tesseract-ocr/tesseract/pull/4645'
    label: 'https://github.com/tesseract-ocr/tesseract/pull/4645'
  - url: >-
      https://github.com/tesseract-ocr/tesseract/commit/614e971036d2b95d521057ff63d68d6612429b23
    label: >-
      https://github.com/tesseract-ocr/tesseract/commit/614e971036d2b95d521057ff63d68d6612429b23
  - url: 'https://github.com/tesseract-ocr/tesseract/releases/tag/5.5.4'
    label: 'https://github.com/tesseract-ocr/tesseract/releases/tag/5.5.4'
tags:
  - cve.org
  - exploit-available
epss: 0.0027
epssPercentile: 0.19322
ingestedAt: '2026-11-05T19:30:42.689Z'
---

## Overview

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.

## Affected

- `tesseract < 5.5.3`

## Remediation

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