Home / Python / Python / CVE-2021-3177
CVE-2021-3177: is it exploited, and which versions of Python are affected and fixed?
CVE-2021-3177 is a buffer overflow vulnerability in Python. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 14:38 UTC). Affected: python from 3.6.0 through 3.6.12, python from 3.7.0 through 3.7.9, python from 3.8.0 through 3.8.7 and 11 more (NVD). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Critical (9.8, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:38 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 08:04 UTC.
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.
From the CVE record by mitre, last updated October 14, 2026, 09:45 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| python | python | from 3.6.0 through 3.6.12 | application |
| python | python | from 3.7.0 through 3.7.9 | application |
| python | python | from 3.8.0 through 3.8.7 | application |
| python | python | from 3.9.0 through 3.9.1 | application |
| fedoraproject | fedora | 32 | operating system |
| fedoraproject | fedora | 33 | operating system |
| netapp | active iq unified manager | all versions | application |
| netapp | ontap select deploy administration utility | all versions | application |
| debian | debian linux | 9.0 | operating system |
| oracle | communications cloud native core network function cloud native environment | 22.2.0 | application |
| oracle | communications offline mediation controller | 12.0.0.3.0 | application |
| oracle | communications pricing design center | 12.0.0.3.0 | application |
| oracle | enterprise manager ops center | 12.4.0.0 | application |
| oracle | zfs storage appliance kit | 8.8 | application |
NVD analysis (status Modified), last modified October 14, 2026, 10:17 UTC.
How severe is CVE-2021-3177?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | CISA-ADP |
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
| High 7.5 | CVSS 2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-3177 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: total (CISA ADP, December 18, 2025)
- EPSS
- 24.0% probability of exploitation activity in the next 30 days, percentile 97.9 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-120 Buffer Copy without Checking Size of Input
Where are the vendor advisories and references?
- https://bugs.python.org/issue42938
- https://github.com/python/cpython/pull/24239
- https://python-security.readthedocs.io/vuln/ctypes-buffer-overflow-pycarg_repr.html
- FEDORA-2021-faf88b9499 vendor-advisory
- FEDORA-2021-cc3ff94cfc vendor-advisory
- GLSA-202101-18 vendor-advisory
- FEDORA-2021-e3a5a74610 vendor-advisory
- FEDORA-2021-ced31f3f0c vendor-advisory
- FEDORA-2021-42ba9feb47 vendor-advisory
- FEDORA-2021-076a2dccba vendor-advisory
- FEDORA-2021-851c6e4e2d vendor-advisory
- FEDORA-2021-66547ff92d vendor-advisory
- FEDORA-2021-17668e344a vendor-advisory
- FEDORA-2021-d5cde50865 vendor-advisory
- FEDORA-2021-7547ad987f vendor-advisory
- FEDORA-2021-f4fd9372c7 vendor-advisory
- FEDORA-2021-3352c1c802 vendor-advisory
- [mina-dev] 20210225 [jira] [Created] (FTPSERVER-500) Security vulnerability in common/lib/log4j-1.2.17.jar mailing-list
- FEDORA-2021-907f3bacae vendor-advisory
- [debian-lts-announce] 20210405 [SECURITY] [DLA 2619-1] python3.5 security update mailing-list
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://news.ycombinator.com/item?id=26185005
- https://security.netapp.com/advisory/ntap-20210226-0003/
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://www.oracle.com/security-alerts/cpujan2022.html
- [debian-lts-announce] 20220212 [SECURITY] [DLA 2919-1] python2.7 security update mailing-list
- https://www.oracle.com/security-alerts/cpujul2022.html
- [debian-lts-announce] 20230524 [SECURITY] [DLA 3432-1] python2.7 security update mailing-list
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
When was it published, and where is the official record?
- Reserved
- January 19, 2021
- Published
- January 19, 2021, 00:00 UTC
- CVE record updated
- October 14, 2026, 09:45 UTC by mitre
- NVD
- Modified, last modified October 14, 2026, 10:17 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 08:04 UTC; KEV December 3, 2026, 14:38 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Python?
- Aug 25, 2023CVE-2023-40217 Python: n/a
- Aug 23, 2023CVE-2023-41105 Python: untrusted Search Path
- Aug 22, 2023CVE-2022-48566 Python: race condition
- Aug 22, 2023CVE-2022-48565 Python: XML external entity (XXE)
- Aug 22, 2023CVE-2022-48564 Python: denial of service (uncontrolled resource consumption)
- Aug 22, 2023CVE-2022-48560 Python: use after free
- Aug 15, 2023CVE-2023-38898 Python: n/a disputed
- Jun 25, 2023CVE-2023-36632 Python: uncontrolled recursion disputed
Questions about CVE-2021-3177
Is CVE-2021-3177 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:38 UTC. FIRST's EPSS gives it a 24.0% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Python are affected by CVE-2021-3177?
python from 3.6.0 through 3.6.12, python from 3.7.0 through 3.7.9, python from 3.8.0 through 3.8.7, python from 3.9.0 through 3.9.1, fedora 32, fedora 33 and 8 more, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2021-3177?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2021-3177?
Critical (9.8, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2021-3177?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.