CyberRota Analysis
AI-GeneratedThe Tesseract OCR engine versions 5.5.3 and earlier are vulnerable due to improper validation of negative code values in the RecodedCharID::DeSerialize function, which can lead to out-of-bounds writes and crashes. This vulnerability can cause instability and allocation failures in applications utilizing the default LSTM engine, potentially disrupting services that rely on OCR functionalities. Organizations using Tesseract for document processing should prioritize addressing this vulnerability to mitigate risks of service interruptions.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
Tesseract is an open source OCR engine. In version 5.5.3 and earlier, RecodedCharID::DeSerialize in src/ccutil/unicharcompress.h validates length_ but accepts negative code_ values from a crafted .traineddata recoder component. UnicharCompress::ComputeCodeRange in src/ccutil/unicharcompress.cpp can consequently produce code_range_ equal to zero, after which SetupDecoder indexes is_valid_start_ with the negative code on a size-zero vector. The resulting out-of-bounds bit write uses a large wrapped index and reliably causes a wild-address crash or allocation failure on the default LSTM engine. No fixed release is available as of this review.