CVE-2024-40637
HIGH 7.3CVSS 3.1dbt has an implicit override for built-in materializations from installed packages
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.
- Published
- 16 Jul 2024
- Last modified
- 30 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-74CWE-89CWE-913CWE-94
- Also known as
- GHSA-p3f3-5ccg-83xqPYSEC-2024-66
- Sources
- NVDJSONOSV GHSA-p3f3-5ccg-83xqJSONOSV PYSEC-2024-66JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N | |
| OSV | PyPA | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.2 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.2 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | getdbt | dbt-corecpe:2.3:a:getdbt:dbt-core:*:*:*:*:*:python:*:* |
>= 1.6.0, < 1.6.14 | 1.6.14 |
| NVD | getdbt | dbt-corecpe:2.3:a:getdbt:dbt-core:*:*:*:*:*:python:*:* |
>= 1.7.0, < 1.7.14 | 1.7.14 |
| OSV | PyPI | dbt-core | >= 1.6.0, < 1.6.14 | 1.6.14 |
| OSV | PyPI | dbt-core | >= 1.7.0, < 1.7.14 | 1.7.14 |
| OSV | PyPI | dbt-core | >= 1.7.0, < 1.7.14; < 1.6.14 | 1.7.14, 1.6.14 |
References
- https://docs.getdbt.com/docs/build/packages · Product, WEB
- https://docs.getdbt.com/reference/global-configs/legacy-behaviors#behavior-change-flags · Vendor Advisory, WEB, ADVISORY
- https://github.com/dbt-labs/dbt-core/commit/3c82a0296d227cb1be295356df314c11716f4ff6 · Patch, WEB, FIX
- https://github.com/dbt-labs/dbt-core/commit/87ac4deb00cc9fe334706e42a365903a1d581624 · Patch, WEB, FIX
- https://github.com/dbt-labs/dbt-core/security/advisories/GHSA-p3f3-5ccg-83xq · Vendor Advisory, Mitigation, WEB, ADVISORY
- https://tempered.works/posts/2024/07/06/preventing-data-theft-with-gcp-service-controls · Exploit, Third Party Advisory, WEB
- https://www.elementary-data.com/post/are-dbt-packages-secure-the-answer-lies-in-your-dwh-policies · Exploit, Third Party Advisory, WEB
- https://www.equalexperts.com/blog/tech-focus/are-you-at-risk-from-this-critical-dbt-vulnerability · Exploit, Third Party Advisory, WEB, ARTICLE
- https://nvd.nist.gov/vuln/detail/CVE-2024-40637 · ADVISORY
- https://github.com/dbt-labs/dbt-core · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/dbt-core/PYSEC-2024-66.yaml · WEB
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 16 Jul 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 16 Jul 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 17 Jul 2024)