CVE-2024-3219

Pure-Python fallback of socket.socketpair() doesn’t authenticate peer connection

MEDIUM
5.1
CVSS Score
Published: July 29, 2024 at 09:54 PM UTC
Updated: June 17, 2026 at 07:43 AM UTC
1 product affected across 1 vendorPython

Using CPython by Python Software Foundation?

Get instant alerts when new vulnerabilities affect CPython - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.1
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 3.8.203.10.0 ≤ v < 3.10.153.11.0 ≤ v < 3.11.103.12.0 ≤ v < 3.12.53.13.0a1 ≤ v < 3.13.0rc13.9.0 ≤ v < 3.9.203.10.03.11.03.12.03.13.0a13.9.0
Affected range stops below 3.10.15, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.11.10, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.12.5, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.13.0rc1, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.8.20, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.9.20, so it looks safe — our inference, not a vendor statement

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.1MEDIUMPSF
Vector?

Quick Info

StatusDEFERRED
CWE
CWE-306

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card