Affected versions
Ubuntu26.10/tesseract
- Affected versions
- * || =5.5.0-1build1 || =5.5.0-1.1
- Fixed version
- Not reported
UbuntuPro:14.04:LTS/tesseract
- Affected versions
- <3.03.02-3ubuntu0.1~esm1 || =3.02.02-1 || =3.03.02-3
- Fixed version
- 3.03.02-3ubuntu0.1~esm1
UbuntuPro:16.04:LTS/tesseract
- Affected versions
- <3.04.01-4ubuntu0.1~esm1 || =3.04.00-5ubuntu1 || =3.04.01-2 || =3.04.01-4
- Fixed version
- 3.04.01-4ubuntu0.1~esm1
UbuntuPro:18.04:LTS/tesseract
- Affected versions
- Unknown
- Fixed version
- 4.00~git2288-10f4998a-2ubuntu0.1~esm1
UbuntuPro:20.04:LTS/tesseract
- Affected versions
- <4.1.1-2ubuntu0.1~esm1 || =4.1.0-1 || =4.1.0-2 || =4.1.1-1 || =4.1.1-2 || =4.1.1-2build1 || =4.1.1-2build2
- Fixed version
- 4.1.1-2ubuntu0.1~esm1
UbuntuPro:22.04:LTS/tesseract
- Affected versions
- <4.1.1-2.1ubuntu0.1~esm1 || =4.1.1-2.1 || =4.1.1-2.1build1
- Fixed version
- 4.1.1-2.1ubuntu0.1~esm1
UbuntuPro:24.04:LTS/tesseract
- Affected versions
- <5.3.4-1ubuntu0.1~esm1 || =5.3.0-2build1 || =5.3.3-1 || =5.3.3-1build1 || =5.3.4-1 || =5.3.4-1build3 || =5.3.4-1build4 || =5.3.4-1build5
- Fixed version
- 5.3.4-1ubuntu0.1~esm1
UbuntuPro:26.04:LTS/tesseract
- Affected versions
- <5.5.0-1ubuntu0.1~esm1 || =5.5.0-1 || =5.5.0-1build1
- Fixed version
- 5.5.0-1ubuntu0.1~esm1
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.

