{"api_version":"1","generated_at":"2026-04-22T19:36:20+00:00","cve":"CVE-2023-30608","urls":{"html":"https://cve.report/CVE-2023-30608","api":"https://cve.report/api/cve/CVE-2023-30608.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-30608","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-30608"},"summary":{"title":"CVE-2023-30608","description":"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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2023-04-18 22:15:00","updated_at":"2023-06-14 18:14:00"},"problem_types":["CWE-1333"],"metrics":[],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2023/05/msg00017.html","name":"https://lists.debian.org/debian-lts-announce/2023/05/msg00017.html","refsource":"MISC","tags":[],"title":"[SECURITY] [DLA 3425-1] sqlparse security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS","name":"https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS","refsource":"MISC","tags":[],"title":"Regular expression Denial of Service - ReDoS | OWASP Foundation","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/andialbrecht/sqlparse/commit/c457abd5f097dd13fb21543381e7cfafe7d31cfb","name":"https://github.com/andialbrecht/sqlparse/commit/c457abd5f097dd13fb21543381e7cfafe7d31cfb","refsource":"MISC","tags":[],"title":"Remove unnecessary parts in regex for bad escaping. · andialbrecht/sqlparse@c457abd · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2","name":"https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2","refsource":"MISC","tags":[],"title":"Parser contains a regular expression that is vulnerable to ReDOS (Regular Expression Denial of Service) · Advisory · andialbrecht/sqlparse · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/andialbrecht/sqlparse/commit/e75e35869473832a1eb67772b1adfee2db11b85a","name":"https://github.com/andialbrecht/sqlparse/commit/e75e35869473832a1eb67772b1adfee2db11b85a","refsource":"MISC","tags":[],"title":"Recognize escaped backslashes within strings · andialbrecht/sqlparse@e75e358 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-30608","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30608","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"30608","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2023","cve_id":"30608","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"sqlparse_project","cpe5":"sqlparse","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"python","cpe12":"*","cpe13":"*"},{"cve_year":"2023","cve_id":"30608","vulnerable":"1","versionEndIncluding":"0.4.4","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"sqlparse_project","cpe5":"sqlparse","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"python","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2023-30608","qid":"181788","title":"Debian Security Update for sqlparse (DLA 3425-1)"},{"cve":"CVE-2023-30608","qid":"199333","title":"Ubuntu Security Notification for Structured Query Language (SQL) parse Vulnerability (USN-6064-1)"},{"cve":"CVE-2023-30608","qid":"242347","title":"Red Hat Update for Satellite 6.14 (RHSA-2023:6818)"},{"cve":"CVE-2023-30608","qid":"754131","title":"SUSE Enterprise Linux Security Update for python-sqlparse (SUSE-SU-2023:2619-1)"},{"cve":"CVE-2023-30608","qid":"961065","title":"Rocky Linux Security Update for Satellite (RLSA-2023:6818)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2023-30608","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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.\n"}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-1333: Inefficient Regular Expression Complexity","cweId":"CWE-1333"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"andialbrecht","product":{"product_data":[{"product_name":"sqlparse","version":{"version_data":[{"version_affected":"=","version_value":">= 0.1.15, < 0.4.4"}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2","refsource":"MISC","name":"https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2"},{"url":"https://github.com/andialbrecht/sqlparse/commit/c457abd5f097dd13fb21543381e7cfafe7d31cfb","refsource":"MISC","name":"https://github.com/andialbrecht/sqlparse/commit/c457abd5f097dd13fb21543381e7cfafe7d31cfb"},{"url":"https://github.com/andialbrecht/sqlparse/commit/e75e35869473832a1eb67772b1adfee2db11b85a","refsource":"MISC","name":"https://github.com/andialbrecht/sqlparse/commit/e75e35869473832a1eb67772b1adfee2db11b85a"},{"url":"https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS","refsource":"MISC","name":"https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS"},{"url":"https://lists.debian.org/debian-lts-announce/2023/05/msg00017.html","refsource":"MISC","name":"https://lists.debian.org/debian-lts-announce/2023/05/msg00017.html"}]},"source":{"advisory":"GHSA-rrm6-wvj7-cwh2","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":5.5,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","version":"3.1"}]}},"nvd":{"publishedDate":"2023-04-18 22:15:00","lastModifiedDate":"2023-06-14 18:14:00","problem_types":["CWE-1333"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:sqlparse_project:sqlparse:*:*:*:*:*:python:*:*","versionStartIncluding":"0.1.15","versionEndExcluding":"0.4.4","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}