Vulnerability · Published Feb 24, 2024 · Assigned by snyk

CVE-2024-21502

High 7.5

In plain English

A high-severity security flaw in fastecdsa. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 64% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.0%top 36.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIfastecdsa2.3.2GHSA-ph86-g9r3-5qw4
PyPIfastecdsa2.3.2PYSEC-2024-39

Affected products (as reported)

VendorProductVersions
n/a fastecdsa 0 – before 2.3.2

Weakness: CWE-457 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P

References