Ubuntu 22.04 LTS / 24.04 LTS / 26.04 LTS : tesseract vulnerabilities (USN-9221-1)

high Nessus Plugin ID 391312

Synopsis

The remote Ubuntu host is missing one or more security updates.

Description

The remote Ubuntu 22.04 LTS / 24.04 LTS / 26.04 LTS host has packages installed that are affected by multiple vulnerabilities as referenced in the USN-9221-1 advisory.

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)

Tenable has extracted the preceding description block directly from the Ubuntu security advisory.

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Update the affected packages.

See Also

https://ubuntu.com/security/CVE-2021-36081

https://ubuntu.com/security/CVE-2026-119339

https://ubuntu.com/security/CVE-2026-119340

https://ubuntu.com/security/CVE-2026-119341

https://ubuntu.com/security/notices/USN-9221-1

Plugin Details

Severity: High

ID: 391312

File Name: ubuntu_USN-9221-1.nasl

Version: 1.1

Type: Local

Agent: unix

Published: 12/2/2026

Updated: 12/2/2026

Supported Sensors: Nessus Agent, Continuous Assessment, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 58.17

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5.3

Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2021-36081

CVSS v3

Risk Factor: High

Base Score: 7.8

Temporal Score: 7

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

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: cpe:/o:canonical:ubuntu_linux:22.04:-:lts, cpe:/o:canonical:ubuntu_linux:24.04:-:lts, cpe:/o:canonical:ubuntu_linux:26.04:-:lts, cpe:/o:canonical:ubuntu_linux:pro:-:lts, p-cpe:/a:canonical:ubuntu_linux:libtesseract4, p-cpe:/a:canonical:ubuntu_linux:libtesseract5, p-cpe:/a:canonical:ubuntu_linux:tesseract-ocr-all, p-cpe:/a:canonical:ubuntu_linux:tesseract-ocr

Required KB Items: Host/cpu, Host/Debian/dpkg-l, Host/Ubuntu, Host/Ubuntu/release

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 11/30/2026

Vulnerability Publication Date: 7/1/2021

Reference Information

CVE: CVE-2021-36081, CVE-2026-119339, CVE-2026-119340, CVE-2026-119341

USN: 9221-1