CVE-2021-36081: USN-9221-1: Tesseract vulnerabilities

Vulnerability · Reported by Ubuntu Security Notices · · CWE-416

Severity
High Risk score 78/100
CVSS
7.8 v3.1 · from NVD
Exploit chance (EPSS)
0.89% Higher than 57% of CVEs
Known exploited
No Not in CISA KEV

Summary

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)

How this vulnerability can be exploited

This is a use-after-free flaw (CWE-416). An attacker can exploit this vulnerability with local access to the system, without any login, and only if a user is tricked into an action (such as clicking a link or opening a file). Attack complexity is low, so no special conditions are needed. If successful, the attacker could read sensitive data, modify data or code and crash or disrupt the service.

Is it being exploited?

The EPSS model estimates a 0.89% chance this CVE will be exploited in the next 30 days, which is low and higher than 57% of all published CVEs.

Patch priority and what to do

Schedule patching in your next maintenance window, and sooner for internet-facing systems. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Warn users about suspicious links and files that could trigger the flaw. 4) Review logs for signs of exploitation since the publication date.

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

See what each part means in the official CVSS calculator ↗

Tags

CVE-2021-36081, Linux

Sources & references

How this data is collected: methodology & sources.

Run this software? Get free alerts for new vulnerabilities →

Need to block attackers? Free hourly IOC blocklists (IPs, domains, URLs, hashes) →

Open the live threat dashboard →

Subscribe via RSS.