Read 2026-10-23
apache/doris: technical due diligence, read from its repository
What Borehole read in apache/doris's code and history at 1bb3537: 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 | adequate |
| Product & Engineering Maturity | strong |
| Security & Reliability Posture | adequate |
| Observability & Operations | strong |
| Fit with the Acquirer | not assessable |
What the repository says
- Releases are cut from another branch than the one surveyed
Architecture & Codebase — including AI provenance
strongfe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java is 10,389 lines, 88× this codebase's median file
adequateThe median source file here is 118 lines. 208 files exceed 1,180 lines, the largest being 10,389. 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.
fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java:1 — 10,389 lines (88× median) |
cloud/src/recycler/recycler.cpp:1 — 8,737 lines (74× median) |
fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java:1 — 7,903 lines (66× median) |
cloud/src/meta-service/meta_service.cpp:1 — 6,359 lines (53× median) |
cloud/src/meta-service/meta_service_txn.cpp:1 — 5,516 lines (46× median) |
Engineering Process & SDLC Maturity
adequate5% of recent commits change more than 2,000 lines
adequate498 of 9715 commits in the last 24 months changed over 2,000 lines of code, not counting reformatting, renames, vendored or generated code. A change that size is rarely reviewed line by line. Ask how they were reviewed, and what made them that large.
| 498 commits over 2,000 lines |
Product & Engineering Maturity
strong32 files still carry code deprecated more than two years ago
adequate32 files were marked deprecated over two years ago and still are, the oldest since Feb 2023. A deprecation is a promise to remove. Ask what still depends on these, and whether removing them is scheduled.
fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/CatalogPrivEntry.java — deprecated since Feb 2023 |
fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/PrivEntry.java — deprecated since Feb 2023 |
fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/Role.java — deprecated since Feb 2023 |
fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/GlobalPrivEntry.java — deprecated since Feb 2023 |
fe/fe-core/src/main/java/org/apache/doris/persist/OperationType.java — deprecated since Mar 2023 |
Releases are cut from another branch than the one surveyed
adequateThe newest release, 4.1.4, is not on the branch this survey read; the newest release on it is v0.8.2. The shipped product may differ from what this report describes. Survey the release branch too.
| tag 4.1.4 |
Security & Reliability Posture
adequate8 Dockerfiles run the application as root
adequateNo USER instruction switches away from root, so the process runs with full privileges inside the container. It is a one-line fix and an ordinary expectation, which is why its absence is worth asking about: it usually says more about whether anyone has reviewed the deployment than about this container specifically.
docker/compilation/Dockerfile — runs as root |
docker/compilation/arm/Dockerfile — runs as root |
docker/runtime/all-in-one/4.1/Dockerfile — runs as root |
docker/runtime/be/Dockerfile — runs as root |
The build runs third-party code it does not pin
adequate2 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; 1 step pipes a download straight into a shell. 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/comment-to-trigger-teamcity.yml:274 — action pinned by tag |
.github/workflows/license-eyes.yml:125 — action pinned by tag |
docker/thirdparties/run-thirdparties-docker.sh:1557 — download piped into a shell |
12 SQL statements built from strings
adequate12 places in product code build SQL by formatting or joining strings rather than passing parameters. 1 of them put a value into the string; in the rest, what the code shows going in is a table or column name, a constant, or something the line does not show. Ask whether any value reaches these strings, rather than a parameter.
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/BindSink.java:701 — SQL built from a string |
fe/fe-connector/fe-connector-adbc/src/main/java/org/apache/doris/connector/adbc/AdbcConnectorMetadata.java:306 — SQL built from a string |
fe/fe-core/src/main/java/org/apache/doris/cloud/CacheHotspotManagerUtils.java:85 — SQL built from a string |
4 deserialisers that can run code
adequate4 places read data with a deserialiser that executes what it reads (pickle, Java object streams). That is safe on data the system wrote itself and remote code execution on anything else. Ask where each one's input comes from.
be/src/udf/python/python_server.py:1629 — code-executing deserialiser |
docker/runtime/doris-compose/cluster.py:1045 — code-executing deserialiser |
fe/be-java-extensions/max-compute-connector/src/main/java/org/apache/doris/maxcompute/MaxComputeJniScanner.java:419 — code-executing deserialiser |
15 locked dependencies have published vulnerabilities, 28 high or critical
adequate15 of 286 locked dependencies match 64 published advisories in OSV, 28 of them rated high or critical. A lockfile says which version is installed, not whether the flawed code is reachable from this product, so each needs a look. Most are fixed by an upgrade, and the advisory names the version. None of the high or critical ones is in what the product ships: some are pinned to a commit or a branch. This lockfile pins development tools alongside what ships and does not say which is which, so some of these may never reach a user.
extension/beats/go.mod — golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e: GHSA-5cgq-3rg8-m6cv (critical); pinned to a commit or a branch, so whether it has the fix needs the dependency's own source |
extension/beats/go.mod — google.golang.org/grpc v1.41.0: GHSA-p77j-4mvh-x3m3 (critical), fixed in 1.79.3 |
extension/beats/go.mod — github.com/containerd/containerd v1.5.7: GHSA-crp2-qrr5-8pq7 (high), fixed in 1.5.10 |
9 advisories against this project in the last 24 months, 4 high or critical
adequateThe newest was published on 2026-09-23. 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 9 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 0.8.2. Answer lives in: the release you run, set against each fixed version. The record is incomplete: NVD: 1 record names doris with nothing tying it to this repository (CVE-2026-111692).
| 2026-09-23: CVE-2026-31377 (high): An Improper Authentication vulnerability in the Apache Doris Frontend (FE) meta service allows an unauthenticated remote attacker to access internal metadata se |
| 2026-09-23: CVE-2026-96443 (moderate): Insufficient validation of the JDBC driver URL in Apache Doris allows a privileged user to achieve remote code execution on the FE. |
| 2026-09-14: CVE-2026-68570 (moderate): Incorrect Authorization vulnerability in Apache Doris allows an authenticated user to bypass privilege checks and access data they are not authorized to read, r |
| 2026-09-14: CVE-2026-72524 (high): Incorrect Authorization vulnerability in Apache Doris allows an authenticated user to bypass privilege checks and access or modify data they are not authorized |
| 2026-07-14: CVE-2026-58319 (critical): Certain Apache Doris FE HTTP REST administrative APIs were accessible without proper authentication. An unauthenticated attacker with network access to the FE H |
Observability & Operations
strongNo error reporter is wired in
adequateNothing in the service initialises an error reporter (Sentry, Rollbar, Bugsnag, Honeybadger or an APM agent). An exception in production reaches a person only if someone is reading the logs, which usually means a customer reports it first.
| no error reporter initialised |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on apache/doris: 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.