7.5high
Uninitialized Variable in fastecdsa
- Severity
- 7.5high CVSS:3.1 by snyk
- Exploit likelihood
- 1.03% (higher than 64% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-ph86-g9r3-5qw4PYSEC-2024-39
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| fastecdsa | before 2.3.2 | CVE List |
| fastecdsa (PyPI) | before 2.3.2, before 57fc5689c95d649dab7ef60cc99ac64589f01e36 | GitHub Advisory Database, PyPA Advisory Database |
| antonkueltz fastecdsa | before 2.3.2 | NVD |
All scores
| snyk | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
Las versiones del paquete fastecdsa anteriores a la 2.3.2 son vulnerables al uso de variables no inicializadas en la pila, a través de la función curvemath_mul en src/curveMath.c, debido a que se usan e interpretan como un tipo definido por el usuario. Dependiendo del valor real de la variable, podría ser free() arbitrario, realloc() arbitrario, desreferencia de puntero nulo y otros. Dado que el atacante puede controlar la pila, la vulnerabilidad podría usarse para corromper la estructura del asignador, lo que llevaría a una posible explotación del montón. El atacante podría provocar una denegación de servicio aprovechando esta vulnerabilidad.
References
| https://security.snyk.io/vuln/SNYK-PYTHON-FASTECDSA-6262045 | exploit, third-party-advisory, web | |
| https://gist.github.com/keltecc/49da037072276f21b005a8337c15db26 | exploit, third-party-advisory, web | |
| https://github.com/AntonKueltz/fastecdsa/blob/v2.3.1/src/curveMath.c%23L210 | broken-link, web | |
| https://github.com/AntonKueltz/fastecdsa/commit/57fc5689c95d649dab7ef60cc99ac64589f01e36 | fix, patch, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-21502 | advisory | |
| https://github.com/AntonKueltz/fastecdsa | package | |
| https://github.com/advisories/GHSA-ph86-g9r3-5qw4 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-21502 changed 2024-11-01 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-ph86-g9r3-5qw4 changed 2025-02-12 | CC-BY-4.0 |
| NVD | CVE-2024-21502 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2024-39 changed 2026-06-10 | CC-BY-4.0 |