CVE-2021-3177Python
Critical 9.8 No auth neededHigh EPSS
Follow: this CVE · Python · Python We alert you by email or Slack (account required).
- Priority
- 76
- CVSS 3.1
- 9.8
- EPSS
- 24.0% probability of exploitation in 30 days · percentile 98
- Auth required
- No
- Published
- Jan 19, 2021
- Updated
- Oct 14, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-120
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Python.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| python | python | ≥ 3.6.0 ≤ 3.6.12 |
| python | python | ≥ 3.7.0 ≤ 3.7.9 |
| python | python | ≥ 3.8.0 ≤ 3.8.7 |
| python | python | ≥ 3.9.0 ≤ 3.9.1 |
| fedoraproject | fedora | 32 |
| fedoraproject | fedora | 33 |
| netapp | active_iq_unified_manager | all |
| netapp | active_iq_unified_manager | all |
| netapp | ontap_select_deploy_administration_utility | all |
| debian | debian_linux | 9.0 |
| oracle | communications_cloud_native_core_network_function_cloud_native_environment | 22.2.0 |
| oracle | communications_offline_mediation_controller | 12.0.0.3.0 |
| oracle | communications_pricing_design_center | 12.0.0.3.0 |
| oracle | enterprise_manager_ops_center | 12.4.0.0 |
| oracle | zfs_storage_appliance_kit | 8.8 |
Official sources
References
Links published by the sources. Open them with care.
- bugs.python.org Exploit Issue Tracking Patch
- github.com Patch Third Party Advisory
- lists.apache.org
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- news.ycombinator.com Third Party Advisory
- python-security.readthedocs.io Patch Third Party Advisory
- security.gentoo.org Third Party Advisory
- security.netapp.com Third Party Advisory
- www.oracle.com Patch Third Party Advisory
- www.oracle.com Patch Third Party Advisory
- www.oracle.com Patch Third Party Advisory
- www.oracle.com Patch Third Party Advisory
- cert-portal.siemens.com