BuildRiot
Sign in

SecuritySource: Tesseract

Tesseract releases 5.5.4 with memory-safety and model-validation fixes

Tesseract 5.5.4 fixes memory-safety flaws, model-validation errors and excessive processing time. Developers accepting external optical character recognition models should upgrade or check vendor patches.

Tesseract logo
Cover: BuildRiot

Tesseract published version 5.5.4 of its optical character recognition software with fixes for memory safety, model validation and excessive processing time. Its GitHub release page displays October 28 at 11:19 without a year or timezone. Sources: Tesseract

Two upstream advisories describe high-severity flaws in legacy-engine model loading, each rated 8.6 and patched in 5.5.4. Untrusted.traineddata models can trigger a stack buffer overflow or writes beyond a heap allocation. According to the stack-overflow advisory, typical libstdc++ builds are affected, while Apple libc++ in C++20 mode provides incidental protection against that flaw. Sources: Tesseract

The release adds checks for malformed array dimensions, invalid model values and UTF-8 bounds. Other fixes address use-after-free errors in multilingual recognition, memory errors in right-to-left PAGE XML output and timeout limits for seam searches. Sources: Tesseract

Mageia issued a security update for Mageia 10 on October 7, 2026, applying upstream patches to tesseract-5.5.3-1.mga10. Those backports mean an older version number alone does not establish whether a distribution package lacks fixes. Sources: Mageia

What to do

  1. Upgrade to Tesseract 5.5.4 or verify that your vendor provides equivalent patches for the model-loading flaws.
  2. Restrict.traineddata models to trusted sources as a workaround for the two legacy-engine flaws patched in Tesseract 5.5.4.
  3. Regression-test custom models, multilingual recognition and right-to-left PAGE XML output before deploying Tesseract 5.5.4. Sources: Tesseract, Mageia

Why it matters

Applications that accept external recognition models have a concrete reason to update Tesseract. Trusted models mitigate the two documented legacy-engine flaws, but do not cover every fix in 5.5.4.

Attribution

Sources

  1. 1TesseractRelease 5.5.4
  2. 2MageiaMGASA-2026-0470: Updated tesseract packages fix security vulnerabilitiesSource published (UTC)
  3. 3TesseractReadNormProtos stack buffer overflowSource published (UTC)
  4. 4TesseractHeap out-of-bounds write in GenericVector<T>::read due to independent reserved/size_used_ fieldsSource published (UTC)

Read the original source for full details and context.

Report a problem

Links, dates or what you expected. Do not include passwords or private data.

More on Security

All Security stories
Tesseract releases 5.5.4 with memory-safety and model-validation fixes · BuildRiot