All vulnerabilities
CVE-2026-100406GHSA-h2j2-2r7g-rff8

dbt-core: dbt: Unauthenticated Arbitrary SQL Execution in `dbt docs serve`

dbt-labs dbt-core
CVSS
8.2High
ExploitationPublic exploit codeCISA's assessment says proof of concept code is public, assessed 20 Oct 2026. Not in the KEV catalogCISA via CVE List
Exploit odds (EPSS)0.35%Chance of exploitation activity in the next 30 days, higher than 27% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in2.0.0-alpha.5Fixed versionGitHub
Published14 Oct 2026Updated 20 Oct 2026CVE List

What fixes it

  • 2.0.0-alpha.5dbt-core, rustGitHub

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

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.

Text from CVE List

Affected versions 2

  • dbt-coreaffected: >= 2.0.0-alpha.0, < 2.0.0-alpha.5CVE List
  • dbt-core, rust>= 2.0.0-alpha.0, <= 2.0.0-alpha.1GitHub

References 3