CVE-2021-32838 Regular Expression Denial of Service in flask-restx

High 7.5 Published Updated

Attackers can cause denial of service in Flask-RESTX applications via inefficient email regex processing.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-32838?

CVE-2021-32838 is a high-severity denial of service vulnerability in Fedoraproject Fedora, published on 20 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Flask-RESTX (pypi package flask-restx) is a community driven fork of Flask-RESTPlus. Flask-RESTX before version 0.5.1 is vulnerable to ReDoS (Regular Expression Denial of Service) in email_regex. This is fixed in version 0.5.1.

Weakness: CWE-400

Which versions are affected by CVE-2021-32838?

3 open source packages ship an affected version, including flask-restx. It affects 2 products.

PackageAffectedFixed in
flask-restx PyPIAll versions0.5.1
flask-restx PyPIAll versions0.5.1
flask-restx PyPIAll versions0.5.1

Products include Fedoraproject Fedora, Flask-Restx Project Flask-Restx.

How do I fix CVE-2021-32838?

Upgrade flask-restx to 0.5.1 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2021-32838 being exploited?

There is no known exploitation of CVE-2021-32838 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as GHSA-3q6g-vf58-7m4g, MGASA-2021-0473, PYSEC-2021-325.

Is CVE-2021-32838 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free