CVE-2026-29790 dbt-common: commonprefix() doesn't protect against path traversal
A path traversal flaw in dbt-common allows malicious tarballs to write files outside the intended directory via flawed prefix validation.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-29790?
CVE-2026-29790 is a low-severity path traversal vulnerability in dbt-labs dbt-common, published on 6 Mar 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
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.
Weakness: CWE-22
Which versions are affected by CVE-2026-29790?
5 open source packages ship an affected version, including dbt-common. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
dbt-common PyPI | All versions | 1.34.2, 1.37.3 |
dbt-common PyPI | All versions | 1.34.2 |
dbt-common PyPI | All versions | 1.34.2 |
dbt-common PyPI | From 1.35.0 | 1.37.3 |
dbt-common PyPI | From 1.35.0 | 1.37.3 |
Products include Getdbt Dbt-Common.
How do I fix CVE-2026-29790?
Upgrade dbt-common to a fixed version for your release line: 1.34.2 or 1.37.3.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-29790 being exploited?
There is no known exploitation of CVE-2026-29790 in the wild and no public exploit code.
Sources
Also known as GHSA-w75w-9qv4-j5xj, MINI-jcm3-5cvm-wjp9, PYSEC-2026-2440.