{"id":"CVE-2026-100406","published":"2026-10-14T18:27:24Z","modified":"2026-10-20T01:51:20Z","title":"dbt: Unauthenticated Arbitrary SQL Execution in `dbt docs serve`","vendor":"dbt-labs","product":"dbt-core","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0049,"percentile":0.35004,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"},{"id":"CWE-306","name":"Missing Authentication for Critical Functionality"}],"references":[{"url":"https://github.com/dbt-labs/dbt/security/advisories/GHSA-h2j2-2r7g-rff8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/dbt-labs/dbt/commit/3a5d26fe02b58382720d04cbd87143b7b6775413","tags":["x_refsource_MISC"]},{"url":"https://github.com/dbt-labs/dbt/releases/tag/v2.0.0-alpha.5","tags":["x_refsource_MISC"]}],"priority":{"score":12.7,"factors":[{"name":"EPSS percentile","points":7.0},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"dbt-labs","affectedVersions":[{"vendor":"dbt-labs","product":"dbt-core","versions":[">= 2.0.0-alpha.0, < 2.0.0-alpha.5"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-20T01:50:57.067215Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-101600","exploited":false,"provenance":"source"}}