Ubuntu Notice USN-9221-1 Covers Several Tesseract Flaws Causing Crashes and Denial of Service
According to Ubuntu's security notice USN-9221-1, several Tesseract vulnerabilities can crash the OCR tool or cause denial of service when it processes crafted files. The notice says a standard system update installs the fixes.
LinuxOperating systemsVulnerabilitiesKey points
- Ubuntu notice USN-9221-1 covers several Tesseract vulnerabilities that can cause crashes or denial of service.
- CVE-2021-36081 is listed as affecting only Ubuntu 22.04 LTS.
- CVE-2026-119339 is listed as affecting only Ubuntu 24.04 LTS and 26.04 LTS.
- The notice gives no severity scores or exploitation status for the listed CVEs.
According to the Ubuntu security notice USN-9221-1, published on 30 November 2026, several vulnerabilities in the Tesseract OCR tool can cause it to crash when it opens a crafted file. The original notice is available on Ubuntu's security site and should be consulted for full details.
CVE-2021-36081 involves improper handling of certain internal string operations during character recognition, which can lead to a use-after-free condition and denial of service. The notice says it affects only Ubuntu 22.04 LTS.
CVE-2026-119339 involves improper handling of model files that use unsupported weight matrix formats. A crafted model file can make Tesseract abort, causing denial of service. The notice says it affects only Ubuntu 24.04 LTS and Ubuntu 26.04 LTS.
CVE-2026-119340 stems from missing validation of matrix dimensions when Tesseract loads model files. A crafted model file can cause out-of-bounds memory access and denial of service. The notice does not describe it as limited to particular Ubuntu releases.
CVE-2026-119341 involves internal data structures that are not properly initialized when Tesseract loads template files. According to the notice, a crafted template file can corrupt memory and cause denial of service.
The notice does not give a severity score for any listed CVE, does not say whether any are being actively exploited, and does not name the discoverers. It says a standard system update installs the necessary fixes and advises users to move to the fixed package versions listed in the notice. Those version numbers are not included in the report text, so they should be taken from the original notice.
What to do
- Apply the standard Ubuntu system update that the notice says installs the Tesseract fixes.
- Check USN-9221-1 for the fixed Tesseract package versions for each Ubuntu release in your environment.
- Confirm which Ubuntu releases in your estate have Tesseract installed, since the notice lists different affected releases for different CVEs.
Original report
“USN-9221-1: Tesseract vulnerabilities”
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…
Vulnerabilities mentioned
- CVE-2021-36081 High