Vulnerability · Published Mar 6, 2026 · Assigned by GitHub_M
CVE-2026-29790dbt-common: commonprefix() doesn't protect against path traversal
Low 2.0
In plain English
A low-severity path traversal in dbt-common from dbt-labs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 24% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | dbt-common | 1.34.2 | GHSA-w75w-9qv4-j5xj |
| PyPI | dbt-common | 1.37.3 | GHSA-w75w-9qv4-j5xj |
| PyPI | dbt-common | 1.34.2, 1.37.3 | PYSEC-2026-2440 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| dbt-labs | dbt-common | < 1.37.3< 1.34.2 |
Weakness: CWE-22 · 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
References
- https://github.com/dbt-labs/dbt-common/security/advisories/GHSA-w75w-9qv4-j5xj x_refsource_CONFIRM
- https://github.com/pypa/pip/pull/13777 x_refsource_MISC
- https://github.com/dbt-labs/dbt-common/commit/e547954a48bac9394ef6eb98432e429dce9a7709 x_refsource_MISC