Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
Tesseract: Heap out-of-bounds write in UNICHARSET::load_via_fgets via count/insert desynchronization
Vulnerability Description
Tesseract is an open source OCR engine. In version 5.5.3 and earlier, UNICHARSET::load_via_fgets in src/ccutil/unicharset.cpp trusts the declared unichar count as a loop bound and uses id as an unchecked index into the unichars vector. unichar_insert_backwards_compatible can leave the vector unchanged for an empty, duplicate, or already-encodable representation, causing id to become larger than unichars.size(). Subsequent set_* calls and the write to unichars[id].properties.enabled then write UNICHAR_PROPERTIES beyond the vector during initialization in both the default LSTM and legacy engines, causing heap corruption, a crash, or potentially controlled corruption. No fixed release is available as of this review.
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Vulnerability Type
对数组索引的验证不恰当
Vulnerability Title
tesseract-ocr Tesseract 输入验证错误漏洞
Vulnerability Description
tesseract-ocr Tesseract是tesseract-ocr组织的一款可将图像文字转换为可编辑文本的光学字符识别组件。 tesseract-ocr Tesseract 5.5.3及之前版本存在安全漏洞,该漏洞源于src/ccutil/unicharset.cpp文件中的UNICHARSET::load_via_fgets函数将声明的unichar计数作为循环边界,并将id作为未检查索引访问unichars向量,当遇到空、重复或已可编码的表示时,id可能超出向量大小,导致在初始化过程中越界写入
CVSS Information
N/A
Vulnerability Type
N/A