Home / Python Software Foundation / CPython / CVE-2024-3219
CVE-2024-3219: is it exploited, and which versions of Python Software Foundation CPython are affected and fixed?
CVE-2024-3219 is a missing authentication for a critical function vulnerability in Python Software Foundation CPython. 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, 13:08 UTC). Affected: CPython before 3.8.20, CPython from 3.9.0 before 3.9.20, CPython from 3.10.0 before 3.10.15 and 3 more (CVE record by PSF). Fixed in 3.8.20, 3.9.20, 3.10.15, 3.11.10 and 2 more (CVE record by PSF). Severity: Medium (5.1, CVSS 4.0, from PSF).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:08 UTC, CVE record November 19, 2026, 07:12 UTC and NVD November 19, 2026, 07:27 UTC.
What is CVE-2024-3219?
Pure-Python fallback of socket.socketpair() doesn’t authenticate peer connection
The “socket” module provides a pure-Python fallback to the socket.socketpair() function for platforms that don’t support AF_UNIX, such as Windows. This pure-Python implementation uses AF_INET or AF_INET6 to create a local connected pair of sockets. The connection between the two sockets was not verified before passing the two sockets back to the user, which leaves the server socket vulnerable to a connection race from a malicious local peer. Platforms that support AF_UNIX such as Linux and macOS are not affected by this vulnerability. Versions prior to CPython 3.5 are not affected due to the vulnerable API not being included.
From the CVE record by PSF, last updated May 2, 2025, 23:02 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Python Software Foundation | CPython Windows | before 3.8.20 from 3.9.0 before 3.9.20 from 3.10.0 before 3.10.15 from 3.11.0 before 3.11.10 from 3.12.0 before 3.12.5 from 3.13.0a1 before 3.13.0rc1 | 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.5, 3.13.0rc1 |
As the CVE record by PSF states it, last updated May 2, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2024-3219?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.1 | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N | PSF |
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-2024-3219 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, July 31, 2024)
- EPSS
- 0.25% probability of exploitation activity in the next 30 days, percentile 17.1 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-306 Missing Authentication for Critical Functionality
Where are the vendor advisories and references?
- https://github.com/python/cpython/pull/122134 patch
- https://github.com/python/cpython/issues/122133 issue-tracking
- https://mail.python.org/archives/list/[email protected]/thread/WYKDQWIERRE2ICIYMSVRZJO33GSCWU2B/ vendor-advisory
- http://www.openwall.com/lists/oss-security/2024/07/29/3
- https://github.com/python/cpython/commit/06fa244666ec6335a3b9bf2367e31b42b9a89b20 patch
- https://github.com/python/cpython/commit/0b65c8bf5367625673eafb92f85046a1b31259f2 patch
- https://github.com/python/cpython/commit/220e31adeaaa8436c9ff234cba1398bc49e2bb6c patch
- https://github.com/python/cpython/commit/5f90abaa786f994db3907fc31e2ee00ea2cf0929 patch
- https://github.com/python/cpython/commit/b252317956b7fc035bb3774ef6a177e227f9fc54 patch
- https://github.com/python/cpython/commit/2621a8a40ba4b2c68ca564671b7daa5da80a4508 patch
- https://github.com/python/cpython/commit/5df322e91a40909e6904bbdbc0c3a6b6a9eead39 patch
- https://github.com/python/cpython/commit/c21a36112a0028d7ac3cf8f480e0dc88dba5922c patch
- https://github.com/python/cpython/commit/f071f01b7b7e19d7d6b3a4b0ec62f820ecb14660 patch
- https://github.com/python/cpython/commit/31302f5fc24eecd693f0c8aaba7c2840b09b594d patch
- https://github.com/python/cpython/commit/3f5d9d12c74787fbf3f5891835c85cc15526c86d patch
- https://github.com/python/cpython/commit/c5655aa6ad120d2ed7f255bebd6e8b71a9c07dde patch
- https://github.com/python/cpython/commit/e319f774f9e766a2b92949444a2d46081df3363a patch
- https://github.com/python/cpython/commit/78df1043dbdce5c989600616f9f87b4ee72944e5 patch
- https://security.netapp.com/advisory/ntap-20250502-0004/
Who found and reported it?
- Ellie (reporter)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- April 2, 2024
- Published
- July 29, 2024, 21:54 UTC
- CVE record updated
- May 2, 2025, 23:02 UTC by PSF
- NVD
- Deferred, last modified June 17, 2026, 07:43 UTC
- Last checked
- CVE list November 19, 2026, 07:12 UTC; NVD November 19, 2026, 07:27 UTC; KEV December 3, 2026, 13:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect CPython?
- Nov 23, 2026CVE-2026-107784 Python Software Foundation CPython: path traversal (reading or writing files outside the intended folder)
- Nov 12, 2026CVE-2026-16052 Python Software Foundation CPython: injection
- Nov 10, 2026CVE-2026-115559 Python Software Foundation CPython: sensitive data sent in clear text
- Nov 10, 2026CVE-2026-115791 Python Software Foundation CPython: inclusion of code from an untrusted source
- Nov 9, 2026CVE-2026-124249 Python Software Foundation CPython: origin not validated
- Nov 9, 2026CVE-2026-19552 Python Software Foundation CPython: improper certificate validation
- Nov 6, 2026CVE-2026-119170 Python Software Foundation CPython: protection mechanism failure
- Oct 29, 2026CVE-2026-116566 Python Software Foundation CPython: improper Neutralization of Null Byte or NUL Character
Questions about CVE-2024-3219
Is CVE-2024-3219 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:08 UTC. FIRST's EPSS gives it a 0.25% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Python Software Foundation CPython are affected by CVE-2024-3219?
CPython before 3.8.20, CPython from 3.9.0 before 3.9.20, CPython from 3.10.0 before 3.10.15, CPython from 3.11.0 before 3.11.10, CPython from 3.12.0 before 3.12.5 and CPython from 3.13.0a1 before 3.13.0rc1, per the CVE record by PSF. The tables above give every range the sources list.
Which version fixes CVE-2024-3219?
3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.5 and 3.13.0rc1, per the CVE record by PSF. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-3219?
Medium (5.1, CVSS 4.0, from PSF). The severity table above shows each score with its source.
Where is the official record of CVE-2024-3219?
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.