Uncontrolled Memory Allocation in tesseract - #VU170694

 

Uncontrolled Memory Allocation in tesseract - #VU170694

Published: November 27, 2026


Vulnerability identifier: #VU170694
CSH Severity: Medium
CVSS v4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-789
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service by exhausting memory and potentially crashing Tesseract.

The vulnerability exists due to excessive memory allocation in TFile::DeSerialize when deserializing a vector, because it allocates memory for the declared element count without checking whether enough bytes remain in the input stream. A remote attacker can induce a victim to load a crafted .traineddata model to trigger excessive memory allocation during model loading, including in the LSTM recoder.


Affected software

tesseract

Remediation

Install security update from vendor's website.

tesseract - update to 5.5.5

External References

Related Security Bulletins