CVE-2024-21502
Antonkueltz Fastecdsa vulnerability
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 products
Fastecdsa. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Antonkueltz Fastecdsa runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/AntonKueltz/fastecdsa/commit/57fc5689c95d649dab7ef60cc99ac64589f01e36 · Patch
- gist.github.com/keltecc/49da037072276f21b005a8337c15db26 · Exploit
- security.snyk.io/vuln/SNYK-PYTHON-FASTECDSA-6262045 · Exploit
- github.com/AntonKueltz/fastecdsa/blob/v2.3.1/src/curveMath.c%23L210
- nvd.nist.gov/vuln/detail/CVE-2024-21502
- github.com/advisories/GHSA-ph86-g9r3-5qw4
- nvd.nist.gov/vuln/detail/CVE-2024-21502
- cve.org/CVERecord?id=CVE-2024-21502
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.