Home / mailings [USN-9221-1] Tesseract vulnerabilities
Posted on 30 November 2026
Ubuntu Security==========================================================================Ubuntu Security Notice USN-9221-1
November 30, 2026
tesseract vulnerabilities
==========================================================================
A security issue affects these releases of Ubuntu and its derivatives:
- Ubuntu 26.04 LTS
- Ubuntu 24.04 LTS
- Ubuntu 22.04 LTS
Summary:
Tesseract could be made to crash if it opened a specially crafted file.
Software Description:
- tesseract: OCR engine
Details:
It was discovered that Tesseract incorrectly handled certain internal
string operations during character recognition. An attacker could use a
crafted input to cause a use-after-free and denial of service. This issue
only affects Ubuntu 22.04 LTS. (CVE-2021-36081)
It was discovered that Tesseract incorrectly handled certain model files
with unsupported weight matrix formats. An attacker could use a crafted
model file to cause Tesseract to abort, resulting in a denial of service.
This issue only affects Ubuntu 24.04 LTS and Ubuntu 26.04 LTS.
(CVE-2026-119339)
It was discovered that Tesseract did not properly validate matrix
dimensions when loading model files. An attacker could use a crafted
model file to cause out-of-bounds memory access, resulting in a denial
of service. (CVE-2026-119340)
It was discovered that Tesseract did not properly initialize internal
data structures when loading template files. An attacker could use a
crafted template file to cause memory corruption, resulting in a denial
of service. (CVE-2026-119341)
Update instructions:
The problem can be corrected by updating your system to the following
package versions:
Ubuntu 26.04 LTS
libtesseract5 5.5.0-1ubuntu0.1~esm2
Available with Ubuntu Pro
tesseract-ocr 5.5.0-1ubuntu0.1~esm2
Available with Ubuntu Pro
Ubuntu 24.04 LTS
libtesseract5 5.3.4-1ubuntu0.1~esm2
Available with Ubuntu Pro
tesseract-ocr 5.3.4-1ubuntu0.1~esm2
Available with Ubuntu Pro
Ubuntu 22.04 LTS
libtesseract4 4.1.1-2.1ubuntu0.1~esm2
Available with Ubuntu Pro
tesseract-ocr 4.1.1-2.1ubuntu0.1~esm2
Available with Ubuntu Pro
In general, a standard system update will make all the necessary changes.
References:
https://ubuntu.com/security/notices/USN-9221-1
CVE-2021-36081, CVE-2026-119339, CVE-2026-119340, CVE-2026-119341
--===============1401692175335898918==Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
