PyPI: dbt-core
CVE-2024-40637
Safety vulnerability ID: SFTY-20240716-95920
Safety legacy ID: pyup.io-72255
When a user installs a package in dbt, they gain the capability to override macros, materializations, and other core components of dbt. This design feature enables packages to extend and customize dbt's functionality. However, it also allows a malicious package to replace these components with harmful code.
Overview
dbt has an implicit override for built-in materializations from installed packages
Advisory
When a user installs a package in dbt, they gain the capability to override macros, materializations, and other core components of dbt. This design feature enables packages to extend and customize dbt's functionality. However, it also allows a malicious package to replace these components with harmful code.
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20240716-95920/CVE-2024-40637
- https://github.com/dbt-labs/dbt-core/security/advisories/GHSA-p3f3-5ccg-83xq
- https://nvd.nist.gov/vuln/detail/CVE-2024-40637
- https://github.com/dbt-labs/dbt-core/commit/3c82a0296d227cb1be295356df314c11716f4ff6
- https://github.com/dbt-labs/dbt-core/commit/87ac4deb00cc9fe334706e42a365903a1d581624
- https://docs.getdbt.com/docs/build/packages
- https://docs.getdbt.com/reference/global-configs/legacy-behaviors#behavior-change-flags
- https://tempered.works/posts/2024/07/06/preventing-data-theft-with-gcp-service-controls
- 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://github.com/pypa/advisory-database/tree/main/vulns/dbt-core/PYSEC-2024-66.yaml
- https://github.com/advisories/GHSA-p3f3-5ccg-83xq
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
