# CVE-2024-3219: Pure-Python fallback of socket.socketpair() doesn’t authenticate peer connection

CVE-2024-3219 is fixed in Python 3.12 on 1 platform by Python 3.12 3.12.5 (version 3.12.5), released August 6, 2024. 8 other affected products have no fix yet. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2024-3219
- Priority: Routine
- CVSS: 5.1
- EPSS: 0.0025
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jul 29, 2024
- Weakness: CWE-306: Missing Authentication for Critical Function
- Vendor advisory: https://nvd.nist.gov/vuln/detail/CVE-2024-3219

## Description

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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Windows apps | Python 3.12 | 3.12.5 | [Python 3.12 3.12.5](https://patchblox.com/security/data/fix/windows-app/python.python.3.12-3.12.5.md) | Aug 6, 2024 |

## No fix yet

| Platform | Product | Status |
|---|---|---|
| Windows apps | Python 2 | no-fix |
| Windows apps | Python 3.10 | no-fix |
| Windows apps | Python 3.11 | no-fix |
| Windows apps | Python 3.5 | no-fix |
| Windows apps | Python 3.6 | no-fix |
| Windows apps | Python 3.7 | no-fix |
| Windows apps | Python 3.8 | no-fix |
| Windows apps | Python 3.9 | no-fix |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
