CVE-2026-29790CWE-22

dbt-common: commonprefix() doesn't protect against path traversal

Low · published March 6, 2026

CVSS v4.0
2.0
EPSS
0%
Percentile
32.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
2.0 · LOW
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
EPSS
0.00393 · 32.3th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2026-03-06T20:37Z
EPSS history
Timeline
  • 06 MAR 20:37Z
    dbt-common: commonprefix() doesn't protect against path traversal
    cvelistv5