# CVE-2026-29790: dbt-common: commonprefix() doesn't protect against path traversal

> CVE-2026-29790: dbt-common: commonprefix() doesn't protect against path traversal. CVSS 5.3 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2026-29790
Last updated: 2026-06-17T10:29:53Z

- Published: 2026-03-06 20:37 UTC · Updated: 2026-06-17 10:29 UTC · Assigner: GitHub\_M
- CVSS: 5.3 (CVSS 3.1) · Severity: Medium · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- EPSS: 0.28%, 20th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-22

## Description

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.

## Affected vendors and products

- dbt-labs: dbt-common

## Tracked companies

- [dbt Labs](https://rewindex.com/company/dbt-labs.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2026-29790)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2026-29790)
- [https://github.com/dbt-labs/dbt-common/commit/e547954a48bac9394ef6eb98432e429dce9a7709](https://github.com/dbt-labs/dbt-common/commit/e547954a48bac9394ef6eb98432e429dce9a7709)
- [https://github.com/dbt-labs/dbt-common/security/advisories/GHSA-w75w-9qv4-j5xj](https://github.com/dbt-labs/dbt-common/security/advisories/GHSA-w75w-9qv4-j5xj)
- [https://github.com/pypa/pip/pull/13777](https://github.com/pypa/pip/pull/13777)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2026-29790 · Markdown: https://rewindex.com/cve/CVE-2026-29790.md · JSON: https://rewindex.com/api/v1/cves/CVE-2026-29790 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T02:11:26.465Z
