Vulnerability in Antonkueltz Fastecdsa
CVE-2024-21502
Versions of the package fastecdsa before 2.3.2 are vulnerable to Use of 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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.010, 64.1th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Antonkueltz Fastecdsa
- Fastecdsa — versions 0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (fkie-cad/nvd-json-data-feeds). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- security.snyk.io/vuln/SNYK-PYTHON-FASTECDSA-6262045 (Exploit, Third Party Advisory)
- gist.github.com/keltecc/49da037072276f21b005a8337c15db26 (Exploit, Third Party Advisory)
- github.com/AntonKueltz/fastecdsa/blob/v2.3.1/src/curveMath.c#L210 (Broken Link)
- github.com/AntonKueltz/fastecdsa/commit/57fc5689c95d649dab7ef60cc99ac64589f01e36 (Patch)