USN-9221-1: Tesseract vulnerabilities

Published Nov 30, 2026
·
Updated

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)

Affected Software

12 affected componentsFixes available
All of the following
ubuntu/libtesseract5<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=26.04
All of the following
ubuntu/tesseract-ocr<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=26.04
All of the following
ubuntu/libtesseract5<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=24.04
All of the following
ubuntu/tesseract-ocr<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=24.04
All of the following
ubuntu/libtesseract4<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=22.04
All of the following
ubuntu/tesseract-ocr<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=22.04

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/libtesseract5 to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro
  2. Upgrade

    Upgrade ubuntu/tesseract-ocr to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro
  3. Upgrade

    Upgrade ubuntu/libtesseract4 to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro

Event History

Nov 30, 2026
Advisory Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
DescriptionAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

What kind of input must an attacker control to trigger these issues?

CVE-2021-36081 can be triggered with crafted input during character recognition. CVE-2026-119339 and CVE-2026-119340 require a crafted model file, while CVE-2026-119341 requires a crafted template file.

2

Which Ubuntu releases are specifically identified as affected?

CVE-2021-36081 only affects Ubuntu 22.04 LTS. CVE-2026-119339 only affects Ubuntu 24.04 LTS and Ubuntu 26.04 LTS; no release-specific scope is provided for CVE-2026-119340 or CVE-2026-119341.

3

What is the expected impact of successful exploitation?

All listed issues can result in denial of service. CVE-2021-36081 involves a use-after-free, CVE-2026-119340 causes out-of-bounds memory access, and CVE-2026-119341 can cause memory corruption.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203