Regular Expression Denial of Service in sqlparse
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| andialbrecht | sqlparse | affected |
|
| Package | CPE | Advisory | Released Date |
|---|---|---|---|
| Red Hat Satellite 6.11 for RHEL 8 | |||
| python-sqlparse-0:0.4.2-2.el8pc | cpe:/a:redhat:satellite:6.11::el8 | RHSA-2022:5498 | 2022-07-05T00:00:00Z |
| python-sqlparse-0:0.4.2-2.el8pc | cpe:/a:redhat:satellite_capsule:6.11::el8 | RHSA-2022:5498 | 2022-07-05T00:00:00Z |
No data available yet.
| Source | ID | Title |
|---|---|---|
Debian DLA |
DLA-4000-1 | sqlparse security update |
EUVD |
EUVD-2021-0250 | sqlparse is a non-validating SQL parser module for Python. In sqlparse versions 0.4.0 and 0.4.1 there is a regular Expression Denial of Service in sqlparse vulnerability. The regular expression may cause exponential backtracking on strings containing many repetitions of '\\r\\n' in SQL comments. Only the formatting feature that removes comments from SQL statements is affected by this regular expression. As a workaround don't use the sqlformat.format function with keyword strip_comments=True or the --strip-comments command line flag when using the sqlformat command line tool. The issues has been fixed in sqlparse 0.4.2. |
Github GHSA |
GHSA-p5w8-wqhj-9hhf | StripComments filter contains a regular expression that is vulnerable to ReDOS (Regular Expression Denial of Service) |
Ubuntu USN |
USN-5085-1 | SQL parse vulnerability |
No CVSS v4.0
No CVSS v3.0
This CVE is not in the KEV list.
Exploit prediction score: 2.3% (2.339% probability within 30 days)
Key SSVC decision points have not yet been added.
| Type | Values Removed | Values Added |
|---|---|---|
| References |
|