Read 2026-10-23
apache/airflow: technical due diligence, read from its repository
What Borehole read in apache/airflow's code and history at 7e02d46: 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 | adequate |
| Engineering Process & SDLC Maturity | strong |
| Product & Engineering Maturity | strong |
| Security & Reliability Posture | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not assessable |
What the repository says
- Releases are cut from another branch than the one surveyed
.github/PULL_REQUEST_TEMPLATE.md:37: states a policy on AI-generated contributions.github/SECURITY.md:28: names Apache Software Foundation
Architecture & Codebase — including AI provenance
adequateairflow-core/src/airflow/jobs/scheduler_job_runner.py is 4,627 lines, 53× this codebase's median file
adequateThe median source file here is 86 lines. 129 files exceed 1,000 lines, the largest being 4,627. 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.
airflow-core/src/airflow/jobs/scheduler_job_runner.py:1 — 4,627 lines (53× median) |
providers/google/src/airflow/providers/google/cloud/operators/dataplex.py:1 — 4,246 lines (49× median) |
airflow-core/src/airflow/ui/openapi-gen/queries/queries.ts:1 — 3,763 lines (43× median) |
airflow-core/src/airflow/models/taskinstance.py:1 — 3,719 lines (43× median) |
devel-common/src/tests_common/pytest_plugin.py:1 — 3,414 lines (39× median) |
6 base images float: no version, or `latest`
adequate6 of 28 `FROM` lines in product Dockerfiles name an image without a version, or with `latest`. Each build pulls whatever the registry serves that day, so the image that ships can change without a commit, and last month's build cannot be reproduced. Pin a version, or a digest.
Dockerfile:1402 — base image without a version |
Dockerfile:1407 — base image without a version |
Dockerfile:1408 — base image without a version |
Engineering Process & SDLC Maturity
strongTests are retried until they pass
adequateThe suite is configured to retry failing tests (airflow-core/src/airflow/ui/src/components/FlexibleForm/FieldMultiType.test.tsx); 8 tests are individually marked to retry. A retry turns a flaky test green without saying why it failed, so a green build means the tests passed eventually. Ask how many retries a typical run needs, and which tests need them.
Product & Engineering Maturity
strongReleases are cut from another branch than the one surveyed
adequateThe newest release, 3.3.2, is not on the branch this survey read; the newest release on it is 2.0.0. The shipped product may differ from what this report describes. Survey the release branch too.
| tag 3.3.2 |
Security & Reliability Posture
adequate11 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.
20 outbound calls can wait forever
adequate20 HTTP calls use a client with no timeout (Python `requests` without `timeout=`, or Go's default client). When a dependency slows down, each one holds a worker until the connection gives up, and enough of them take the service down with the dependency.
airflow-core/src/airflow/example_dags/example_retry_policy.py:66 — outbound call without a timeout |
airflow-core/src/airflow/example_dags/tutorial_objectstorage.py:85 — outbound call without a timeout |
devel-common/src/sphinx_exts/extra_provider_files_with_substitutions.py:30 — outbound call without a timeout |
1 SQL statement built from strings
adequate1 places in product code build SQL by formatting or joining strings rather than passing parameters. In each, what the code shows going in is a table or column name, a constant, or something the line does not show, not a request's value. Ask whether any value reaches these strings, rather than a parameter.
airflow-core/src/airflow/utils/db_cleanup.py:385 — SQL built from a string |
2 shell commands built from strings
adequate2 places run a command through a shell (`shell=True`, `os.system`, `exec` with a template) rather than passing arguments. Where any part comes from outside, it is command injection. Ask where each one's input comes from.
airflow-core/src/airflow/example_dags/example_kubernetes_executor.py:93 — command run through a shell |
airflow-core/src/airflow/example_dags/example_kubernetes_executor.py:131 — command run through a shell |
4 deserialisers that can run code
adequate4 places read data with a deserialiser that executes what it reads (pickle, `yaml.load` without a safe loader, Python `marshal`). That is safe on data the system wrote itself and remote code execution on anything else. Ask where each one's input comes from.
airflow-core/src/airflow/migrations/versions/0055_3_0_0_remove_pickled_data_from_dagrun_table.py:131 — code-executing deserialiser |
devel-common/src/sphinx_exts/provider_yaml_utils.py:90 — code-executing deserialiser |
providers/google/src/airflow/providers/google/cloud/utils/mlengine_prediction_summary.py:189 — code-executing deserialiser |
22 locked dependencies have published vulnerabilities, 32 high or critical in what ships
adequate22 of 2,820 locked dependencies match 97 published advisories in OSV, 57 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.
uv.lock — pillow 12.3.0: GHSA-332p-7hrc-92wf (critical), fixed in 13.0.0 |
airflow-core/src/airflow/ui/pnpm-lock.yaml — dompurify 3.4.16: GHSA-cg2g-xh64-v4q7 (critical), fixed in 3.4.17 |
uv.lock — kerberos 1.3.1: PYSEC-2017-49 (critical); an optional extra |
7 places insert HTML from a variable without sanitising it
adequate7 places set HTML from a value that is neither a literal nor passed through a sanitiser. Where the value can come from a user, that is stored cross-site scripting, and it is the first thing a buyer's security review looks for in a frontend.
airflow-core/src/airflow/ui/src/components/ReactMarkdownBlocks.tsx:163 — HTML from a variable |
airflow-core/src/airflow/ui/src/components/ReactMarkdownBlocks.tsx:256 — HTML from a variable |
devel-common/src/sphinx_exts/pagefind_search/static/js/search.js:149 — HTML from a variable |
114 advisories against this project in the last 24 months, 47 high or critical
adequateThe newest was published on 2026-10-20. 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 6 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 2.0.0. Answer lives in: the release you run, set against each fixed version. PYSEC-2026-3988 (moderate), PYSEC-2026-3989 (moderate), GHSA-5247-m8w9-2v4m (moderate) and 35 more are fixed in the surveyed commit; which release carries them cannot be told from this history, which does not place the release users run. Answer lives in: the version you run. The record is incomplete: NVD: 3 records name airflow with nothing tying them to this repository (CVE-2024-28423, CVE-2025-54415, CVE-2026-5667).
| 2026-10-20: CVE-2026-86467 (unrated): Apache Airflow Amazon provider: the AWS auth manager's SAML login flow does not bind the authentication response to the browser that began it. The login handler |
| 2026-10-15: CVE-2026-92228 (moderate): The Apache Airflow Keycloak provider's multi-team provisioning (`_attach_team_permissions`) granted every team role global read access to audit logs. Deployment |
| 2026-10-15: CVE-2026-94134 (critical): The Apache Airflow SSH provider hook disables SSH host-key verification by default: unless `host_key` is configured or `no_host_key_check` is explicitly set to |
| 2026-10-15: CVE-2026-94135 (moderate): The Apache Airflow SFTP provider's deferrable code paths (`SFTPTrigger`, `SFTPHookAsync`, `SFTPClientPool`) disable SSH host-key verification by default unless |
| 2026-10-15: CVE-2026-96806 (moderate): The Apache Airflow Keycloak auth manager did not end the session on logout: the logout route revoked the presented token, but `KeycloakJWTMiddleware` then issue |
Observability & Operations
adequate3 of 5 deployed images carry no version, or `latest`
adequate3 images in the deployment configuration are named without a version or as `latest`. A redeploy can change the software without a commit, a rollback has nothing to roll back to, and nobody can say from the repository what is running.
chart/kustomize-overlays/kerberos/kdc-deployment.yaml:44 — image without a version |
providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/kubernetes_executor_templates/basic_template.yaml:28 — image without a version |
providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/pod_template_file_examples/git_sync_template.yaml:68 — image without a version |
Readiness and liveness probes are identical in 3 of 5 workloads
adequateBoth probes call the same endpoint. When a dependency slows down, the liveness probe fails with the readiness probe, so the platform restarts pods that only needed taking out of rotation, and a partial outage becomes a full one. Liveness should ask whether the process is alive; readiness whether it can serve.
chart/templates/api-server/api-server-deployment.yaml — same probe endpoint twice |
chart/templates/otel-collector/otel-collector-deployment.yaml — same probe endpoint twice |
chart/templates/statsd/statsd-deployment.yaml — same probe endpoint twice |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on apache/airflow: 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.