{"cve":"CVE-2024-40637","nvd":{"published":"2024-07-16T23:15:24.260","modified":"2026-10-30T14:45:52.563","status":"Analyzed","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`.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.3},"cwes":["CWE-94","CWE-74"],"references":["https://docs.getdbt.com/docs/build/packages","https://docs.getdbt.com/reference/global-configs/legacy-behaviors#behavior-change-flags","https://github.com/dbt-labs/dbt-core/commit/3c82a0296d227cb1be295356df314c11716f4ff6","https://github.com/dbt-labs/dbt-core/commit/87ac4deb00cc9fe334706e42a365903a1d581624","https://github.com/dbt-labs/dbt-core/security/advisories/GHSA-p3f3-5ccg-83xq"],"products":["getdbt:dbt-core"],"source":"nvd","synced_at":"2026-10-30T15:05:48.213661142+00:00"},"epss":{"cve":"CVE-2024-40637","score":0.00372,"percentile":0.31161,"date":"2026-10-30"},"kev":null,"osv":[{"id":"GHSA-p3f3-5ccg-83xq","url":"https://osv.dev/vulnerability/GHSA-p3f3-5ccg-83xq","summary":"dbt has an implicit override for built-in materializations from installed packages","modified":"2026-09-10T03:50:16.795425631Z","packages":[{"ecosystem":"PyPI","name":"dbt-core","purl":"pkg:pypi/dbt-core","ranges":[">=1.6.0 <1.6.14"],"fixed":["1.6.14"]},{"ecosystem":"PyPI","name":"dbt-core","purl":"pkg:pypi/dbt-core","ranges":[">=1.7.0 <1.7.14"],"fixed":["1.7.14"]}]},{"id":"PYSEC-2024-66","url":"https://osv.dev/vulnerability/PYSEC-2024-66","summary":"","modified":"2024-07-19T17:41:45.635162Z","packages":[{"ecosystem":"PyPI","name":"dbt-core","purl":"pkg:pypi/dbt-core","ranges":[">=1.7.0 <1.7.14","<1.6.14"],"fixed":["1.7.14","1.6.14"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}