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.
{
"license": "CC-BY-4.0",
"sources": [
{
"affected": {
"python:python": [
">= 3.6.0, <= 3.6.12",
">= 3.7.0, <= 3.7.9",
">= 3.8.0, <= 3.8.7",
">= 3.9.0, <= 3.9.1"
]
},
"database_specific": {
"status": "Modified"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-3177",
"id": "CVE-2021-3177",
"imported": "2026-11-21T03:10:13.549Z",
"modified": "2026-10-14T10:17:38.433Z",
"published": "2021-01-19T06:15:12.967Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2021-3177"
}
]
}