CVE Catalog

CVE-2021-3177

CriticalCVSS 9.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Very high risk
23.29%

98th percentile - higher than 98% of all known CVEs

Summary

Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c, which may lead to remote code execution in certain Python applications that accept floating-point numbers as untrusted input, as demonstrated by a 1e300 argument to c_double.from_param. This occurs because sprintf is used unsafely.

Risk Assessment

An attacker could remotely execute code in an application using the vulnerable Python version, potentially leading to system compromise or data breach.

Recommendation

Upgrade Python to version 3.9.2 or later, which includes a fix for this vulnerability.

Other vulnerabilities in Python

See all
Original NVD description (English source)

Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c, which may lead to remote code execution in certain Python applications that accept floating-point numbers as untrusted input, as demonstrated by a 1e300 argument to c_double.from_param. This occurs because sprintf is used unsafely.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS