CVE-2024-21502 json
Uninitialized Variable in fastecdsa
published 2y ago modified 4mo ago also EUVD-2024-0060 , GHSA-ph86-g9r3-5qw4 , PYSEC-2024-39
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 64%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
Is CVE-2024-21502 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2y ago
Exploit prediction
1.03% chance of exploitation in the next 30 days, higher than 64% of all scored CVEs (FIRST EPSS, 2026-11-11).
Exploits and checks
- security.snyk.io https://security.snyk.io/vuln/SNYK-PYTHON-FASTECDSA-6262045 referenced PoC, tagged "exploit" by a source, unverified
- gist.github.com https://gist.github.com/keltecc/49da037072276f21b005a8337c15db26 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | fastecdsa | <2.3.2 |
2.3.2 |
Affected products
- n/a fastecdsa
Classification
References
-
github.com
/AntonKueltz/fastecdsa/commit/57fc5689c95d649dab7ef60cc99ac64589f01e36
web, patch
-
security.snyk.io
/vuln/SNYK-PYTHON-FASTECDSA-6262045
web, exploit, third-party-advisory
-
gist.github.com
/keltecc/49da037072276f21b005a8337c15db26
web, exploit, third-party-advisory
-
github.com
/AntonKueltz/fastecdsa/blob/v2.3.1/src/curveMath.c%23L210
web, broken-link
-
nvd.nist.gov
/vuln/detail/CVE-2024-21502
advisory
-
github.com
/AntonKueltz/fastecdsa
package
-
github.com
/advisories/GHSA-ph86-g9r3-5qw4
advisory
Sources
- CVE List CVE-2024-21502
- GitHub Advisory GHSA-ph86-g9r3-5qw4
- NVD CVE-2024-21502
- OSV PYSEC-2024-39
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.