GHSA-p72q-h37j-3hq7
HIGHGitHub ratingUsing 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.
// detailsDependency 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.3Resolution was to pin sqlparse >=0.5.0, <0.6.0 in dbt-core, patched in 1.6.13 and 1.7.13.
// pocFrom Snyk:
import sqlparse
sqlparse.parse('[' * 10000 + ']' * 10000)// impactSnyk classifies it as high 7.5/10.
// patchesThe bug has been fixed in dbt-core v1.6.13 and dbt-core v1.7.13.
// mitigationsBump dbt-core 1.6 and 1.7 dependencies to 1.6.13 and 1.7.13 respectively
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High