Uncontrolled Memory Allocation in tesseract - #VU170694
Published: November 27, 2026
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.