CVE-2021-32838
JSON

7.5high

Regular Expression Denial of Service in flask-restx

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
1.86% (higher than 79% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-3q6g-vf58-7m4gPYSEC-2021-325

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

Product or packageVersionsReported by
python-restx flask-restx< 0.5.1CVE List
flask-restx (PyPI)before 0.5.1, before bab31e085f355dd73858fd3715f7ed71849656daGitHub Advisory Database, PyPA Advisory Database
flask-restx_project flask-restxbefore 0.5.1NVD
fedoraproject fedora33, 34NVD

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:N/A:P

Classification

What each source says

CVE List

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.

GitHub Advisory Database

Flask RESTX contains a regular expression that is vulnerable to ReDoS (Regular Expression Denial of Service) in email_regex.

NVD (es)

Flask-RESTX (paquete pypi flask-restx) es un fork impulsado por la comunidad de Flask-RESTPlus. Flask-RESTX versiones anteriores a 0.5.1, es vulnerable a ReDoS (Denegación de Servicio por Expresión Regular) en la función email_regex. Esto ha sido corregido en la versión 0.5.1

References

https://github.com/advisories/GHSA-3q6g-vf58-7m4gadvisory, third-party-advisory
https://github.com/python-restx/flask-restx/issues/372issue-tracking, patch, report, third-party-advisory, web
https://github.com/python-restx/flask-restx/commit/bab31e085f355dd73858fd3715f7ed71849656dafix, patch, third-party-advisory, web
https://github.com/python-restx/flask-restx/blob/fd99fe11a88531f5f3441a278f7020589f9d2cc0/flask_restx/inputs.py#L51patch, third-party-advisory, web
https://pypi.org/project/flask-restx/package, product, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5UCTFVDU3677B5OBGK4EF5NMUPJLL6SQ/vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QUD6SWZLX52AAZUHDETJ2CDMQGEPGFL3/vendor-advisory
https://github.com/python-restx/flask-restx/security/advisories/GHSA-3q6g-vf58-7m4gweb
https://nvd.nist.gov/vuln/detail/CVE-2021-32838advisory
https://github.com/pypa/advisory-database/tree/main/vulns/flask-restx/PYSEC-2021-325.yamlweb
https://github.com/python-restx/flask-restxpackage
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5UCTFVDU3677B5OBGK4EF5NMUPJLL6SQweb

Sources

SourceRecordLicence
CVE ListCVE-2021-32838 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-3q6g-vf58-7m4g changed 2026-07-08CC-BY-4.0
NVDCVE-2021-32838 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-325 changed 2023-11-08CC-BY-4.0