Advisory

PYSEC-2023-87

Also known as: CVE-2023-30608, GHSA-rrm6-wvj7-cwh2

Summary

The record has no summary.

Details

sqlparse is a non-validating SQL parser module for Python. In affected versions the SQL parser contains a regular expression that is vulnerable to ReDoS (Regular Expression Denial of Service). This issue was introduced by commit e75e358. The vulnerability may lead to Denial of Service (DoS). This issues has been fixed in sqlparse 0.4.4 by commit c457abd5f. Users are advised to upgrade. There are no known workarounds for this issue.

Severity

Not rated by the source.

Dates

Published
2023-04-18 22:15 UTC
Modified
2023-11-08 04:12 UTC

Affected packages and fixes

sqlparse

PyPI · All systems

Affected

  • introduced 0.1.15, fixed 0.4.4 (ecosystem)

Fixed versions

0.4.4

Fix

  • Fixed version 0.4.4
    pip install --upgrade sqlparse==0.4.4

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences