CVE-2021-3177

CRITICALCVSS 9.8/10EPSS 23.29%

Last modified

CVE-2021-3177 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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.. EPSS estimates a 23.29% chance of exploitation in the next 30 days.

Description

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.

Metrics

CVSS 3.1
9.8/10

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

EPSS Probability
23.29%

97.5th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
PythonPython>= 3.6.0, <= 3.6.12
PythonPython>= 3.7.0, <= 3.7.9
PythonPython>= 3.8.0, <= 3.8.7
PythonPython>= 3.9.0, <= 3.9.1
FedoraprojectFedora32
FedoraprojectFedora33
NetappActive Iq Unified ManagerAll versions
NetappOntap Select Deploy Administration UtilityAll versions
DebianDebian Linux9.0
OracleCommunications Cloud Native Core Network Function Cloud Native Environment22.2.0
OracleCommunications Offline Mediation Controller12.0.0.3.0
OracleCommunications Pricing Design Center12.0.0.3.0
OracleEnterprise Manager Ops Center12.4.0.0
OracleZfs Storage Appliance Kit8.8

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2021-3177?
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.
How severe is CVE-2021-3177?
CVE-2021-3177 has a CVSS score of 9.8/10 (CRITICAL severity). The EPSS model estimates a 23.29% probability of exploitation in the next 30 days.
How do I fix CVE-2021-3177?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2021-3177?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST