{"id":"CVE-2023-30608","published":"2023-04-18T21:32:11Z","modified":"2025-11-03T21:48:07Z","title":"Parser contains an inefficient regular expression in sqlparse","vendor":"andialbrecht","product":"sqlparse","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0098,"percentile":0.63073,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/andialbrecht/sqlparse/commit/c457abd5f097dd13fb21543381e7cfafe7d31cfb","tags":["x_refsource_MISC"]},{"url":"https://github.com/andialbrecht/sqlparse/commit/e75e35869473832a1eb67772b1adfee2db11b85a","tags":["x_refsource_MISC"]},{"url":"https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/05/msg00017.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00022.html","tags":[]}],"priority":{"score":16.5,"factors":[{"name":"EPSS percentile","points":12.61},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"andialbrecht","affectedVersions":[{"vendor":"andialbrecht","product":"sqlparse","versions":[">= 0.1.15, < 0.4.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-02-06T16:35:46.370529Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"sqlparse","vulnerableRanges":[">=0.1.15, <0.4.4"],"patched":["0.4.4"],"from":["GHSA-rrm6-wvj7-cwh2","PYSEC-2023-87"],"provenance":"source"}],"summary":{"text":"The sqlparse Python SQL parser module contains an inefficient regular expression in its SQL parser that is vulnerable to ReDoS (regular expression denial of service), introduced by commit e75e358 and fixed in version 0.4.4. An attacker who can get the parser to process crafted SQL input can cause a denial of service, and the attack requires a local attack vector, no privileges, and user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:26:37Z"},"euvd":{"id":"EUVD-2023-0243","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-32839","published":"2021-09-20","fixed":"0.4.2","kev":false,"link":{"from":"CVE-2021-32839","to":"CVE-2023-30608","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:sqlparse","fromFixed":"0.4.2","toFixed":"0.4.4","daysApart":575}]}},{"cve":"CVE-2023-30608","published":"2023-04-18","fixed":"0.4.4","kev":false},{"cve":"CVE-2024-4340","published":"2024-04-30","fixed":"0.5.0","kev":false},{"cve":"CVE-2026-54284","published":"2026-08-17","fixed":"0.6.0","kev":false},{"cve":"CVE-2026-59893","published":"2026-08-17","fixed":"0.6.0","kev":false}],"package":"PyPI:sqlparse"}}