CVE-2024-40637Getdbt Dbt-core
High 7.3
Follow: this CVE · Getdbt · Getdbt Dbt-core We alert you by email or Slack (account required).
- Priority
- 44
- CVSS 3.1
- 7.3
- EPSS
- 0.5% probability of exploitation in 30 days · percentile 39
- Auth required
- Yes
- Published
- Jul 16, 2024
- Updated
- Oct 30, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
What happens
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`.
What to do
- Apply the vendor's security update for Dbt-core.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | dbt-core |
≥ 1.6.0 < 1.6.14 |
1.6.14 |
pip install "dbt-core>=1.6.14" |
| PyPI | dbt-core |
≥ 1.7.0 < 1.7.14 |
1.7.14 |
pip install "dbt-core>=1.7.14" |
| PyPI | dbt-core |
≥ 1.7.0 < 1.7.14 |
1.7.14 |
pip install "dbt-core>=1.7.14" |
| PyPI | dbt-core |
< 1.6.14 |
1.6.14 |
pip install "dbt-core>=1.6.14" |
Per OSV / GitHub Advisories (GHSA-p3f3-5ccg-83xq, PYSEC-2024-66). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| getdbt | dbt-core | ≥ 1.6.0 < 1.6.14 |
| getdbt | dbt-core | ≥ 1.7.0 < 1.7.14 |
Official sources
References
Links published by the sources. Open them with care.
- docs.getdbt.com Product
- docs.getdbt.com Vendor Advisory
- github.com Patch
- github.com Patch
- github.com Vendor Advisory Mitigation
- tempered.works Exploit Third Party Advisory
- www.elementary-data.com Exploit Third Party Advisory
- www.equalexperts.com Exploit Third Party Advisory