Skip to content
OpenAdvisories
High · 7.5 CVE-2021-29063 EUVD-2021-0137GHSA-f865-m6cq-j9vxPYSEC-2021-427

ReDOS in Mpmath

Published Jun 21, 2021 · Updated Aug 3, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 mpmath 1.2.1-2 —
Debian 13 mpmath 1.2.1-2 —
Debian 12 mpmath 1.2.1-2 —
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS mpmath 1.1.0-2ubuntu0.1~esm1 USN-7160-1
Ubuntu Pro 18.04 LTS mpmath 1.0.0-1ubuntu0.1~esm1 USN-7160-1
Ubuntu Pro 16.04 LTS mpmath 0.19-3ubuntu0.1~esm1 USN-7160-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-mpmath 1.3.0-3.4 openSUSE-SU-2026:12018-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling py3.10-mpmath +3 1.4.0-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI mpmath < 1.3.0 1.3.0 GHSA-f865-m6cq-j9vx

Advisories 2

References