GHSA-p72q-h37j-3hq7 dbt uses a SQLparse version with a high vulnerability
- Published
- Updated
- Exploit status
- No public exploit known
Description
Summary
Using a version of sqlparse that has a security vulnerability and no way to update in current version of dbt core. Snyk recommends using sqlparse==0.5 but this causes a conflict with dbt. Snyk states the issues is a recursion error: SNYK-PYTHON-SQLPARSE-6615674.
Details
Dependency conflict error message:
The conflict is caused by:
The user requested sqlparse==0.5
dbt-core 1.7.10 depends on sqlparse<0.5 and >=0.2.3
Resolution was to pin sqlparse >=0.5.0, <0.6.0 in dbt-core, patched in 1.6.13 and 1.7.13.
PoC
From Snyk:
import sqlparse
sqlparse.parse('[' * 10000 + ']' * 10000)
Impact
Snyk classifies it as high 7.5/10.
Patches
The bug has been fixed in dbt-core v1.6.13 and dbt-core v1.7.13.
Mitigations
Bump dbt-core 1.6 and 1.7 dependencies to 1.6.13 and 1.7.13 respectively
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi dbt-core(PyPI) | = 1.6.0; = 1.6.1; = 1.6.1rc1; = 1.6.2 +25 more | 1.6.13, 1.7.13 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi dbt-core(PyPI) | >= 1.6.0, < 1.6.13 | 1.6.13 |
| pypi dbt-core(PyPI) | = 1.6.0 | No fix listed |
| pypi dbt-core(PyPI) | = 1.6.1 | No fix listed |
| pypi dbt-core(PyPI) | = 1.6.10 | No fix listed |
| pypi dbt-core(PyPI) | = 1.6.11 | No fix listed |
| pypi dbt-core(PyPI) | = 1.6.12 | No fix listed |
| pypi dbt-core(PyPI) | = 1.6.1rc1 | No fix listed |
| pypi dbt-core(PyPI) | = 1.6.2 | No fix listed |
| pypi dbt-core(PyPI) | = 1.6.3 | No fix listed |
| pypi dbt-core(PyPI) | = 1.6.4 | No fix listed |
| pypi dbt-core(PyPI) | = 1.6.5 | No fix listed |
| pypi dbt-core(PyPI) | = 1.6.6 | No fix listed |
| pypi dbt-core(PyPI) | = 1.6.7 | No fix listed |
| pypi dbt-core(PyPI) | = 1.6.8 | No fix listed |
| pypi dbt-core(PyPI) | = 1.6.9 | No fix listed |
| pypi dbt-core(PyPI) | >= 1.7.0, < 1.7.13 | 1.7.13 |
| pypi dbt-core(PyPI) | = 1.7.0 | No fix listed |
| pypi dbt-core(PyPI) | = 1.7.1 | No fix listed |
| pypi dbt-core(PyPI) | = 1.7.10 | No fix listed |
| pypi dbt-core(PyPI) | = 1.7.11 | No fix listed |
| pypi dbt-core(PyPI) | = 1.7.12 | No fix listed |
| pypi dbt-core(PyPI) | = 1.7.2 | No fix listed |
| pypi dbt-core(PyPI) | = 1.7.3 | No fix listed |
| pypi dbt-core(PyPI) | = 1.7.4 | No fix listed |
| pypi dbt-core(PyPI) | = 1.7.5 | No fix listed |
Show 4 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi dbt-core(PyPI) | = 1.7.6 | No fix listed |
| pypi dbt-core(PyPI) | = 1.7.7 | No fix listed |
| pypi dbt-core(PyPI) | = 1.7.8 | No fix listed |
| pypi dbt-core(PyPI) | = 1.7.9 | No fix listed |
References
- github.com vendor-advisory
- github.com vendor-advisory
- github.com product
- security.snyk.io
- github.com