# CVE-2026-100406: dbt: Unauthenticated Arbitrary SQL Execution in `dbt docs serve`

> CVE-2026-100406: dbt: Unauthenticated Arbitrary SQL Execution in `dbt docs serve`. CVSS 8.2 (CVSS 4.0).

Canonical: https://rewindex.com/cve/CVE-2026-100406
Last updated: 2026-10-20T02:17:07Z

- Published: 2026-10-14 18:27 UTC · Updated: 2026-10-20 02:17 UTC · Assigner: GitHub\_M
- CVSS: 8.2 (CVSS 4.0) · Severity: High
- EPSS: 0.42%, 36th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-200, CWE-22, CWE-306

## 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.

## Affected vendors and products

- dbt-labs: dbt-core

## Tracked companies

- [dbt Labs](https://rewindex.com/company/dbt-labs.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2026-100406)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2026-100406)
- [https://github.com/dbt-labs/dbt/commit/3a5d26fe02b58382720d04cbd87143b7b6775413](https://github.com/dbt-labs/dbt/commit/3a5d26fe02b58382720d04cbd87143b7b6775413)
- [https://github.com/dbt-labs/dbt/releases/tag/v2.0.0-alpha.5](https://github.com/dbt-labs/dbt/releases/tag/v2.0.0-alpha.5)
- [https://github.com/dbt-labs/dbt/security/advisories/GHSA-h2j2-2r7g-rff8](https://github.com/dbt-labs/dbt/security/advisories/GHSA-h2j2-2r7g-rff8)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2026-100406 · Markdown: https://rewindex.com/cve/CVE-2026-100406.md · JSON: https://rewindex.com/api/v1/cves/CVE-2026-100406 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T04:04:37.364Z
