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 AFUNIX, such as Windows. This pure-Python implementation uses AFINET or AFINET6 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 AFUNIX 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 Software
Event History
Frequently Asked Questions
What is the severity of CVE-2024-3219?
CVE-2024-3219 is considered a medium severity vulnerability due to potential risks associated with socket connections.
How do I fix CVE-2024-3219?
To fix CVE-2024-3219, upgrade to Python CPython version 3.6 or later where the vulnerability has been addressed.
What platforms are affected by CVE-2024-3219?
CVE-2024-3219 affects Python CPython versions prior to 3.6 on platforms that do not support AF_UNIX.
What type of vulnerability is CVE-2024-3219?
CVE-2024-3219 is a vulnerability related to the socket module's implementation of socket pairs in Python.
Is CVE-2024-3219 easy to exploit?
CVE-2024-3219 could potentially be exploited in specific scenarios involving local socket communications, increasing the risk of data exposure.