CVE-2026-119338

Source
https://cve.org/CVERecord?id=CVE-2026-119338
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-119338.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-119338
Aliases
  • GHSA-vf7v-2h4f-6f4j
Downstream
DEBIAN (1)
ECHO (1)
OESA (3)
openSUSE (1)
UBUNTU (1)
Related
Published
2026-10-30T20:12:29Z
Modified
2026-11-06T01:07:28Z
Severity
  • 6.9 (Medium) CVSS_V4 - CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
Tesseract: Double free and use after free in the PAGE XML renderer on right-to-left pages
Details

Tesseract is an open source OCR engine. From 5.4.0 until 5.5.4, AppendLinePolygon in src/api/pagerenderer.cpp destroys the caller-owned right-to-left Pta accumulator while receiving it by value, leaving line_top_rtl_pts and line_bottom_rtl_pts dangling. On an upright Hebrew or Arabic page at the default PAGE XML level, POLYGONFLAG with a false skewed_flag enters the vulnerable calls, while LEVELFLAG greater than zero provides an alternative gate. The calls repeatedly read and free the stale object, causing a double free and use after free and allowing corrupted coordinates to reach RecalcPolygonline. This issue is fixed in version 5.5.4.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-125",
        "CWE-415",
        "CWE-416"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119338.json"
}
References

Affected packages

Git / github.com/tesseract-ocr/tesseract

Affected ranges

Type
GIT
Repo
https://github.com/tesseract-ocr/tesseract
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "range": [
                {
                    "introduced": "5.4.0"
                },
                {
                    "fixed": "5.5.4"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StringRangeExpression"
        },
        {
            "range": [
                {
                    "fixed": "fa52414ff1fd13ae4b00048d2498f9141b0bc2eb"
                }
            ],
            "source": "REFERENCES_COMMIT"
        },
        {
            "original_tag": "5.5.4",
            "range": [
                {
                    "fixed": "7e548e6eff172f38f97664afe7f7ce40db36c8d6"
                }
            ],
            "source": "REFERENCES_TAG"
        }
    ]
}

Affected versions

5.*
5.4.0
5.4.1
5.5.0
5.5.1
5.5.2
5.5.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-119338.json"
vanir_signatures
[
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "214454070402508015422926060201578646251",
                "218367293804562748747670694265773935722",
                "311601823939453721945786878773407294836",
                "276357792075481065713907935048207683684",
                "162901146916690610742558275817206227491",
                "193480508552248437026847076752276425468",
                "76181118046000095630990536881543959826",
                "261993243317730048523717514212959928304",
                "74906416913748269413773548474670316016",
                "141751336911543745502328382814010104014",
                "233752730872069478412196581153323669465",
                "213159467837648742802185718543111897190",
                "83173298512228135386058644228440352300",
                "245475750727673912854323928620991783709",
                "115628929674882303781632335870324396500",
                "185065472912070499796239039483352622389",
                "53620441108926254556586706375264895477",
                "33513048208461201529925751954706761022",
                "152953562145158649750721577057145664704",
                "243420202416690653955918518980967529210",
                "262296918194406698577195235491740290405",
                "71708787875487069927703768161583674598",
                "303059379198762084109948010670887131426",
                "241170944234004386827954293806085749964",
                "296521943646052500547018350323826883278",
                "73534524560023071384536640300790771079",
                "75509404226342984213695487856181326654",
                "106843424650182972242847001896971363"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2026-119338-15bbab23",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/tesseract-ocr/tesseract/commit/fa52414ff1fd13ae4b00048d2498f9141b0bc2eb",
        "target": {
            "file": "src/api/pagerenderer.cpp"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "function_hash": "214522586407021457430800137945092650246",
            "length": 1419
        },
        "id": "CVE-2026-119338-3f707c18",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/tesseract-ocr/tesseract/commit/fa52414ff1fd13ae4b00048d2498f9141b0bc2eb",
        "target": {
            "file": "src/api/pagerenderer.cpp",
            "function": "RecalcPolygonline"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "function_hash": "322388140882435109564228769613934602192",
            "length": 9122
        },
        "id": "CVE-2026-119338-637f305f",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/tesseract-ocr/tesseract/commit/fa52414ff1fd13ae4b00048d2498f9141b0bc2eb",
        "target": {
            "file": "src/api/pagerenderer.cpp",
            "function": "TessBaseAPI::GetPAGEText"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "327554403265229387793207942077955717355"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2026-119338-a935fe84",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/tesseract-ocr/tesseract/commit/fa52414ff1fd13ae4b00048d2498f9141b0bc2eb",
        "target": {
            "file": "unittest/baseapi_test.cc"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "function_hash": "236687113748837700629547346921668137005",
            "length": 433
        },
        "id": "CVE-2026-119338-b5156a62",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/tesseract-ocr/tesseract/commit/fa52414ff1fd13ae4b00048d2498f9141b0bc2eb",
        "target": {
            "file": "src/api/pagerenderer.cpp",
            "function": "AppendLinePolygon"
        }
    }
]
vanir_signatures_modified
"2026-11-06T01:07:28Z"