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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:antonkueltz:fastecdsa:*:*:*:*:*:*:*:*

History

12 Feb 2025, 18:49

Type Values Removed Values Added
CWE CWE-908
CPE cpe:2.3:a:antonkueltz:fastecdsa:*:*:*:*:*:*:*:*
First Time Antonkueltz fastecdsa
Antonkueltz
References () https://gist.github.com/keltecc/49da037072276f21b005a8337c15db26 - () https://gist.github.com/keltecc/49da037072276f21b005a8337c15db26 - Exploit, Third Party Advisory
References () https://github.com/AntonKueltz/fastecdsa/blob/v2.3.1/src/curveMath.c%23L210 - () https://github.com/AntonKueltz/fastecdsa/blob/v2.3.1/src/curveMath.c%23L210 - Broken Link
References () https://github.com/AntonKueltz/fastecdsa/commit/57fc5689c95d649dab7ef60cc99ac64589f01e36 - () https://github.com/AntonKueltz/fastecdsa/commit/57fc5689c95d649dab7ef60cc99ac64589f01e36 - Patch
References () https://security.snyk.io/vuln/SNYK-PYTHON-FASTECDSA-6262045 - () https://security.snyk.io/vuln/SNYK-PYTHON-FASTECDSA-6262045 - Exploit, Third Party Advisory

21 Nov 2024, 08:54

Type Values Removed Values Added
References () https://gist.github.com/keltecc/49da037072276f21b005a8337c15db26 - () https://gist.github.com/keltecc/49da037072276f21b005a8337c15db26 -
References () https://github.com/AntonKueltz/fastecdsa/blob/v2.3.1/src/curveMath.c%23L210 - () https://github.com/AntonKueltz/fastecdsa/blob/v2.3.1/src/curveMath.c%23L210 -
References () https://github.com/AntonKueltz/fastecdsa/commit/57fc5689c95d649dab7ef60cc99ac64589f01e36 - () https://github.com/AntonKueltz/fastecdsa/commit/57fc5689c95d649dab7ef60cc99ac64589f01e36 -
References () https://security.snyk.io/vuln/SNYK-PYTHON-FASTECDSA-6262045 - () https://security.snyk.io/vuln/SNYK-PYTHON-FASTECDSA-6262045 -
Summary
  • (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.

24 Feb 2024, 05:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-02-24 05:15

Updated : 2025-02-12 18:49


NVD link : CVE-2024-21502

Mitre link : CVE-2024-21502

CVE.ORG link : CVE-2024-21502


JSON object : View

Products Affected

antonkueltz

  • fastecdsa
CWE
CWE-457

Use of Uninitialized Variable

CWE-908

Use of Uninitialized Resource