CVE-2024-40637

Implicit override for built-in materializations from installed packages in dbt-core

HIGH
7.8
CVSS Score
Published: July 16, 2024 at 10:56 PM UTC
Updated: June 17, 2026 at 07:46 AM UTC
2 products affected across 2 vendorsDbt CoreDbt Core

Using dbt-core by dbt-labs?

Get instant alerts when new vulnerabilities affect dbt-core - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.4%
SSVC
No known exploit

Description

dbt enables data analysts and engineers to transform their data using the same practices that software engineers use to build applications. When a user installs a package in dbt, it has the ability to override macros, materializations, and other core components of dbt. This is by design, as it allows packages to extend and customize dbt's functionality. However, this also means that a malicious package could potentially override these components with harmful code. This issue has been fixed in versions 1.8.0, 1.6.14 and 1.7.14. Users are advised to upgrade. There are no kn own workarounds for this vulnerability. Users updating to either 1.6.14 or 1.7.14 will need to set `flags.require_explicit_package_overrides_for_builtin_materializations: False` in their configuration in `dbt_project.yml`.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 1.6.141.7.0 ≤ v < 1.7.14
Affected range stops below 1.6.14, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.7.14, so it looks safe — our inference, not a vendor statement
v < 1.6.14v < 1.7.14
Affected range stops below 1.6.14, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.7.14, so it looks safe — our inference, not a vendor statement

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-74CWE-89

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card