UBUNTU-CVE-2026-119340

Source
https://ubuntu.com/security/CVE-2026-119340
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-119340.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-119340
Upstream
Published
2026-11-03T00:00:00Z
Modified
2026-11-04T03:30:25Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

Tesseract is an open source OCR engine. Prior to 5.5.4, GENERIC_2D_ARRAY::DeSerializeSize in src/ccstruct/matrix.h reads matrix dimensions as signed int32_t values and compares them only with UINT16_MAX, allowing negative values to reach ResizeNoInit. Negative dimensions or a 65535 by 65535 product can create inconsistent allocation state and later out-of-bounds accesses while loading a crafted traineddata file, causing denial of service. This issue is fixed in version 5.5.4.

References

Affected packages

Ubuntu:26.10
tesseract

Package

Name
tesseract
Purl
pkg:deb/ubuntu/tesseract?arch=source&distro=stonking

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

5.*
5.5.0-1build1
5.5.0-1.1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libtesseract5",
            "binary_version": "5.5.0-1.1"
        },
        {
            "binary_name": "tesseract-ocr",
            "binary_version": "5.5.0-1.1"
        },
        {
            "binary_name": "tesseract-ocr-all",
            "binary_version": "5.5.0-1.1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-119340.json"
Ubuntu:Pro:14.04:LTS
tesseract

Package

Name
tesseract
Purl
pkg:deb/ubuntu/tesseract?arch=source&distro=esm-infra-legacy%2Ftrusty

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

3.*
3.02.02-1
3.03.02-3
3.03.02-3ubuntu0.1~esm1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libtesseract3",
            "binary_version": "3.03.02-3ubuntu0.1~esm1"
        },
        {
            "binary_name": "tesseract-ocr",
            "binary_version": "3.03.02-3ubuntu0.1~esm1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-119340.json"
Ubuntu:Pro:16.04:LTS
tesseract

Package

Name
tesseract
Purl
pkg:deb/ubuntu/tesseract?arch=source&distro=esm-apps-legacy%2Fxenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

3.*
3.04.00-5ubuntu1
3.04.01-2
3.04.01-4
3.04.01-4ubuntu0.1~esm1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libtesseract3",
            "binary_version": "3.04.01-4ubuntu0.1~esm1"
        },
        {
            "binary_name": "tesseract-ocr",
            "binary_version": "3.04.01-4ubuntu0.1~esm1"
        },
        {
            "binary_name": "tesseract-ocr-all",
            "binary_version": "3.04.01-4ubuntu0.1~esm1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-119340.json"
Ubuntu:Pro:18.04:LTS
tesseract

Package

Name
tesseract
Purl
pkg:deb/ubuntu/tesseract?arch=source&distro=esm-apps%2Fbionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

3.*
3.04.01-6
3.04.01-6build1
3.04.01-6build2
4.*
4.00~git2188-cdc35338-4build1
4.00~git2188-cdc35338-5
4.00~git2207-766b7bd6-3.1
4.00~git2219-40f43111-1.2
4.00~git2288-10f4998a-2
4.00~git2288-10f4998a-2ubuntu0.1~esm1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libtesseract4",
            "binary_version": "4.00~git2288-10f4998a-2ubuntu0.1~esm1"
        },
        {
            "binary_name": "tesseract-ocr",
            "binary_version": "4.00~git2288-10f4998a-2ubuntu0.1~esm1"
        },
        {
            "binary_name": "tesseract-ocr-all",
            "binary_version": "4.00~git2288-10f4998a-2ubuntu0.1~esm1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-119340.json"
Ubuntu:Pro:20.04:LTS
tesseract

Package

Name
tesseract
Purl
pkg:deb/ubuntu/tesseract?arch=source&distro=esm-apps%2Ffocal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

4.*
4.1.0-1
4.1.0-2
4.1.1-1
4.1.1-2
4.1.1-2build1
4.1.1-2build2
4.1.1-2ubuntu0.1~esm1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libtesseract4",
            "binary_version": "4.1.1-2ubuntu0.1~esm1"
        },
        {
            "binary_name": "tesseract-ocr",
            "binary_version": "4.1.1-2ubuntu0.1~esm1"
        },
        {
            "binary_name": "tesseract-ocr-all",
            "binary_version": "4.1.1-2ubuntu0.1~esm1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-119340.json"
Ubuntu:Pro:22.04:LTS
tesseract

Package

Name
tesseract
Purl
pkg:deb/ubuntu/tesseract?arch=source&distro=esm-apps%2Fjammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

4.*
4.1.1-2.1
4.1.1-2.1build1
4.1.1-2.1ubuntu0.1~esm1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libtesseract4",
            "binary_version": "4.1.1-2.1ubuntu0.1~esm1"
        },
        {
            "binary_name": "tesseract-ocr",
            "binary_version": "4.1.1-2.1ubuntu0.1~esm1"
        },
        {
            "binary_name": "tesseract-ocr-all",
            "binary_version": "4.1.1-2.1ubuntu0.1~esm1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-119340.json"
Ubuntu:Pro:24.04:LTS
tesseract

Package

Name
tesseract
Purl
pkg:deb/ubuntu/tesseract?arch=source&distro=esm-apps%2Fnoble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

5.*
5.3.0-2build1
5.3.3-1
5.3.3-1build1
5.3.4-1
5.3.4-1build3
5.3.4-1build4
5.3.4-1build5
5.3.4-1ubuntu0.1~esm1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libtesseract5",
            "binary_version": "5.3.4-1ubuntu0.1~esm1"
        },
        {
            "binary_name": "tesseract-ocr",
            "binary_version": "5.3.4-1ubuntu0.1~esm1"
        },
        {
            "binary_name": "tesseract-ocr-all",
            "binary_version": "5.3.4-1ubuntu0.1~esm1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-119340.json"
Ubuntu:Pro:26.04:LTS
tesseract

Package

Name
tesseract
Purl
pkg:deb/ubuntu/tesseract?arch=source&distro=esm-apps%2Fresolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

5.*
5.5.0-1
5.5.0-1build1
5.5.0-1ubuntu0.1~esm1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "libtesseract5",
            "binary_version": "5.5.0-1ubuntu0.1~esm1"
        },
        {
            "binary_name": "tesseract-ocr",
            "binary_version": "5.5.0-1ubuntu0.1~esm1"
        },
        {
            "binary_name": "tesseract-ocr-all",
            "binary_version": "5.5.0-1ubuntu0.1~esm1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-119340.json"