Uninitialized Variable in fastecdsa
High severity
GitHub Reviewed
Published
Feb 24, 2024
to the GitHub Advisory Database
•
Updated Feb 12, 2025
Description
Published by the National Vulnerability Database
Feb 24, 2024
Published to the GitHub Advisory Database
Feb 24, 2024
Reviewed
Feb 12, 2025
Last updated
Feb 12, 2025
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