Advisory

GHSA-ph86-g9r3-5qw4

Also known as: CVE-2024-21502, PYSEC-2024-39

Summary

Uninitialized Variable in fastecdsa

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-02-24 06:30 UTC
Modified
2025-02-12 22:26 UTC

Affected packages and fixes

fastecdsa

PyPI · All systems

Affected

  • introduced 0, fixed 2.3.2 (ecosystem)

Fixed versions

2.3.2

Fix

  • Fixed version 2.3.2
    pip install --upgrade fastecdsa==2.3.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences