CVSS 3.1
7.5 highCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HHigh (7.5). EPSS 3.2% estimated probability of exploitation activity in the next 30 days. Fixed in sqlparse 0.5.0.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:Hsqlparse (PyPI): fixed in 0.5.0Explain CVE-2024-4340 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-4340?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-4340?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-4340 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-2m57-hf25-phgg | PyPI | sqlparse | <0.5.0 | 0.5.0 |
| PYSEC-2026-1940 | PyPI | sqlparse | <0.5.0 | 0.5.0 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 11 | sqlparse | 0.4.1-1+deb11u1 | DLA-4000-1 |
| Debian | 12 | sqlparse | 0.4.2-1+deb12u1 | DEBIAN-CVE-2024-4340 |
| Debian | 13, 14 | sqlparse | 0.5.0-1 | DEBIAN-CVE-2024-4340 |
| Ubuntu | 22.04:LTS | sqlparse | 0.4.2-1ubuntu0.22.04.2 | UBUNTU-CVE-2024-4340 USN-6771-1 |
| Ubuntu | 24.04:LTS | sqlparse | 0.4.4-1ubuntu0.1 | UBUNTU-CVE-2024-4340 USN-6771-1 |
| Red Hat | ansible_automation_platform:2.4::el8 | automation-controller-venv-tower | 0:4.5.7-1.el8ap | RHSA-2024:3781 |
| Red Hat | ansible_automation_platform:2.4::el8 | automation-hub, python39-galaxy-ng, python3x-galaxy-ng | 0:4.9.2-1.el8ap | RHSA-2024:3781 |
| Red Hat | ansible_automation_platform:2.4::el8 | python39-aiohttp, python3x-aiohttp, python39-aiohttp-debuginfo and 1 more | 0:3.9.5-1.el8ap | RHSA-2024:3781 |
| Red Hat | ansible_automation_platform:2.4::el8 | python39-gunicorn, python3x-gunicorn | 0:22.0.0-1.el8ap | RHSA-2024:3781 |
| Red Hat | ansible_automation_platform:2.4::el8 | python39-pillow, python3x-pillow, python39-pillow-debuginfo and 1 more | 0:10.3.0-1.el8ap | RHSA-2024:3781 |
| Red Hat | ansible_automation_platform:2.4::el8 | python39-pydantic, python3x-pydantic | 0:1.10.15-1.el8ap | RHSA-2024:3781 |
| Red Hat | ansible_automation_platform:2.4::el8 | python39-social-auth-app-django, python3x-social-auth-app-django | 0:5.4.1-1.el8ap | RHSA-2024:3781 |
| Red Hat | ansible_automation_platform:2.4::el8 | python39-sqlparse, python3x-sqlparse | 0:0.5.0-1.el8ap | RHSA-2024:3781 |
| Red Hat | ansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8 | python39-idna, python3x-idna | 0:3.7-1.el8ap | RHSA-2024:3781 |
| Red Hat | ansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8 | python39-requests, python3x-requests | 0:2.32.2-1.el8ap | RHSA-2024:3781 |
| Red Hat | ansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8, ansible_automation_platform_inside:2.4::el8 | python39-black, python3x-black | 0:22.8.0-2.el8ap | RHSA-2024:3781 |
| Red Hat | ansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8, ansible_automation_platform_inside:2.4::el8 | python39-cryptography, python3x-cryptography, python39-cryptography-debuginfo and 1 more | 0:42.0.5-1.el8ap | RHSA-2024:3781 |
| 29 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 9 more | python3-sqlparse | 0.4.2-150300.12.1 | SUSE-SU-2024:1861-1 |
| SUSE | Linux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5 | python-sqlparse | 0.4.4-150400.6.7.1 | SUSE-SU-2024:1767-1 |
| openSUSE | Leap 15.5 | python-sqlparse | 0.4.4-150400.6.7.1 | SUSE-SU-2024:1767-1 |
| openSUSE | Leap 15.5 | python3-sqlparse | 0.4.2-150300.12.1 | SUSE-SU-2024:1861-1 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.
Red Hat rates this Moderate.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Ansible Automation Platform 2.4 for RHEL 8 | python3x-sqlparse-0:0.5.0-1.el8ap | Fixed 2024-06-10 | RHSA-2024:3781 |
| Red Hat Ansible Automation Platform 2.4 for RHEL 9 | python-sqlparse-0:0.5.0-1.el9ap | Fixed 2024-06-10 | RHSA-2024:3781 |
| Red Hat OpenStack Platform 17.1 for RHEL 8 | python-sqlparse-0:0.4.1-2.el8ost | Fixed 2024-11-21 | RHSA-2024:9986 |
| Red Hat OpenStack Platform 17.1 for RHEL 9 | python-sqlparse-0:0.4.1-2.el9ost | Fixed 2024-11-21 | RHSA-2024:9984 |
| Red Hat Satellite 6.15 for RHEL 8 | python-sqlparse-0:0.5.0-1.el8pc | Fixed 2025-06-26 | RHSA-2025:9838 |
| RHUI 4 for RHEL 8 | python-sqlparse-0:0.5.0-1.el8ui | Fixed 2025-02-12 | RHSA-2025:1335 |
| Red Hat OpenShift Container Platform 4 | python-sqlparse | Will not fix | |
| Red Hat OpenStack Platform 16.1 | python-sqlparse | Not affected | |
| Red Hat OpenStack Platform 16.2 | python-sqlparse | Not affected | |
| Red Hat OpenStack Platform 18.0 | python-sqlparse | Affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-4340.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.