CVE-2021-32839 describes a Regular Expression Denial of Service (ReDoS) vulnerability in sqlparse versions 0.4.0 and 0.4.1, affecting the sqlparse_project sqlparse module. This flaw, rated 7.5 HIGH (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H), allows an unauthenticated attacker to cause a denial of service by exploiting exponential backtracking in a regular expression when processing SQL comments with many repetitions of '\r\n'. The impact is limited to the formatting feature that removes comments, and a workaround involves avoiding the strip_comments=True option. There is no evidence of active exploitation, public exploit code, or significant community discussion, and it is not listed on the CISA KEV catalog.
| Vendor | Product | Version(s) | CPE |
|---|---|---|---|
>= 0.4.0, < 0.4.2CPE matchmatch criteria | cpe:2.3:a:sqlparse_project:sqlparse:*:*:*:*:*:*:*:* |
CVSS version used by this source: 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
The average CVE in this peer group has 0.0 Twitter, 0.0 Reddit, 0.1 Bluesky, 0.1 Mastodon, and 0.4 GitHub mentions.
No media coverage found for this CVE.
The average CVE in this peer group has 0.1 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.