Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2024-40637 — dbt-core

🟢 CVSS 2.0 — Low ⚠️ Exploit Public CWE-74 OSV
2.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

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

Impact

_What kind of vulnerability is it? Who is impacted?_

When a user installs a [package](https://docs.getdbt.com/docs/build/packages) 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.

Patches

_Has the problem been patched? What versions should users upgrade to?_

Fixed on 1.8.0, and patched for 1.6.14 and 1.7.14 releases.

Workarounds

_Is there a way for users to fix or remediate the vulnerability without upgrading?_

Previously, a materialization defined in a package that shared a name with one of the built-in materializations would be preferred by default, without user action which is surprising and makes it more difficult to detect the insecure behaviour. We've changed the default behaviour to require explicit overrides by users in 1.8.0, and provided the ability to opt-out of built-in materialization overrides in 1.6 and 1.7 via the flags.require_explicit_package_overrides_for_builtin_materializations: False configuration in dbt_project.yml

Versions older than 1.6 are EOL.

References

_Are there any links users can visit to find out more?_

  • dbt documentation: https://docs.getdbt.com/reference/global-configs/legacy-behaviors#behavior-change-flags
  • https://www.elementary-data.com/post/are-dbt-packages-secure-the-answer-lies-in-your-dwh-policies
  • https://www.equalexperts.com/blog/tech-focus/are-you-at-risk-from-this-critical-dbt-vulnerability/
  • https://tempered.works/posts/2024/07/06/preventing-data-theft-with-gcp-service-controls/

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability high.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

  • Attack vector: Local — a local account, shell or session on the host is needed.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Privileges required: Low — an ordinary user account is enough.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Unchanged — the damage stays inside the vulnerable component.
  • Confidentiality impact: High — total loss, or loss the attacker controls.
  • Integrity impact: High — total loss, or loss the attacker controls.
  • Availability impact: High — total loss, or loss the attacker controls.

Weakness class

CVE-2024-40637 is classified as CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'). The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or…

Affected software

CVE-2024-40637 is recorded against 1 package.

  • dbt-core (from 1.7.0 up to 1.6.14)

Timeline and source

Published on 16 July 2024 and last revised on 17 June 2026. A public exploit is known to exist, which raises the urgency of patching considerably. A vendor advisory or fix has been published. Record sourced from OSV.

References

github.com (Advisory)
github.com (Fix)
github.com (Fix)
docs.getdbt.com (Web)
docs.getdbt.com (Advisory)
tempered.works (Web)
www.elementary-data.com (Web)
www.equalexperts.com (Article)

Other advisories for this package

dbt-core has other advisories on record. If you are patching this one, these are worth checking on the same host:

Same weakness in other software

These advisories are the same class of weakness (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) in other software:

Details

Severity LOW
CVSS Score 2.0
CVSS Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE CWE-74
Public Exploit ⚠️ Yes
Source OSV
Published 2024-07-16
Updated 2026-08-20
Modified 2026-06-17

Affected Packages

Software From version Fixed in
dbt-core 1.7.0 1.6.14

Similar Threats

Exploit Protection

Are you running dbt-core?

CVE-2024-40637 carries CVSS 2.0 Low rating and a public exploit already exists. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.

Check My Site For CVE-2024-40637 →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2024
✓