Skip to main content
← All vulnerabilities
CVE-2026-100406GHSA-H2J2-2R7G-RFF8

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.0.0-alpha.5
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • dbt-labs dbt-core

    From 2.0.0-alpha.0 · fixed in 2.0.0-alpha.5

References 3

GitHub · dbt-labs/dbt