# CVE-2024-21502: Uninitialized Variable in fastecdsa

- Severity: High 7.5 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.03%, higher than 64% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2024-02-24T05:00:01.602Z
- Modified: 2026-06-17T07:09:37.790Z
- Also known as: GHSA-ph86-g9r3-5qw4, PYSEC-2024-39
- Weaknesses: CWE-457, CWE-908
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: snyk

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

(As written by CVE List.)

## Affected

- fastecdsa: before 2.3.2
- fastecdsa (PyPI): before 2.3.2; before 57fc5689c95d649dab7ef60cc99ac64589f01e36
- antonkueltz fastecdsa: before 2.3.2

## Every score

- snyk: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://security.snyk.io/vuln/SNYK-PYTHON-FASTECDSA-6262045> (exploit, third-party-advisory, web)
- <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> (fix, patch, 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)

## Sources

- CVE List: [CVE-2024-21502](https://www.cve.org/CVERecord?id=CVE-2024-21502), CVE Terms of Use, modified 2024-11-01
- GitHub Advisory Database: [GHSA-ph86-g9r3-5qw4](https://github.com/advisories/GHSA-ph86-g9r3-5qw4), CC-BY-4.0, modified 2025-02-12
- NVD: [CVE-2024-21502](https://nvd.nist.gov/vuln/detail/CVE-2024-21502), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-39](https://osv.dev/vulnerability/PYSEC-2024-39), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2024-21502 · Whole record: https://cve.day/CVE-2024-21502.json · Rebuilt by cve.day 2026-11-25T22:58:37.039Z
