CVE-2021-36081
Research article
Tesseract OCR Use-After-Free Vulnerability in Ubuntu 22.04 LTS
| CVE | CVE-2021-36081 |
|---|---|
| Published | November 30, 2026 20:35 UTC |
| Research cut-off | November 30, 2026 20:25 UTC |
| Sources reviewed | 4: NVD record (last modified 2026-09-14); CISA KEV catalog; vendor advisory page (ubuntu.com); FIRST EPSS (2026-11-30) |
Executive summary
CVE-2021-36081 involves a use-after-free condition in Tesseract OCR's string handling during character recognition, with a CVSS 3.1 score of 7.8 HIGH [1]. The vulnerability affects Ubuntu 22.04 LTS [3], and the reviewed sources do not report exploitation [2]. The advisory says a standard system update applies the necessary changes, but it does not list fixed package versions for CVE-2021-36081 [3].
Key points
- CVE-2021-36081 is a use-after-free condition in Tesseract OCR's string handling [3].
- The vulnerability has a CVSS 3.1 score of 7.8 HIGH, scored by nvd@nist.gov [1].
- It affects Ubuntu 22.04 LTS and may lead to denial of service [3].
- The reviewed sources do not report exploitation [2].
- The advisory states a standard system update applies the necessary changes, though it lists no fixed package versions [3].
Vulnerability identification
| CVE ID | Vendor | Product | CWE | CVSS 3.1 | Published | Last Modified | Record Status |
|---|---|---|---|---|---|---|---|
| CVE-2021-36081 | Tesseract OCR | Tesseract OCR | CWE-416 | 7.8 HIGH, scored by nvd@nist.gov | 2021-07-01 | 2026-09-14 | Modified |
Vulnerability description
A malicious input processed by Tesseract OCR can lead to a use-after-free condition, which may result in a denial of service [3]. The flaw is tied to how the software handles internal string operations during character recognition [3].
Attack surface and exploitation prerequisites
The CVSS vector indicates the vulnerability is exploited through local access and requires user interaction [1]. The CVSS vector rates the attack vector as local [1].
Impact analysis
The CVSS vector highlights the high impact on confidentiality, integrity, and availability [1]. The reported effect is a denial of service, which means the program can be made to crash [3].
Affected products and versions
| Affected Version | Fixed Version |
|---|---|
| tesseract-ocr 5.0.0 alpha-20201231 | not listed |
Exploitation and threat intelligence status
CVE-2021-36081 is not listed in the CISA Known Exploited Vulnerabilities Catalog as of 2026-11-30 [2]. The estimated probability of exploitation is 0.89%, with a percentile of 0.5730 [4].
Detection and exposure assessment
Users can assess their exposure by checking if their system runs Tesseract OCR 5.0.0 alpha-20201231 [1]. No specific detection methods are provided by the sources.
Remediation
The advisory suggests that a standard system update includes the necessary fixes [3]. No exact fixed versions are listed for this CVE [3].
Remediation checklist
Evidence gaps
- The sources do not describe the technical mechanics of the flaw.
- The sources do not provide a workaround or compensating control.
- The sources do not mention any indicators of compromise.
- The sources do not list a fixed version for this CVE.
- The sources do not describe a specific attack scenario or lifecycle.
References
- CVE-2021-36081 record. NIST National Vulnerability Database (NVD), 2026-09-14. https://nvd.nist.gov/vuln/detail/CVE-2021-36081. Accessed 2026-11-30.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-30. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-30.
- Vendor bulletin page (ubuntu.com). ubuntu.com. https://ubuntu.com/security/notices/USN-9221-1. Accessed 2026-11-30.
- EPSS score for CVE-2021-36081. FIRST, 2026-11-30. https://api.first.org/data/v1/epss?cve=CVE-2021-36081. Accessed 2026-11-30.
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…
Severity breakdown
High · 7.8
An attacker without an account can exploit this with local access if a user is tricked into an action.
- Attack from
- local access (a logged-in user, or a malicious file opened on the device)
- Attack complexity
- low (no special conditions)
- Login needed
- no
- User action needed
- yes, someone must click, open or visit something
- Scope
- stays within the vulnerable component
- Impact
- high on confidentiality, integrity and availability
Weakness
- CWE-416: Use After Free
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| tesseract-ocr tesseract ocr | 5.0.0 alpha-20201231 | — |
Public exploits
Exploit available
References by type
Patches and fixed releases
Other references
Frequently asked questions
What is CVE-2021-36081?
CVE-2021-36081 involves a use-after-free condition in Tesseract OCR's string handling during character recognition, with a CVSS 3.1 score of 7.8 HIGH. The vulnerability affects Ubuntu 22.04 LTS, and the reviewed sources do not report exploitation. The advisory says a standard system update applies the necessary changes, but it does not list fixed package versions for CVE-2021-36081. Weakness type: Use After Free (CWE-416).
How severe is CVE-2021-36081?
CVE-2021-36081 has a CVSS 3.1 base score of 7.8 (high), from NVD. An attacker without an account can exploit this with local access if a user is tricked into an action.
Is CVE-2021-36081 being exploited?
Not as far as is known: CVE-2021-36081 is not in CISA's Known Exploited Vulnerabilities catalog as of November 30, 2026. Exploit code or a proof of concept has been published, which makes attacks more likely. EPSS estimates a 0.9% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2021-36081?
tesseract-ocr tesseract ocr 5.0.0 alpha-20201231.
How do I fix CVE-2021-36081?
Apply system updates to address the vulnerability. Verify the installed version of Tesseract OCR to ensure it is not in the affected range. Monitor system logs for unusual activity that may indicate exploitation (general guidance, not from the advisory).