CVE catalog

CVE-2024-4340

SQL parse vulnerability

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
3.24% · Oct 25, 2026

Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiansqlparsesid0.5.5-2fixed
Debiansqlparseforky0.5.5-2fixed
Debiansqlparsetrixie0.5.3-1fixed
Debiansqlparsebookworm0.4.2-1+deb12u1fixed
Ubuntusqlparsenoble0.4.4-1ubuntu0.1fixed
Ubuntupython-sqlparse-docnoble0.4.4-1ubuntu0.1fixed
Ubuntupython3-sqlparsenoble0.4.4-1ubuntu0.1fixed
Ubuntusqlformatnoble0.4.4-1ubuntu0.1fixed
PyPIsqlparseNot reported0.5.0fixed
Ubuntusqlparse22.040.4.1-1ubuntu1vulnerable
Ubuntusqlparse22.040.4.2-1vulnerable
Ubuntusqlparse22.040.4.2-1ubuntu0.22.04.1vulnerable
Ubuntusqlparse22.040.4.2-1ubuntu0.22.04.2fixed
Ubuntusqlparse24.040.4.2-1ubuntu1vulnerable
Ubuntusqlparse24.040.4.4-1vulnerable
Ubuntusqlparse24.040.4.4-1ubuntu0.1fixed
Susepython-sqlparselinux enterprise module for public cloud 15 sp40.4.4-150400.6.7.1fixed
Susepython-sqlparselinux enterprise module for public cloud 15 sp50.4.4-150400.6.7.1fixed
Opensusepython-sqlparseleap 15.50.4.4-150400.6.7.1fixed
Susepython3-sqlparselinux enterprise module for basesystem 15 sp50.4.2-150300.12.1fixed
Susepython3-sqlparselinux enterprise module for basesystem 15 sp60.4.2-150300.12.1fixed
Susepython3-sqlparselinux enterprise high performance computing 15 sp3-ltss0.4.2-150300.12.1fixed
Susepython3-sqlparselinux enterprise high performance computing 15 sp4-espos0.4.2-150300.12.1fixed
Susepython3-sqlparselinux enterprise high performance computing 15 sp4-ltss0.4.2-150300.12.1fixed
Susepython3-sqlparselinux enterprise server 15 sp3-ltss0.4.2-150300.12.1fixed
Susepython3-sqlparselinux enterprise server 15 sp4-ltss0.4.2-150300.12.1fixed
Susepython3-sqlparselinux enterprise server for sap applications 15 sp30.4.2-150300.12.1fixed
Susepython3-sqlparselinux enterprise server for sap applications 15 sp40.4.2-150300.12.1fixed
Susepython3-sqlparsemanager proxy 4.30.4.2-150300.12.1fixed
Susepython3-sqlparsemanager server 4.30.4.2-150300.12.1fixed
Susepython3-sqlparseenterprise storage 7.10.4.2-150300.12.1fixed
Opensusepython3-sqlparseleap 15.50.4.2-150300.12.1fixed
Ubuntusqlparse22.040.4.1-1ubuntu1vulnerable
Ubuntusqlparse22.040.4.2-1vulnerable
Ubuntusqlparse22.040.4.2-1ubuntu0.22.04.1vulnerable
Ubuntusqlparse22.040.4.2-1ubuntu0.22.04.2fixed
Ubuntusqlparse24.040.4.2-1ubuntu1vulnerable
Ubuntusqlparse24.040.4.4-1vulnerable
Ubuntusqlparse24.040.4.4-1ubuntu0.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiansqlparsesourcesid0.5.0-1not yet assignedNot reported[1070148]
Debiansqlparsesourceforky0.5.0-1not yet assignedNot reported[1070148]
Debiansqlparsesourcetrixie0.5.0-1not yet assignedNot reported[1070148]
Debiansqlparsesourcebookworm0.4.2-1+deb12u1not yet assignedNot reported[1070148]
Ubuntusqlparsedebnoble0.4.4-1ubuntu0.1Not reportedNot reportedNot reported
Ubuntupython-sqlparse-docdebnoble0.4.4-1ubuntu0.1Not reportedNot reportedNot reported
Ubuntupython3-sqlparsedebnoble0.4.4-1ubuntu0.1Not reportedNot reportedNot reported
Ubuntusqlformatdebnoble0.4.4-1ubuntu0.1Not reportedNot reportedNot reported
PyPIsqlparsePyPINot reported0.5.0Not reportedGHSA-2M57-HF25-PHGGNot reported
Ubuntusqlparsedeb22.040.4.2-1ubuntu0.22.04.2Not reportedUSN-6771-1Not reported
Ubuntusqlparsedeb24.040.4.4-1ubuntu0.1Not reportedUSN-6771-1Not reported
Susepython-sqlparserpmlinux enterprise module for public cloud 15 sp40.4.4-150400.6.7.1Not reportedSUSE-SU-2024:1767-1Not reported
Susepython-sqlparserpmlinux enterprise module for public cloud 15 sp50.4.4-150400.6.7.1Not reportedSUSE-SU-2024:1767-1Not reported
Opensusepython-sqlparserpmleap 15.50.4.4-150400.6.7.1Not reportedSUSE-SU-2024:1767-1Not reported
Susepython3-sqlparserpmlinux enterprise module for basesystem 15 sp50.4.2-150300.12.1Not reportedSUSE-SU-2024:1861-1Not reported
Susepython3-sqlparserpmlinux enterprise module for basesystem 15 sp60.4.2-150300.12.1Not reportedSUSE-SU-2024:1861-1Not reported
Susepython3-sqlparserpmlinux enterprise high performance computing 15 sp3-ltss0.4.2-150300.12.1Not reportedSUSE-SU-2024:1861-1Not reported
Susepython3-sqlparserpmlinux enterprise high performance computing 15 sp4-espos0.4.2-150300.12.1Not reportedSUSE-SU-2024:1861-1Not reported
Susepython3-sqlparserpmlinux enterprise high performance computing 15 sp4-ltss0.4.2-150300.12.1Not reportedSUSE-SU-2024:1861-1Not reported
Susepython3-sqlparserpmlinux enterprise server 15 sp3-ltss0.4.2-150300.12.1Not reportedSUSE-SU-2024:1861-1Not reported
Susepython3-sqlparserpmlinux enterprise server 15 sp4-ltss0.4.2-150300.12.1Not reportedSUSE-SU-2024:1861-1Not reported
Susepython3-sqlparserpmlinux enterprise server for sap applications 15 sp30.4.2-150300.12.1Not reportedSUSE-SU-2024:1861-1Not reported
Susepython3-sqlparserpmlinux enterprise server for sap applications 15 sp40.4.2-150300.12.1Not reportedSUSE-SU-2024:1861-1Not reported
Susepython3-sqlparserpmmanager proxy 4.30.4.2-150300.12.1Not reportedSUSE-SU-2024:1861-1Not reported
Susepython3-sqlparserpmmanager server 4.30.4.2-150300.12.1Not reportedSUSE-SU-2024:1861-1Not reported
Susepython3-sqlparserpmenterprise storage 7.10.4.2-150300.12.1Not reportedSUSE-SU-2024:1861-1Not reported
Opensusepython3-sqlparserpmleap 15.50.4.2-150300.12.1Not reportedSUSE-SU-2024:1861-1Not reported
Ubuntusqlparsedeb22.040.4.2-1ubuntu0.22.04.2Not reportedUBUNTU-CVE-2024-4340Not reported
Ubuntusqlparsedeb24.040.4.4-1ubuntu0.1Not reportedUBUNTU-CVE-2024-4340Not reported

[Debian bug #1070148]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References