dbt-common: commonprefix() doesn't protect against path traversal
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| dbt-labs | dbt-common | affected |
|
Configuration 1 [-]
|
No data.
| Vendor | Product | Versions | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dbt-labs | Dbt-common |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-w75w-9qv4-j5xj | dbt-common's commonprefix() doesn't protect against path traversal |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.306% probability within 30 days)
| 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
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| 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
|