Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Linux

CVE-2021-36081

High · CVSS 7.8EPSS 0.9% First seen November 30, 2026
LinuxOperating systemsVulnerabilities

Research article

Tesseract OCR Use-After-Free Vulnerability in Ubuntu 22.04 LTS

CVECVE-2021-36081
PublishedNovember 30, 2026 20:35 UTC
Research cut-offNovember 30, 2026 20:25 UTC
Sources reviewed4: 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 IDVendorProductCWECVSS 3.1PublishedLast ModifiedRecord Status
CVE-2021-36081Tesseract OCRTesseract OCRCWE-4167.8 HIGH, scored by nvd@nist.gov2021-07-012026-09-14Modified

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 VersionFixed Version
tesseract-ocr 5.0.0 alpha-20201231not 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

  1. Apply system updates to address the vulnerability [3].
  2. Verify the installed version of Tesseract OCR to ensure it is not in the affected range [1].
  3. Monitor system logs for unusual activity that may indicate exploitation (general guidance, not from the advisory).

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

  1. 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. CVSS score, CWE, affected product, and CPE configuration
  2. 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. Exploitation status and CISA KEV listing
  3. Vendor bulletin page (ubuntu.com). ubuntu.com. https://ubuntu.com/security/notices/USN-9221-1. Accessed 2026-11-30. Vulnerability description, impact, affected product, and remediation
  4. 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. EPSS score and threat intelligence status

Written with AI assistance from the 4 sources listed above, as of the research cut-off; each fact is cited to its source. Check the vendor's advisory before acting.

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…

Excerpt from Ubuntu USN. No official description has been published yet.

Severity breakdown

High · 7.8 CVSS 3.1 base score from NVD

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

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

Weakness

Affected and fixed versions

ProductAffected versionsFixed in
tesseract-ocr tesseract ocr5.0.0 alpha-20201231—

From NVD's CPE data; confirm with the vendor advisory before relying on a version number.

Public exploits

Exploit available Exploit code or a detailed exploitation write-up is public, so attacks are easier to carry out.

References by type

Patches and fixed releases

Other references

Details from NVD (public domain).

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).

Timeline & sources

References

Related vulnerabilities & news