CVE-2024-4340 Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.
HighCVSS 7.5
EPSS 3.2%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
Description
Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.
Upgrade path
7 packages: 6 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/sqlparse(Debian 12) | < 0.4.2-1+deb12u1; = 0.4.2-1 | 0.4.2-1+deb12u1 | Fixed |
| debian/sqlparse(Debian 13) | < 0.5.0-1 | 0.5.0-1 | Fixed |
| debian/sqlparse(Debian 14) | < 0.5.0-1 | 0.5.0-1 | Fixed |
| pypi sqlparse(PyPI) | < 0.5.0; = 0.1.0; = 0.1.1; = 0.1.2 +29 more | 0.5.0 | Fixed |
| ubuntu/sqlparse(Ubuntu 22.04) | < 0.4.2-1ubuntu0.22.04.2 | 0.4.2-1ubuntu0.22.04.2 | Fixed |
| ubuntu/sqlparse(Ubuntu 24.04) | < 0.4.4-1ubuntu0.1 | 0.4.4-1ubuntu0.1 | Fixed |
| sqlparse project sqlparse | = 0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi sqlparse(PyPI) | < 0.5.0 | 0.5.0 |
| pypi sqlparse(PyPI) | = 0.1.0 | No fix listed |
| pypi sqlparse(PyPI) | = 0.1.1 | No fix listed |
| pypi sqlparse(PyPI) | = 0.1.10 | No fix listed |
| pypi sqlparse(PyPI) | = 0.1.11 | No fix listed |
| pypi sqlparse(PyPI) | = 0.1.12 | No fix listed |
| pypi sqlparse(PyPI) | = 0.1.13 | No fix listed |
| pypi sqlparse(PyPI) | = 0.1.14 | No fix listed |
| pypi sqlparse(PyPI) | = 0.1.15 | No fix listed |
| pypi sqlparse(PyPI) | = 0.1.16 | No fix listed |
| pypi sqlparse(PyPI) | = 0.1.17 | No fix listed |
| pypi sqlparse(PyPI) | = 0.1.18 | No fix listed |
| pypi sqlparse(PyPI) | = 0.1.19 | No fix listed |
| pypi sqlparse(PyPI) | = 0.1.2 | No fix listed |
| pypi sqlparse(PyPI) | = 0.1.3 | No fix listed |
| pypi sqlparse(PyPI) | = 0.1.4 | No fix listed |
| pypi sqlparse(PyPI) | = 0.1.5 | No fix listed |
| pypi sqlparse(PyPI) | = 0.1.6 | No fix listed |
| pypi sqlparse(PyPI) | = 0.1.7 | No fix listed |
| pypi sqlparse(PyPI) | = 0.1.8 | No fix listed |
| pypi sqlparse(PyPI) | = 0.1.9 | No fix listed |
| pypi sqlparse(PyPI) | = 0.2.0 | No fix listed |
| pypi sqlparse(PyPI) | = 0.2.1 | No fix listed |
| pypi sqlparse(PyPI) | = 0.2.2 | No fix listed |
| pypi sqlparse(PyPI) | = 0.2.3 | No fix listed |
Show 15 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi sqlparse(PyPI) | = 0.2.4 | No fix listed |
| pypi sqlparse(PyPI) | = 0.3.0 | No fix listed |
| pypi sqlparse(PyPI) | = 0.3.1 | No fix listed |
| pypi sqlparse(PyPI) | = 0.4.0 | No fix listed |
| pypi sqlparse(PyPI) | = 0.4.1 | No fix listed |
| pypi sqlparse(PyPI) | = 0.4.2 | No fix listed |
| pypi sqlparse(PyPI) | = 0.4.3 | No fix listed |
| pypi sqlparse(PyPI) | = 0.4.4 | No fix listed |
| debian/sqlparse(Debian:12) | < 0.4.2-1+deb12u1 | 0.4.2-1+deb12u1 |
| debian/sqlparse(Debian:12) | = 0.4.2-1 | No fix listed |
| debian/sqlparse(Debian:13) | < 0.5.0-1 | 0.5.0-1 |
| debian/sqlparse(Debian:14) | < 0.5.0-1 | 0.5.0-1 |
| ubuntu/sqlparse(Ubuntu:22.04) | < 0.4.2-1ubuntu0.22.04.2 | 0.4.2-1ubuntu0.22.04.2 |
| sqlparse project sqlparse | = 0 | No fix listed |
| ubuntu/sqlparse(Ubuntu:24.04) | < 0.4.4-1ubuntu0.1 | 0.4.4-1ubuntu0.1 |
References
- github.com vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com product
- research.jfrog.com third-party-advisory
- pypi.org product
- github.com vendor-advisory
- Debian Security Tracker CVE-2024-4340 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-6771-1 vendor-advisory
- www.cve.org
- lists.debian.org
- bugs.debian.org issue-tracking