# CVE-2026-119340: Tesseract: GENERIC_2D_ARRAY DeSerializeSize signed integer comparison bypass allows negative dimensions

Status: published. Published: 2026-10-30. Updated: 2026-11-05.

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.

## Remediation

- fix: tesseract (other): GitHub reports patched versions 5.5.4. Check the advisory for the affected release branch. (source: GitHub GHSA-6xhq-wvww-6xfg) — https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-6xhq-wvww-6xfg

## Affected products and versions

- tesseract-ocr / tesseract: < 5.5.4 (affected). Source: CNA: GitHub_M
-  / tesseract (tesseract): <= 5.5.1 (affected, GitHub advisory range). Source: GitHub GHSA-6xhq-wvww-6xfg

## Severity and prioritization

- CVSS 3.1: 5.5 (medium); CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H; source: CNA: GitHub_M

- CVSS 3.1: 5.5 (medium); CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H; source: NVD: security-advisories@github.com

- CISA KEV: No listing in collected sources

- EPSS: 0.12% as of 2026-11-04; percentile 1.94%

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-190, CWE-681

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-6xhq-wvww-6xfg (CNA: GitHub_M; x_refsource_CONFIRM)

- https://github.com/tesseract-ocr/tesseract/pull/4649 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/tesseract-ocr/tesseract/commit/048e92378f1a34dcdaf94bc515c7552ac01f08ef (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/tesseract-ocr/tesseract/releases/tag/5.5.4 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/tesseract-ocr/tesseract/commit/048e92378f1a34dcdaf94bc515c7552ac01f08ef (security-advisories@github.com)

- https://github.com/tesseract-ocr/tesseract/pull/4649 (security-advisories@github.com)

- https://github.com/tesseract-ocr/tesseract/releases/tag/5.5.4 (security-advisories@github.com)

- https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-6xhq-wvww-6xfg (security-advisories@github.com)

- https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-6xhq-wvww-6xfg (GitHub Security Advisories; advisory)

## Provenance

- CNA: GitHub_M: https://www.cve.org/CVERecord?id=CVE-2026-119340; retrieved 2026-11-05; source updated 2026-11-05

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-119340; retrieved 2026-11-03; source updated 2026-11-02

- GitHub Security Advisories: https://github.com/tesseract-ocr/tesseract/security/advisories/GHSA-6xhq-wvww-6xfg; retrieved 2026-11-03; source updated 2026-10-30

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-119340; retrieved 2026-11-05; source updated Not reported

Revision: 35b4632defbc35e762fa436abd9ea1906018a9fa3c89ba3e443f02e75484cbc3

Canonical: https://y2.dev/cve/CVE-2026-119340

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.