CVE-2024-21502
Uninitialized Variable in fastecdsa
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.
How to fix CVE-2024-21502
To remediate CVE-2024-21502, upgrade the affected package to a fixed version below.
- —upgrade to 2.3.2 or later
- —upgrade to 57fc5689c95d649dab7ef60cc99ac64589f01e36 or later
Is CVE-2024-21502 being exploited?
Low — EPSS is 0.1%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, < 2.3.2
- from 0, < 57fc5689c95d649dab7ef60cc99ac64589f01e36 | from 0, < 2.3.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |