mpmath
mpmath copied to clipboard
mpmath is being flagged for ReDOS vulnerability
Aquasec is flagging the latest version of mpmath (1.2.1) as vulnerable to being used for a ReDOS attack. See here for more details.
I can't tell from there what the problem is. Is there more information somewhere?
This appears to be the subject of #570 (from the first link to "Advisories, Solutions, and Tools" on the provided NIST page). At this point the fix has already been made and I presume it will be in the next release.
For now, you can patch your system by changing two lines in mpmath/ctx_mp.py
@fredrik-johansson could you please publish a new release? it seems that the problem has been fixed for a while, but the fix is not in the published releases, and in the meantime, mpmath is marked as a vulnerability...
Fixed with the 1.3.0 release.
@fredrik-johansson, probably this can be closed?