Incorrect Regular Expression in mpmath - CVE-2021-29063

 

Incorrect Regular Expression in mpmath - CVE-2021-29063

Published: December 19, 2024


Vulnerability identifier: #VU101870
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-29063
CWE-ID: CWE-185
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to insufficient input validation when processing regular expressions. A remote attacker can pass specially crafted data to the application and perform regular expression denial of service (ReDos) attack.


Affected software

mpmath
Fedora
Ubuntu
python3-mpmath (Ubuntu package)
python-mpmath (Ubuntu package)
python-mpmath

How to mitigate CVE-2021-29063

Install update from vendor's website.

mpmath - update to 1.3.0
python3-mpmath (Ubuntu package) - update to Ubuntu Pro
python-mpmath (Ubuntu package) - update to Ubuntu Pro
python-mpmath - addressed in versions 1.0.0-2.el7, 1.1.0-13.fc33, 1.2.1-2.fc34, 1.2.1-2.fc35

External References

Related Security Bulletins