CVE-2024-21502
HIGH 7.5CVSS 3.1Uninitialized Variable in fastecdsa
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.
- Published
- 24 Feb 2024
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Analyzed
- Weakness
- CWE-457CWE-908
- Also known as
- GHSA-ph86-g9r3-5qw4PYSEC-2024-39
- Sources
- NVDJSONOSV GHSA-ph86-g9r3-5qw4JSONOSV PYSEC-2024-39JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | antonkueltz | fastecdsacpe:2.3:a:antonkueltz:fastecdsa:*:*:*:*:*:*:*:* |
< 2.3.2 | 2.3.2 |
| OSV | PyPI | fastecdsa | < 2.3.2 | 2.3.2 |
References
- 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 · Patch, WEB, FIX
- https://security.snyk.io/vuln/SNYK-PYTHON-FASTECDSA-6262045 · Exploit, Third Party Advisory, 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
History
- 25 Nov 2026 20:54 UTC · NVD: first stored (published 24 Feb 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 24 Feb 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 24 Feb 2024)