Allocation of Resources Without Limits or Throttling Affecting gmpy2 package, versions [0,]


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-GMPY2-9610483
  • published2 Apr 2025
  • disclosed14 Mar 2025
  • creditDavid Osipov

Introduced: 14 Mar 2025

CVE NOT AVAILABLE CWE-770  (opens in a new tab)

How to fix?

There is no fixed version for gmpy2.

Overview

gmpy2 is a gmpy2 interface to GMP, MPFR, and MPC for Python 3.7+

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling when performing arbitrary-precision calculations based on the GNU Multiple Precision Arithmetic Library (GMP), in functions such as exp(), secure_exp(), efficient_multi_exp(), _secure_matrix_solve(), and _evaluate_polynomial(), which can be made to allocate excessive memory and exhaust all memory available, causing a crash.

References

CVSS Base Scores

version 4.0
version 3.1