CVE-2026-29790
LOW 2.0CVSS 4.0dbt-common's commonprefix() doesn't protect against path traversal
dbt-common is the shared common utilities for dbt-core and adapter implementations use. Prior to versions 1.34.2 and 1.37.3, a path traversal vulnerability exists in dbt-common's safe_extract() function used when extracting tarball archives. The function uses os.path.commonprefix() to validate that extracted files remain within the intended destination directory. However, commonprefix() compares paths character-by-character rather than by path components, allowing a malicious tarball to write files to sibling directories with matching name prefixes. This issue has been patched in versions 1.34.2 and 1.37.3.
- Published
- 6 Mar 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22
- Also known as
- GHSA-w75w-9qv4-j5xjPYSEC-2026-2440
- Sources
- NVDJSONOSV GHSA-w75w-9qv4-j5xjJSONOSV PYSEC-2026-2440JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | LOW 2.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N | |
| OSV | PyPA | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | getdbt | dbt-commoncpe:2.3:a:getdbt:dbt-common:*:*:*:*:*:*:*:* |
< 1.34.2 | 1.34.2 |
| NVD | getdbt | dbt-commoncpe:2.3:a:getdbt:dbt-common:*:*:*:*:*:*:*:* |
>= 1.35.0, < 1.37.3 | 1.37.3 |
| OSV | PyPI | dbt-common | < 1.34.2 | 1.34.2 |
| OSV | PyPI | dbt-common | >= 1.35.0, < 1.37.3 | 1.37.3 |
| OSV | PyPI | dbt-common | < 1.34.2; >= 1.35.0, < 1.37.3 | 1.34.2, 1.37.3 |
References
- https://github.com/dbt-labs/dbt-common/commit/e547954a48bac9394ef6eb98432e429dce9a7709 · Patch, WEB
- https://github.com/dbt-labs/dbt-common/security/advisories/GHSA-w75w-9qv4-j5xj · Mitigation, Vendor Advisory, WEB
- https://github.com/pypa/pip/pull/13777 · Issue Tracking, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-29790 · ADVISORY
- https://docs.python.org/3/library/os.path.html#os.path.commonpath · WEB
- https://github.com/advisories/GHSA-6vgw-5pg2-w6jp · ADVISORY
- https://github.com/dbt-labs/dbt-common · PACKAGE
- https://pypi.org/project/dbt-common · PACKAGE
- https://github.com/advisories/GHSA-w75w-9qv4-j5xj · ADVISORY
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 6 Mar 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 5 Mar 2026)