-
Notifications
You must be signed in to change notification settings - Fork 0
Description
WS-2021-0369 - High Severity Vulnerability
Vulnerable Library - sqlparse-0.3.1-py2.py3-none-any.whl
A non-validating SQL parser.
Library home page: https://files.pythonhosted.org/packages/85/ee/6e821932f413a5c4b76be9c5936e313e4fc626b33f16e027866e1d60f588/sqlparse-0.3.1-py2.py3-none-any.whl
Path to dependency file: /tmp/ws-scm/StackHawk-WhiteSouceDemo/requirements.txt
Path to vulnerable library: /StackHawk-WhiteSouceDemo/requirements.txt
Dependency Hierarchy:
- ❌ sqlparse-0.3.1-py2.py3-none-any.whl (Vulnerable Library)
Found in base branch: main
Vulnerability Details
StripComments filter contains a regular expression that is vulnerable to ReDOS (Regular Expression Denial of Service)
The formatter function that strips comments from a SQL contains a regular expression that is vulnerable to ReDoS (Regular Expression Denial of Service). The regular expression may cause exponential backtracking on strings containing many repetitions of '\r\n' in SQL comments.
Publish Date: 2021-09-10
URL: WS-2021-0369
CVSS 3 Score Details (7.5)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: None
- Integrity Impact: None
- Availability Impact: High
Suggested Fix
Type: Upgrade version
Origin: GHSA-p5w8-wqhj-9hhf
Release Date: 2021-09-10
Fix Resolution: 0.4.2
Step up your Open Source Security Game with Mend here