7.5
HIGH
CVE-2024-21502
Fastecdsa Use of Uninitialized Variable Heap Overflow Vulnerability
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.

INFO

Published Date :

Feb. 24, 2024, 5:15 a.m.

Last Modified :

Feb. 12, 2025, 6:49 p.m.

Remotely Exploitable :

Yes !

Impact Score :

3.6

Exploitability Score :

3.9
Affected Products

The following products are affected by CVE-2024-21502 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Fastecdsa_project fastecdsa
1 Antonkueltz fastecdsa

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-21502 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-21502 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Feb. 12, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
    Added CWE NIST CWE-908
    Added CPE Configuration OR *cpe:2.3:a:antonkueltz:fastecdsa:*:*:*:*:*:*:*:* versions up to (excluding) 2.3.2
    Changed Reference Type https://gist.github.com/keltecc/49da037072276f21b005a8337c15db26 No Types Assigned https://gist.github.com/keltecc/49da037072276f21b005a8337c15db26 Exploit, Third Party Advisory
    Changed Reference Type https://gist.github.com/keltecc/49da037072276f21b005a8337c15db26 No Types Assigned https://gist.github.com/keltecc/49da037072276f21b005a8337c15db26 Exploit, Third Party Advisory
    Changed Reference Type https://github.com/AntonKueltz/fastecdsa/blob/v2.3.1/src/curveMath.c%23L210 No Types Assigned https://github.com/AntonKueltz/fastecdsa/blob/v2.3.1/src/curveMath.c%23L210 Broken Link
    Changed Reference Type https://github.com/AntonKueltz/fastecdsa/blob/v2.3.1/src/curveMath.c%23L210 No Types Assigned https://github.com/AntonKueltz/fastecdsa/blob/v2.3.1/src/curveMath.c%23L210 Broken Link
    Changed Reference Type https://github.com/AntonKueltz/fastecdsa/commit/57fc5689c95d649dab7ef60cc99ac64589f01e36 No Types Assigned https://github.com/AntonKueltz/fastecdsa/commit/57fc5689c95d649dab7ef60cc99ac64589f01e36 Patch
    Changed Reference Type https://github.com/AntonKueltz/fastecdsa/commit/57fc5689c95d649dab7ef60cc99ac64589f01e36 No Types Assigned https://github.com/AntonKueltz/fastecdsa/commit/57fc5689c95d649dab7ef60cc99ac64589f01e36 Patch
    Changed Reference Type https://security.snyk.io/vuln/SNYK-PYTHON-FASTECDSA-6262045 No Types Assigned https://security.snyk.io/vuln/SNYK-PYTHON-FASTECDSA-6262045 Exploit, Third Party Advisory
    Changed Reference Type https://security.snyk.io/vuln/SNYK-PYTHON-FASTECDSA-6262045 No Types Assigned https://security.snyk.io/vuln/SNYK-PYTHON-FASTECDSA-6262045 Exploit, Third Party Advisory
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://gist.github.com/keltecc/49da037072276f21b005a8337c15db26
    Added Reference https://github.com/AntonKueltz/fastecdsa/blob/v2.3.1/src/curveMath.c%23L210
    Added Reference https://github.com/AntonKueltz/fastecdsa/commit/57fc5689c95d649dab7ef60cc99ac64589f01e36
    Added Reference https://security.snyk.io/vuln/SNYK-PYTHON-FASTECDSA-6262045
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Received by [email protected]

    Feb. 24, 2024

    Action Type Old Value New Value
    Added 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.
    Added Reference Snyk https://security.snyk.io/vuln/SNYK-PYTHON-FASTECDSA-6262045 [No types assigned]
    Added Reference Snyk https://gist.github.com/keltecc/49da037072276f21b005a8337c15db26 [No types assigned]
    Added Reference Snyk https://github.com/AntonKueltz/fastecdsa/blob/v2.3.1/src/curveMath.c%23L210 [No types assigned]
    Added Reference Snyk https://github.com/AntonKueltz/fastecdsa/commit/57fc5689c95d649dab7ef60cc99ac64589f01e36 [No types assigned]
    Added CWE Snyk CWE-457
    Added CVSS V3.1 Snyk AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-21502 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-21502 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
© cvefeed.io
Latest DB Update: May. 17, 2025 14:23