CVE-2021-29063 ReDOS in Mpmath
An attacker can cause a denial of service in applications using the Mpmath library by triggering a Regular Expression Denial of Service via the mpmathify function.
- 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-29063?
CVE-2021-29063 is a high-severity denial of service vulnerability in Fedoraproject Fedora, published on 21 Jun 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in Mpmath v1.0.0 through v1.2.1 when the mpmathify function is called.
Weakness: CWE-770
Which versions are affected by CVE-2021-29063?
3 open source packages ship an affected version, including mpmath. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
mpmath PyPI | All versions | 1.3.0 |
mpmath PyPI | All versions | 1.3.0 |
mpmath PyPI | All versions | 1.3.0 |
Linux distribution packages (1)
python-mpmath openSUSE:Tumbleweed | All versions | 1.3.0-3.4 |
Products include Fedoraproject Fedora, Mpmath Mpmath.
How do I fix CVE-2021-29063?
Upgrade mpmath to 1.3.0 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-29063 being exploited?
There is no known exploitation of CVE-2021-29063 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as DEBIAN-CVE-2021-29063, GHSA-f865-m6cq-j9vx, MGASA-2021-0479, PYSEC-2021-427, UBUNTU-CVE-2021-29063, USN-7160-1 and 2 more.