CVE-2026-29790

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

Published Mar 6, 2026 CVSS 4.0 · 2 Low EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-w75w-9qv4-j5xj dbt-common's commonprefix() doesn't protect against path traversal
History
Type Values Removed Values Added
First Time appeared Getdbt
Getdbt dbt-common
CPEs cpe:2.3:a:getdbt:dbt-common:*:*:*:*:*:*:*:*
Vendors & Products Getdbt
Getdbt dbt-common
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Dbt-labs
Dbt-labs dbt-common
Vendors & Products Dbt-labs
Dbt-labs dbt-common
Type Values Removed Values Added
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.
Title dbt-common: commonprefix() doesn't protect against path traversal
Weaknesses CWE-22
References
Metrics cvssV4_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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 9, 2026, 8:54 PM
Reserved
Mar 4, 2026, 4:26 PM
Status
Analyzed
Published
Mar 6, 2026, 9:16 PM
Modified
Jun 17, 2026, 10:29 AM