Predictive Vulnerability Intelligence.

Product

  • Product
  • Pricing
  • Documentation

Company

  • About
  • Partnerships
  • Blog
  • Support

Legal

  • Terms
  • Privacy
  • Data Licensing

© 2026 FAUCET Technologies LLC. All rights reserved.

CVE-2021-32839

25
FAUCET Score

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.

Impacted Technologies

VendorProductVersion(s)CPE
>= 0.4.0, < 0.4.2CPE matchmatch criteria
cpe:2.3:a:sqlparse_project:sqlparse:*:*:*:*:*:*:*:*

CVSS Data

CVSS version used by this source: 3.1

7.5HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
NONE
Integrity Impact
NONE
Availability Impact
HIGH
Exploitability Score
3.9
Impact Score
3.6
CvssVersion
3.1

Exploit Intelligence

EPSS Score
2.30%
Probability of exploitation in next 30 days
EPSS Percentile
81.5%
Percentile rank of EPSS score among Peer Group
As of 2026-07-27
Model: v2026.06.15
This CVE's current EPSS score of 0.0230 is in the 67th percentile among its peer group of 51,551 CVEs.

Social Chatter

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.

Media 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.

Remediation

Patch Available

Vendor Patches (5)

github_advisorypatch availablevia nvd_reference
View patch
pippatch availablevia ghsa
Product: sqlparseFixed in: 0.4.2
redhatpatch availablevia redhat_api
Product: Red Hat Satellite 6.11 for RHEL 8Fixed in: python-sqlparse-0:0.4.2-2.el8pc
View patch
redhatno patchvia redhat_api
Product: Red Hat Ansible Automation Platform 1.2Fixed in: python-sqlparse
redhatno patchvia redhat_api
Product: Red Hat Ansible Automation Platform 1.2Fixed in: sqlparse

Vendor Advisories (2)

pipGHSA-p5w8-wqhj-9hhfhigh

StripComments filter contains a regular expression that is vulnerable to ReDOS (Regular Expression Denial of Service)

Sep 10, 2021
redhatCVE-2021-32839Moderate

python-sqlparse: ReDoS via regular expression in StripComments filter

Sep 10, 2021

References

lists.debian.org / debian-lts-announce/2024/12/msg00022.html
github.com / andialbrecht/sqlparse/commit/8238a9e450ed1524e40cb3a8b0b3c00606903aeb
PatchThird Party Advisory
github.com / andialbrecht/sqlparse/security/advisories/GHSA-p5w8-wqhj-9hhf
Third Party Advisory