CVE-2026-29790 json
dbt-common: commonprefix() doesn't protect against path traversal
published 2026-03-05 8 mo ago modified 2026-09-10 1 mo ago also GHSA-w75w-9qv4-j5xj , PYSEC-2026-2440 , EUVD-2026-10069
- cvss
- 5.3
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 23%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi dbt-common 1.34.2, 1.37.3
- getdbt dbt-common 1.34.2, 1.37.3
- github.com/dbt-labs/dbt-common@e547954 commit
- github.com/pypa/pip#13777 pull request
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 8 mo ago
Exploit prediction
0.31% chance of exploitation in the next 30 days, higher than 23% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 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 |
| CNA | 4.0 | 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 |
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | dbt-common | <1.34.2 >=1.35.0, <1.37.3 |
1.34.2 1.37.3 |
Affected products
- dbt-labs dbt-common
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/pypa/pip/pull/13777
web, issue-tracking
-
github.com
/dbt-labs/dbt-common/commit/e547954a48bac9394ef6eb98432e429dce9a7709
web, patch
-
github.com
/dbt-labs/dbt-common/security/advisories/GHSA-w75w-9qv4-j5xj
web, mitigation, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-29790
advisory
-
docs.python.org
/3/library/os.path.html#os.path.commonpath
web
-
github.com
/advisories/GHSA-6vgw-5pg2-w6jp
advisory
-
github.com
/dbt-labs/dbt-common
package
-
pypi.org
/project/dbt-common
package
-
github.com
/advisories/GHSA-w75w-9qv4-j5xj
advisory
Sources
- CVE List CVE-2026-29790
- GitHub Advisory GHSA-w75w-9qv4-j5xj
- NVD CVE-2026-29790
- OSV PYSEC-2026-2440
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.