PyPI: dbt-core

CVE-2024-40637

Safety vulnerability ID: SFTY-20240716-95920

Safety legacy ID: pyup.io-72255

When a user installs a package in dbt, they gain the capability to override macros, materializations, and other core components of dbt. This design feature enables packages to extend and customize dbt's functionality. However, it also allows a malicious package to replace these components with harmful code.

Created at: Oct 30, 2026Updated at: Oct 30, 2026

Overview

dbt has an implicit override for built-in materializations from installed packages

Advisory

When a user installs a package in dbt, they gain the capability to override macros, materializations, and other core components of dbt. This design feature enables packages to extend and customize dbt's functionality. However, it also allows a malicious package to replace these components with harmful code.

Affected Package

Affecting dbt-core package, versions>=1.6.0 ,<1.6.14>=1.7.0,<1.7.14

Also affects

---

How to Fix

Upgradedbt-coreto1.6.141.7.14or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more