Advisory

GHSA-f865-m6cq-j9vx

Also known as: CVE-2021-29063, PYSEC-2021-427

Summary

ReDOS in Mpmath

Details

A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in Mpmath v1.0.0 when the mpmathify function is called.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-08-09 20:44 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

mpmath

PyPI · All systems

Affected

  • introduced 0, fixed 1.3.0 (ecosystem)

Fixed versions

1.3.0

Fix

  • Fixed version 1.3.0
    pip install --upgrade mpmath==1.3.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences