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

- Severity: Low 2.0 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 26% of CVEs (2026-12-01)
- Published: 2026-03-05T00:59:10.000Z
- Modified: 2026-09-10T03:50:41.434Z
- Also known as: GHSA-w75w-9qv4-j5xj, PYSEC-2026-2440
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- dbt-labs dbt-common: < 1.37.3; < 1.34.2
- dbt-common (PyPI): before 1.34.2; from 1.35.0 before 1.37.3
- getdbt dbt-common: before 1.34.2; from 1.35.0 before 1.37.3

## Every score

- GitHub_M: CVSS:4.0 2.0 Low `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`
- GitHub: CVSS:4.0 Low `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: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- PyPA Advisory Database: 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`

## References

- <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://github.com/dbt-labs/dbt-common/commit/e547954a48bac9394ef6eb98432e429dce9a7709> (patch, 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)

## Sources

- CVE List: [CVE-2026-29790](https://www.cve.org/CVERecord?id=CVE-2026-29790), CVE Terms of Use, modified 2026-03-09
- GitHub Advisory Database: [GHSA-w75w-9qv4-j5xj](https://github.com/advisories/GHSA-w75w-9qv4-j5xj), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-29790](https://nvd.nist.gov/vuln/detail/CVE-2026-29790), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-2440](https://osv.dev/vulnerability/PYSEC-2026-2440), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-29790 · Whole record: https://cve.day/CVE-2026-29790.json · Rebuilt by cve.day 2026-11-25T22:59:15.421Z
