ADVISORIES

Ubuntu Security Notice

USN-8808-1

sqlparse vulnerabilities

Details

It was discovered that SQL parse contained multiple algorithmic complexity flaws when parsing SQL statements with deeply nested parentheses, comments, or dollar-quoted string literals. An attacker could use this issue to cause SQL parse to consume excessive CPU resources, resulting in a denial of service.

Affected packages

EcosystemPackageAffected versions
Ubuntu:Pro:16.04:LTSsqlparse
All versions before 0.1.18-1ubuntu0.1~esm1 (fixed in 0.1.18-1ubuntu0.1~esm1)
Ubuntu:Pro:18.04:LTSsqlparse
All versions before 0.2.4-0.1ubuntu0.1+esm1 (fixed in 0.2.4-0.1ubuntu0.1+esm1)
Ubuntu:Pro:20.04:LTSsqlparse
All versions before 0.2.4-3ubuntu0.1+esm1 (fixed in 0.2.4-3ubuntu0.1+esm1)
Ubuntu:22.04:LTSsqlparse
All versions before 0.4.2-1ubuntu0.22.04.3 (fixed in 0.4.2-1ubuntu0.22.04.3)
Ubuntu:24.04:LTSsqlparse
All versions before 0.4.4-1ubuntu0.2 (fixed in 0.4.4-1ubuntu0.2)
Ubuntu:26.04:LTSsqlparse
All versions before 0.5.4-1ubuntu0.1 (fixed in 0.5.4-1ubuntu0.1)

References