GHSL-2021-107: ReDoS (Regular Expression Denial of Service) in python-sqlparse - CVE-2021-32839

Published Sep 23, 2021
·
Updated

python-sqlparse contains a regular expression that is vulnerable to ReDoS (Regular Expression Denial of Service).

Affected Software

1 affected component
pypi/sqlparse

Event History

Sep 23, 2021
Advisory Published
via GitHub Security Lab·12:00 AM
Data Sourced
via GitHub Security Lab·12:00 AM
Description

Frequently Asked Questions

1

What is the severity of GHSL-2021-107?

The severity of GHSL-2021-107 is classified as moderate due to its potential for causing Denial of Service.

2

How do I fix GHSL-2021-107?

To fix GHSL-2021-107, you should update the python-sqlparse library to the latest version that has patched the vulnerable regular expression.

3

What is the impact of GHSL-2021-107?

The impact of GHSL-2021-107 is that an attacker can exploit the vulnerability to cause a denial of service by supplying crafted input to the vulnerable regex.

4

Which versions of python-sqlparse are affected by GHSL-2021-107?

GHSL-2021-107 affects various versions of python-sqlparse prior to the fix introduced in the most recent release.

5

Is there a workaround for GHSL-2021-107?

A potential workaround for GHSL-2021-107 is to avoid using the specific functions of python-sqlparse that utilize the vulnerable regular expression until an update can be applied.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203