Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. fastecdsa
  4. ›
  5. CVE-2024-21502

CVE-2024-21502: Uninitialized Variable in fastecdsa

February 24, 2024 (updated February 12, 2025)

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.

References

  • gist.github.com/keltecc/49da037072276f21b005a8337c15db26
  • github.com/AntonKueltz/fastecdsa
  • github.com/AntonKueltz/fastecdsa/blob/v2.3.1/src/curveMath.c%23L210
  • github.com/AntonKueltz/fastecdsa/commit/57fc5689c95d649dab7ef60cc99ac64589f01e36
  • github.com/advisories/GHSA-ph86-g9r3-5qw4
  • nvd.nist.gov/vuln/detail/CVE-2024-21502
  • security.snyk.io/vuln/SNYK-PYTHON-FASTECDSA-6262045

Code Behaviors & Features

Detect and mitigate CVE-2024-21502 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.3.2

Fixed versions

  • 2.3.2

Solution

Upgrade to version 2.3.2 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

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

Source file

pypi/fastecdsa/CVE-2024-21502.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:11 +0000.