PyPA Advisory Database
PYSEC-2021-427
Details
A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in Mpmath v1.0.0 when the mpmathify function is called.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | mpmath | All versions before 1.3.0 (fixed in 1.3.0) |
References
- https://github.com/npm/hosted-git-info/pull/76
- https://github.com/yetingli/PoCs/blob/main/CVE-2021-29063/Mpmath.md
- https://github.com/yetingli/SaveResults/blob/main/js/hosted-git-info.js
- https://www.npmjs.com/package/hosted-git-info
- https://lists.fedoraproject.org/archives/list/[email protected]/message/3M5O55E7VUDMXCPQR6MQTOIFDKHP36AA/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/MS2U6GLXQSRZJE2HVUAUMVFR2DWQLCZG/
- https://github.com/fredrik-johansson/mpmath/commit/46d44c3c8f3244017fe1eb102d564eb4ab8ef750
- https://github.com/advisories/GHSA-f865-m6cq-j9vx