CVE-2026-44968
Received Received - Intake

Command Injection in dbt-mcp

Vulnerability report for CVE-2026-44968, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-16

Last updated on: 2026-07-16

Assigner: GitHub, Inc.

Description

dbt-mcp is a Model Context Protocol server for interacting with dbt. Prior to 1.17.1, _run_dbt_command() in src/dbt_mcp/dbt_cli/tools.py appended unsanitized node_selection and resource_type values to the dbt subprocess argument list, allowing an MCP client to inject dbt global flags such as --profiles-dir, --project-dir, and --target into subprocess.Popen even though shell=False prevents shell metacharacter injection. This issue is fixed in version 1.17.1.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-16
Last Modified
2026-07-16
Generated
2026-07-16
AI Q&A
2026-07-16
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
dbt dbt_mcp to 1.17.1 (exc)
dbt-labs dbt-mcp 1.17.1
dbt-labs dbt-mcp to 1.17.1 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-88 The product constructs a string for a command to be executed by a separate component in another control sphere, but it does not properly delimit the intended arguments, options, or switches within that command string.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-44968 is an argument injection flaw in dbt-mcp versions up to 1.17.0. The _run_dbt_command() function in src/dbt_mcp/dbt_cli/tools.py appends unsanitized node_selection and resource_type values to dbt subprocess arguments. This allows an MCP client to inject global flags like --profiles-dir, --project-dir, or --target into the command even with shell=False, enabling unintended behavior such as loading malicious configs or redirecting execution paths.

Detection Guidance

To detect this vulnerability, check the version of dbt-mcp installed on your system. If it is below 1.17.1, the system is vulnerable. Run: dbt-mcp --version. Additionally, review logs for suspicious dbt command executions with injected flags like --profiles-dir or --project-dir.

Impact Analysis

An attacker with local access could exploit this to override dbt settings like profiles directory or project directory. This could lead to execution with attacker-controlled database settings, potential data exposure, or unauthorized modifications to dbt projects. The impact includes high confidentiality and integrity risks under specific conditions.

Mitigation Strategies

Upgrade dbt-mcp to version 1.17.1 or later immediately. This version includes input validation to prevent flag injection. After upgrading, monitor logs for any unusual activity related to dbt command execution.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-44968. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart