Skip to content
OpenAdvisories
Low · 2.0 CVE-2026-29790 EUVD-2026-10069GHSA-w75w-9qv4-j5xjPYSEC-2026-2440

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

Published Mar 6, 2026 · Updated Mar 9, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
dbt-labs dbt-common < 1.37.3, < 1.34.2 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI dbt-common < 1.34.2 1.34.2 GHSA-w75w-9qv4-j5xj
PyPI dbt-common >= 1.35.0, < 1.37.3 1.37.3 GHSA-w75w-9qv4-j5xj
PyPI dbt-common < 1.34.2 · >= 1.35.0, < 1.37.3 1.34.2, 1.37.3 PYSEC-2026-2440

References