Vulnerabilities in pkg:pypi/dbt-common

PACKAGE
Advisory Identifier: GHSA-w75w-9qv4-j5xj
Advisory Summary

CVE-2026-29790 is a LOW path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Dbt common libraries in the PyPI ecosystem. The issue involves dbt-common's commonprefix() doesn't protect against path traversal. Remediation is available by upgrading affected packages to version 1.34.2, 1.37.3.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/dbt-common

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/dbt-common. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-w75w-9qv4-j5xj CVE-2026-29790 LOW dbt-common's commonprefix() doesn't protect against path traversal

CVE-2026-29790 at a Glance

CVE Identifier CVE-2026-29790
GHSA Identifier GHSA-w75w-9qv4-j5xj
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Dbt common
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2026-29790

To remediate this vulnerability, upgrade all affected Dbt common dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

dbt-common fixed: 1.34.2
pip install dbt-common>=1.34.2
dbt-common fixed: 1.37.3
pip install dbt-common>=1.37.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show dbt-common

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-29790, inspect your installed packages using pip:

pip show dbt-common

Analyze the terminal output to locate any version of Dbt common in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.34.2), your application is affected.

Note: The pip show dbt-common command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Dbt common, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact _What kind of vulnerability is it? Who is impacted?_ 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. For example, when extracting to `/tmp/packages`, a crafted tarball could write files to `/tmp/packagesevil/` by exploiting the character-based prefix matching. This vulnerability affects users who: - Install dbt packages from untrusted sources - Process tarball archives through dbt-common's extraction utilities The practical risk is limited because: - Exploitation requires a malicious tarball to be processed - File writes are restricted to sibling directories with matching prefixes (not arbitrary paths) - Packages from trusted sources (dbt Hub) are not affected This is similar to CVE-2026-1703 in pip, which had a CVSS score of 3.9 (Low). ### Patches _Has the problem been patched? What versions should users upgrade to?_ Fixed in `dbt-common` version 1.37.3 & 1.34.2, and patched for dbt-core 1.11.7 and 1.10.20 releases. The fix replaces `os.path.commonprefix()` with `os.path.commonpath()`, which correctly compares paths by their components rather than characters. ### Workarounds _Is there a way for users to fix or remediate the vulnerability without upgrading?_ - Only install dbt packages from trusted sources (official dbt Hub, verified git repositories) - Avoid installing packages from untrusted URLs or unverified third parties - Review package contents before installation when sourcing from external locations ### Resources _Are there any links users can visit to find out more?_ 1. CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'): https://cwe.mitre.org/data/definitions/22.html 2. CVE-2026-1703 (similar vulnerability in pip): https://nvd.nist.gov/vuln/detail/CVE-2026-1703 3. pip fix PR #13777: https://github.com/pypa/pip/pull/13777 4. Python documentation on `commonpath` vs `commonprefix`: https://docs.python.org/3/library/os.path.html#os.path.commonpath

CVE-2026-29790 Affected Dbt common Versions

2 component(s)
Fixed Versions:
1.34.21.37.3
Product / Package Ecosystem Affected Versions Fixed Version
dbt-common
PyPI
< 1.34.2
1.34.2
dbt-common
PyPI
≥ 1.35.0
< 1.37.3
1.37.3

References

Frequently Asked Questions

What is CVE-2026-29790?
CVE-2026-29790 is a security vulnerability in Dbt common involving dbt-common's commonprefix() doesn't protect against path traversal under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Dbt common versions are affected?
Affected versions include releases prior to 1.34.2, 1.37.3 across affected packages: dbt-common.
What version fixes CVE-2026-29790?
Upgrading to 1.34.2, 1.37.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is dbt-common affected?
Yes, dbt-common is affected in releases prior to 1.34.2, 1.37.3. Upgrade your dependency to 1.34.2, 1.37.3 or later.
What CWE is associated with CVE-2026-29790?
CVE-2026-29790 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check PyPI dependencies for CVE-2026-29790?
Run the dependency tree command: 'pip show dbt-common'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-w75w-9qv4-j5xj",
  "modified" : "2026-03-06T22:51:40Z",
  "published" : "2026-03-05T00:59:10Z",
  "aliases" : [ "CVE-2026-29790" ],
  "summary" : "dbt-common's commonprefix() doesn't protect against path traversal",
  "details" : "### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\nA 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.\n\nFor example, when extracting to `/tmp/packages`, a crafted tarball could write files to `/tmp/packagesevil/` by exploiting the character-based prefix matching.\n\nThis vulnerability affects users who:\n- Install dbt packages from untrusted sources\n- Process tarball archives through dbt-common's extraction utilities\n\nThe practical risk is limited because:\n- Exploitation requires a malicious tarball to be processed\n- File writes are restricted to sibling directories with matching prefixes (not arbitrary paths)\n- Packages from trusted sources (dbt Hub) are not affected\n\nThis is similar to CVE-2026-1703 in pip, which had a CVSS score of 3.9 (Low).\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\nFixed in `dbt-common` version 1.37.3 & 1.34.2, and patched for dbt-core 1.11.7 and 1.10.20 releases.\n\nThe fix replaces `os.path.commonprefix()` with `os.path.commonpath()`, which correctly compares paths by their components rather than characters.\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\n- Only install dbt packages from trusted sources (official dbt Hub, verified git repositories)\n- Avoid installing packages from untrusted URLs or unverified third parties\n- Review package contents before installation when sourcing from external locations\n\n### Resources\n_Are there any links users can visit to find out more?_\n\n1. CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'): https://cwe.mitre.org/data/definitions/22.html\n2. CVE-2026-1703 (similar vulnerability in pip): https://nvd.nist.gov/vuln/detail/CVE-2026-1703\n3. pip fix PR #13777: https://github.com/pypa/pip/pull/13777\n4. Python documentation on `commonpath` vs `commonprefix`: https://docs.python.org/3/library/os.path.html#os.path.commonpath",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "dbt-common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.34.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "dbt-common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.35.0"
      }, {
        "fixed" : "1.37.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/dbt-labs/dbt-common/security/advisories/GHSA-w75w-9qv4-j5xj"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-29790"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/pip/pull/13777"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dbt-labs/dbt-common/commit/e547954a48bac9394ef6eb98432e429dce9a7709"
  }, {
    "type" : "WEB",
    "url" : "https://docs.python.org/3/library/os.path.html#os.path.commonpath"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-6vgw-5pg2-w6jp"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/dbt-labs/dbt-common"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-05T00:59:10Z",
    "nvd_published_at" : "2026-03-06T21:16:15Z"
  }
}