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.

Severity (CVSS 4.0)2.0Low
Exploit odds (30 days)0.3%top 76.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
PyPIdbt-common1.34.2GHSA-w75w-9qv4-j5xj
PyPIdbt-common1.37.3GHSA-w75w-9qv4-j5xj
PyPIdbt-common1.34.2, 1.37.3PYSEC-2026-2440

Affected products (as reported)

VendorProductVersions
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