{"id":"CVE-2026-29790","summary":"dbt-common: commonprefix() doesn't protect against path traversal","details":"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.","aliases":["GHSA-w75w-9qv4-j5xj"],"modified":"2026-06-09T18:29:27.652701165Z","published":"2026-03-06T20:37:42.354Z","related":["CGA-55m9-wc52-v96c"],"database_specific":{"cwe_ids":["CWE-22"],"cna_assigner":"GitHub_M","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/29xxx/CVE-2026-29790.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/29xxx/CVE-2026-29790.json"},{"type":"ADVISORY","url":"https://github.com/dbt-labs/dbt-common/security/advisories/GHSA-w75w-9qv4-j5xj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-29790"},{"type":"FIX","url":"https://github.com/dbt-labs/dbt-common/commit/e547954a48bac9394ef6eb98432e429dce9a7709"},{"type":"FIX","url":"https://github.com/pypa/pip/pull/13777"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/dbt-labs/dbt-common","events":[{"introduced":"0"},{"fixed":"e547954a48bac9394ef6eb98432e429dce9a7709"}]}],"versions":["v1.3.0","v1.34.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-29790.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"fixed":"1.34.2"}]},{"events":[{"introduced":"1.35.0"},{"fixed":"1.37.3"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"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"}]}