CVE-2024-21502
JSON

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 packageVersionsReported by
fastecdsabefore 2.3.2CVE List
fastecdsa (PyPI)before 2.3.2, before 57fc5689c95d649dab7ef60cc99ac64589f01e36GitHub Advisory Database, PyPA Advisory Database
antonkueltz fastecdsabefore 2.3.2NVD

All scores

snyk7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-457CWE-908

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

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

Sources

SourceRecordLicence
CVE ListCVE-2024-21502 changed 2024-11-01CVE Terms of Use
GitHub Advisory DatabaseGHSA-ph86-g9r3-5qw4 changed 2025-02-12CC-BY-4.0
NVDCVE-2024-21502 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2024-39 changed 2026-06-10CC-BY-4.0