{"id":"CVE-2026-29790","published":"2026-03-06T20:37:42Z","modified":"2026-03-09T20:54:30Z","title":"dbt-common: commonprefix() doesn't protect against path traversal","vendor":"dbt-labs","product":"dbt-common","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2,"severity":"LOW","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00306,"percentile":0.23813,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/dbt-labs/dbt-common/security/advisories/GHSA-w75w-9qv4-j5xj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pypa/pip/pull/13777","tags":["x_refsource_MISC"]},{"url":"https://github.com/dbt-labs/dbt-common/commit/e547954a48bac9394ef6eb98432e429dce9a7709","tags":["x_refsource_MISC"]}],"priority":{"score":6.2,"factors":[{"name":"EPSS percentile","points":4.76},{"name":"CVSS severity","points":1.4}]},"vendorSlug":"dbt-labs","affectedVersions":[{"vendor":"dbt-labs","product":"dbt-common","versions":["< 1.37.3","< 1.34.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-09T20:50:37.998764Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"dbt-common","vulnerableRanges":["<1.34.2",">=1.35.0, <1.37.3"],"patched":["1.34.2","1.37.3"],"from":["GHSA-w75w-9qv4-j5xj","PYSEC-2026-2440"],"provenance":"source"}],"summary":{"text":"The flaw is in the safe_extract() function of dbt-common, the shared utilities library used by dbt-core and its adapter implementations, where tarball extraction validates destination paths using os.path.commonprefix(). Because that check compares paths character by character rather than by path component, a crafted tarball can write files into sibling directories that share a matching name prefix with the intended destination. Exploiting this requires an attacker to supply a malicious tarball for extraction, and the attack depends on a local user being involved in the extraction process.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:21:20Z"},"euvd":{"id":"EUVD-2026-10069","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-python-packaging-authority-pip-cve-2025-8869","parents":[{"from":"CVE-2026-1703","to":"CVE-2026-29790","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-w75w-9qv4-j5xj","via":"reference","url":"https://github.com/advisories/GHSA-6vgw-5pg2-w6jp"},{"kind":"osv-related","provenance":"source","id":"PYSEC-2026-2440","via":"reference","url":"https://github.com/advisories/GHSA-6vgw-5pg2-w6jp"}]}]}}