{"id":"CVE-2026-100406","summary":"dbt: Unauthenticated Arbitrary SQL Execution in `dbt docs serve`","details":"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.","aliases":["GHSA-h2j2-2r7g-rff8"],"modified":"2026-10-16T02:47:28.250490785Z","published":"2026-10-14T18:27:24.863Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100406.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-200","CWE-22","CWE-306"]},"references":[{"type":"WEB","url":"https://github.com/dbt-labs/dbt/releases/tag/v2.0.0-alpha.5"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100406.json"},{"type":"ADVISORY","url":"https://github.com/dbt-labs/dbt/security/advisories/GHSA-h2j2-2r7g-rff8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100406"},{"type":"FIX","url":"https://github.com/dbt-labs/dbt/commit/3a5d26fe02b58382720d04cbd87143b7b6775413"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/dbt-labs/dbt","events":[{"introduced":"0"},{"fixed":"3a5d26fe02b58382720d04cbd87143b7b6775413"},{"fixed":"a994adfd08995108d79e21a3b1d19e09c9a12463"}],"database_specific":{"source":["AFFECTED_FIELD","REFERENCES"],"extracted_events":[{"introduced":"2.0.0-alpha.0"},{"fixed":"2.0.0-alpha.5"}]}}],"versions":["v1.11.0b4","v1.4.0b1","v1.3.0b2","v1.3.0b1","v1.2.0b1","v1.1.0b1","v1.0.0rc3","v1.0.0rc2","v1.0.0rc1","v1.0.0b2","v1.0.0b1","v0.21.0b1","v0.20.0rc1","v0.20.0b1","v0.19.0rc2","v0.19.0rc1","v0.19.0b1","v0.18.0","v0.18.0rc1","v0.18.0b2","v0.16.0b3","v0.16.0b1","v0.15.0","0.11.1","v0.11.0","v0.10.1","v0.10.0","v0.9.1","v0.9.0","v0.9.0a2","v0.9.0a1","v0.8.3","v0.8.2","v0.8.1","v0.8.0","v0.7.1","v0.7.0","v0.6.2","v0.6.1","v0.6.0","0.5.2","v0.5.1","v0.5.0","v0.4.7","0.4.1","v0.4.0","0.3.0","v0.2.3.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-100406.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}