{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-29790","id":"CVE-2026-29790","title":"dbt-common: commonprefix() doesn't protect against path traversal","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 p","descriptionLong":"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.","published":"2026-03-06T20:37:42.354Z","updated":"2026-10-28T02:31:07.016960407Z","reserved":"2026-03-04T16:26:02.900Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":2,"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","rating":"low","source":"GitHub_M"},"metrics":[{"version":"4.0","score":2,"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","rating":"low","source":"GitHub_M"},{"version":"4.0","score":2,"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/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","rating":"low","source":"github.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"low","source":"GitHub"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"NVD"}],"rating":"low","products":["dbt-labs dbt-common"],"affectedProducts":[{"vendor":"dbt-labs","product":"dbt-common","defaultStatus":null,"versions":[{"version":"< 1.37.3","status":"affected"},{"version":"< 1.34.2","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"dbt-common","purl":"pkg:pypi/dbt-common","ranges":["<1.34.2",">=1.35.0 <1.37.3"],"fixed":["1.34.2","1.37.3"],"advisory":"GHSA-w75w-9qv4-j5xj"}],"cwes":["CWE-22"],"aliases":["GHSA-w75w-9qv4-j5xj","PYSEC-2026-2440"],"references":[{"url":"https://github.com/dbt-labs/dbt-common/security/advisories/GHSA-w75w-9qv4-j5xj","tags":["x_refsource_CONFIRM","Mitigation","Vendor Advisory","advisory","web"]},{"url":"https://github.com/pypa/pip/pull/13777","tags":["x_refsource_MISC","Issue Tracking","fix","web"]},{"url":"https://github.com/dbt-labs/dbt-common/commit/e547954a48bac9394ef6eb98432e429dce9a7709","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/29xxx/CVE-2026-29790.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-29790","tags":["advisory"]},{"url":"https://docs.python.org/3/library/os.path.html#os.path.commonpath","tags":["web"]},{"url":"https://github.com/advisories/GHSA-6vgw-5pg2-w6jp","tags":["advisory"]},{"url":"https://github.com/dbt-labs/dbt-common","tags":["package"]},{"url":"https://pypi.org/project/dbt-common","tags":["package"]},{"url":"https://github.com/advisories/GHSA-w75w-9qv4-j5xj","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00306,"epssPercentile":0.23901,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-29790","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-29790","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-29790","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-w75w-9qv4-j5xj","ok":true,"note":"GHSA-w75w-9qv4-j5xj"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-29790","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}