GitHub Advisoryadvisory · PyPI

GHSA-ph86-g9r3-5qw4 Uninitialized Variable in fastecdsa

HIGH Published 2024-02-24 Modified 2025-02-12 Official page ↗
Aliases
CVE-2024-21502
Ecosystem
PyPI
Packages
fastecdsa
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-457, CWE-908
Reviewed
2025-02-12

Affected packages

• PyPI fastecdsa: < 2.3.2 → fixed in 2.3.2

Description

Versions of the package fastecdsa before 2.3.2 use an 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.

Related

Alias · CVE (1)

  • CVE-2024-21502 Versions of the package fastecdsa before 2.3.2 are vulnerable to Use of Uninitialized Variable on the stack, via the curvemath_mul function… vulnerability

Weakness · CWE (2)

  • CWE-457 Use of Uninitialized Variable weakness
  • CWE-908 Use of Uninitialized Resource weakness

References