CVE-2024-21502: Uninitialized Variable in fastecdsa
Versions of the package fastecdsa before 2.3.2 use an Uninitialized Variable on the stack, via the curvemathmul function in src/curveMath.c, due to being used and interpreted as user-defined type. Depending on the variable's actual value it could be arbitrary free(), arbitrary realloc(), null pointer dereference and other.
Published Feb 24, 2024 · Updated Mar 26, 2026
Affected packages
fastecdsa
- Ecosystem
- PyPI
- Affected
- < 2.3.2
- Fixed in
- 2.3.2
- Check
pip show fastecdsa
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Versions of the package fastecdsa before 2.3.2 use an Uninitialized Variable on the stack, via the curvemath_mul function in src/curveMath.c, due to being used and interpreted as user-defined type. Depending on the variable's actual value it could be arbitrary free(), arbitrary realloc(), null pointer dereference and other. Since the stack can be controlled by the attacker, the vulnerability could be used to corrupt allocator structure, leading to possible heap exploitation. The attacker could cause denial of service by exploiting this vulnerability.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-21502
- https://github.com/AntonKueltz/fastecdsa/commit/57fc5689c95d649dab7ef60cc99ac64589f01e36
- https://gist.github.com/keltecc/49da037072276f21b005a8337c15db26
- https://github.com/AntonKueltz/fastecdsa/blob/v2.3.1/src/curveMath.c%23L210
- https://security.snyk.io/vuln/SNYK-PYTHON-FASTECDSA-6262045
- https://github.com/advisories/GHSA-ph86-g9r3-5qw4
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
