Read 2026-11-03
tesseract-ocr/tesseract: technical due diligence, read from its repository
What Borehole read in tesseract-ocr/tesseract's code and history at c21194d: its licence, security advisories, releases, review practice, tests, dependencies and operations. Every finding cites the file and line it rests on. The full report also covers the team and asks the questions the code cannot answer.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | strong |
| Engineering Process & SDLC Maturity | strong |
| Product & Engineering Maturity | not assessable |
| Security & Reliability Posture | not assessable |
| Observability & Operations | not assessable |
| Fit with the Acquirer | not assessable |
What the repository says
.gitmodules:1: 2 submodule(s) this survey does not read: unittest/third_party/googletest, test
Architecture & Codebase — including AI provenance
strongsrc/ccutil/universalambigs.h is 19,049 lines, 117× this codebase's median file
adequateThe median source file here is 162 lines. 18 files exceed 1,620 lines, the largest being 19,049. Size is not a defect on its own — some problems genuinely live in one place — but these are where merge conflicts, review fatigue and single-owner knowledge concentrate, and they are the first thing that slows an inheriting engineer down.
src/ccutil/universalambigs.h:1 — 19,049 lines (117× median) |
src/lstm/functions.cpp:1 — 8,201 lines (50× median) |
src/classify/cluster.cpp:1 — 3,357 lines (20× median) |
src/textord/colpartition.cpp:1 — 2,680 lines (16× median) |
src/ccmain/paragraphs.cpp:1 — 2,637 lines (16× median) |
Engineering Process & SDLC Maturity
strongNo finding.
Product & Engineering Maturity
not assessableEffort is shifting from building to rewriting
adequateDeleted lines per line added rose from 0.47 to 0.97 between the first and second halves of this history. Rework is normal and often healthy, but a rising ratio means an increasing share of the team's time is spent replacing code that already exists rather than building what does not. Whether that is deliberate repayment or churn is a question for the team.
| first half 0.47, second half 0.97 (split 2017-01-03) |
Security & Reliability Posture
not assessableThe build runs third-party code it does not pin
adequate6 third-party CI actions are referenced by a tag or branch rather than a commit, so they run whatever that tag points to on the day. Tags have been moved to malicious commits in real supply-chain attacks, and a piped script is whatever the server returns that minute. Pinning to a commit is the fix, and it is small.
.github/workflows/cifuzz.yml:17 — action pinned by tag |
.github/workflows/cifuzz.yml:23 — action pinned by tag |
1 vendored component with no licence
adequateThird-party code is committed into this repository without any statement of the terms it arrived under. Unknown terms are harder to deal with than inconvenient ones: an awkward licence can be complied with, an absent one cannot. Each of these needs its origin established before the code changes hands.
unittest/third_party/utf — 2 tracked files, no licence file |
21 advisories against this project in the last 24 months, 9 high or critical
adequateThe newest was published on 2026-10-30. A project that publishes advisories is telling its users about its fixes, and the count and pace say how much security work it carries. Whether 1 of them are fixed in the code you ship could not be told from this history: its version is only known to be at least 5.5.4. Answer lives in: the release you run, set against each fixed version. The record is incomplete: NVD: 2 records name tesseract with nothing tying them to this repository (CVE-2011-1136, CVE-2025-60176).
| 2026-10-30: GHSA-jrf4-mx9r-v94h (moderate), fixed in 5.5.4: Heap use-after-free in PAGE_RES_IT::ReplaceCurrentWord with several languages |
| 2026-10-22: GHSA-vf7v-2h4f-6f4j (moderate), fixed in 5.5.4: Double free and use after free in the PAGE XML renderer on right-to-left pages |
| 2026-10-22: GHSA-5rc4-r384-5c7p (moderate), fixed in 5.5.4: Heap out-of-bounds read in IntSimdMatrix::MatrixDotVector via unvalidated scales_ length with generic dotproduct |
| 2026-10-22: GHSA-pqc9-gv83-r5mf (moderate), fixed in 5.5.4: Heap out-of-bounds read in RecodeBeamSearch via recoder code_range not tied to network NumOutputs |
| 2026-10-22: GHSA-m232-6r7p-cwq7 (high), fixed in 5.5.4: Heap out-of-bounds write/read in RecodeBeamSearch via unvalidated null_char_ in crafted .traineddata |
Observability & Operations
not assessableNot rated: only 4 of 16 checks could reach a conclusion here; the rest do not apply to this repository or could not read it.
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on tesseract-ocr/tesseract: every dimension, the questions for the room, and the audit log.
Survey a repository: free on public repositories. Private code is read on your own machine by a collector whose source you can read first.