---
id: CVE-2026-119339
title: >-
  Tesseract: Crafted LSTM model (`WeightMatrix` mode byte) triggers
  `ASSERT_HOST` abort in `WeightMatrix::DeSerializeOld` under `FAST_FLOAT` —
  Denial of Service
summary: >-
  Tesseract is an open source OCR engine. Prior to 5.5.4,
  WeightMatrix::DeSerialize trusts a mode byte from a traineddata LSTM network
  and calls WeightMatrix::DeSerializeOld when kDoubleFlag is clear. In default
  FAST_FLOAT builds, DeSerial…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'
cvssSource: cna
cwe:
  - CWE-20
  - CWE-617
vendor: tesseract-ocr
product: tesseract
affected:
  - tesseract < 5.5.4
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-30T21:18:18.116329Z'
published: '2026-10-30'
updated: '2026-10-30'
sourceUpdated: '2026-10-30T22:13:31.619Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-119339'
references:
  - url: >-
      https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-h9g4-frjx-6cj3
    label: >-
      https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-h9g4-frjx-6cj3
  - url: 'https://github.com/tesseract-ocr/tesseract/pull/4657'
    label: 'https://github.com/tesseract-ocr/tesseract/pull/4657'
  - url: >-
      https://github.com/tesseract-ocr/tesseract/commit/c053424327352b9d5180aa7540c1f9e67c64f27e
    label: >-
      https://github.com/tesseract-ocr/tesseract/commit/c053424327352b9d5180aa7540c1f9e67c64f27e
  - 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
epss: 0.00165
epssPercentile: 0.05728
ingestedAt: '2026-11-05T16:24:31.474Z'
---

## Overview

Tesseract is an open source OCR engine. Prior to 5.5.4, WeightMatrix::DeSerialize trusts a mode byte from a traineddata LSTM network and calls WeightMatrix::DeSerializeOld when kDoubleFlag is clear. In default FAST_FLOAT builds, DeSerializeOld invokes ASSERT_HOST instead of returning an error, so loading a crafted model through TessBaseAPI::Init terminates the process and causes denial of service. This issue is fixed in version 5.5.4.

## Affected

- `tesseract < 5.5.4`

## Remediation

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