# CVE-2024-40637: Implicit override for built-in materializations from installed packages in dbt-core

- Severity: Medium 4.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 33% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2024-07-16T22:56:35.541Z
- Modified: 2026-10-30T14:45:52.563Z
- Also known as: GHSA-p3f3-5ccg-83xq, PYSEC-2024-66
- Weaknesses: CWE-74, CWE-89, CWE-94, CWE-913
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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`.

(As written by CVE List.)

## Affected

- dbt-labs dbt-core: < 1.6.14; >= 1.7.0, < 1.7.14
- dbt-core (PyPI): from 1.6.0 before 1.6.14; from 1.7.0 before 1.7.14; before 3c82a0296d227cb1be295356df314c11716f4ff6; before 87ac4deb00cc9fe334706e42a365903a1d581624; before 1.6.14
- getdbt dbt-core: from 1.6.0 before 1.6.14; from 1.7.0 before 1.7.14

## Every score

- GitHub_M: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 4.2 Low `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L`
- GitHub: CVSS:4.0 Low `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`
- NVD: CVSS:3.1 7.3 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <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, article, third-party-advisory, web)
- <https://github.com/dbt-labs/dbt-core/security/advisories/GHSA-p3f3-5ccg-83xq> (advisory, mitigation, vendor-advisory, web)
- <https://github.com/dbt-labs/dbt-core/commit/3c82a0296d227cb1be295356df314c11716f4ff6> (fix, patch, web)
- <https://github.com/dbt-labs/dbt-core/commit/87ac4deb00cc9fe334706e42a365903a1d581624> (fix, patch, web)
- <https://docs.getdbt.com/docs/build/packages> (product, web)
- <https://docs.getdbt.com/reference/global-configs/legacy-behaviors#behavior-change-flags> (advisory, vendor-advisory, web)
- <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)

## Sources

- CVE List: [CVE-2024-40637](https://www.cve.org/CVERecord?id=CVE-2024-40637), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-p3f3-5ccg-83xq](https://github.com/advisories/GHSA-p3f3-5ccg-83xq), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-40637](https://nvd.nist.gov/vuln/detail/CVE-2024-40637), Public domain, modified 2026-10-30
- PyPA Advisory Database: [PYSEC-2024-66](https://osv.dev/vulnerability/PYSEC-2024-66), CC-BY-4.0, modified 2024-07-19

---

Page: https://cve.day/CVE-2024-40637 · Whole record: https://cve.day/CVE-2024-40637.json · Rebuilt by cve.day 2026-11-25T22:58:43.000Z
