CVE-2024-4340

NameCVE-2024-4340
DescriptionPassing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1070148

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
sqlparse (PTS)buster0.2.4-1vulnerable
buster (security)0.2.4-1+deb10u1vulnerable
bullseye0.4.1-1vulnerable
bookworm0.4.2-1vulnerable
trixie0.4.4-1vulnerable
sid0.5.0-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
sqlparsesource(unstable)0.5.0-11070148

Notes

[buster] - sqlparse <postponed> (Minor issue)
Fixed by: https://github.com/andialbrecht/sqlparse/commit/b4a39d9850969b4e1d6940d32094ee0b42a2cf03 (0.5.0)
https://github.com/advisories/GHSA-2m57-hf25-phgg

Search for package or bug name: Reporting problems