CVE-2026-100406: dbt: Unauthenticated Arbitrary SQL Execution in `dbt docs serve`
Description
dbt enables data analysts and engineers to transform their data using the same practices that software engineers use to build applications. From 2.0.0-alpha.0 until 2.0.0-alpha.5, dbt docs serve exposes the unauthenticated POST /api/v1/query endpoint in crates/dbt-docs-server/src/handlers/query.rs, which passes caller-supplied SQL to DuckDbViewsBackend::query_arrow() in crates/dbt-index-core/src/backend.rs without authorization or an allowlist. A client that can reach the server can invoke DuckDB filesystem-reading functions to read files available to the dbt process, including files outside the docs index directory. The server binds to localhost by default, but operators can expose it to a network through the host option or DBT_DOCS_HOST setting. This issue is fixed in version 2.0.0-alpha.5.
CWE-200, CWE-22, CWE-306
Tracked companies
Mapped from the CVE’s affected-product data, NVD CPE matches, vendor advisories or package feeds. A mapping means the vendor’s software is named, not that its hosted service was exposed.
Status incidents that name it
No tracked status incident names this CVE.
Affected vendors and products
dbt-labs: dbt-core
References
- CVE record on cve.org (opens in new tab)
- NVD entry (opens in new tab)
- github.com/dbt-labs/dbt/commit/3a5d26fe02b58382720d04cbd87143b7b6775413 (opens in new tab)
- github.com/dbt-labs/dbt/releases/tag/v2.0.0-alpha.5 (opens in new tab)
- github.com/dbt-labs/dbt/security/advisories/GHSA-h2j2-2r7g-rff8 (opens in new tab)
- CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (opens in new tab)
- This product uses data from the NVD API but is not endorsed or certified by the NVD. (opens in new tab)
- Known Exploited Vulnerabilities catalog from CISA. (opens in new tab)
- EPSS scores from FIRST (Exploit Prediction Scoring System). (opens in new tab)