Vulnerability · Published Sep 20, 2021 · Assigned by GitHub_M
CVE-2021-32838Regular Expression Denial of Service in flask-restx
High 7.5
In plain English
A high-severity uncontrolled resource consumption in flask-restx from python-restx. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.9% (higher than 79% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.9%top 20.6% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | flask-restx | 0.5.1 | GHSA-3q6g-vf58-7m4g |
| PyPI | flask-restx | 0.5.1 | PYSEC-2021-325 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| python-restx | flask-restx | < 0.5.1 |
Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/advisories/GHSA-3q6g-vf58-7m4g x_refsource_CONFIRM
- https://github.com/python-restx/flask-restx/issues/372 x_refsource_MISC
- https://github.com/python-restx/flask-restx/commit/bab31e085f355dd73858fd3715f7ed71849656da x_refsource_MISC
- https://github.com/python-restx/flask-restx/blob/fd99fe11a88531f5f3441a278f7020589f9d2cc0/flask_restx/inputs.py#L51 x_refsource_MISC
- https://pypi.org/project/flask-restx/ x_refsource_MISC
- FEDORA-2021-0739f45529 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-67b7695f95 vendor-advisory, x_refsource_FEDORA