PT-2024-24457 · Python+1 · Cpython+1
Ellie
+1
·
Published
2024-07-29
·
Updated
2025-05-02
·
CVE-2024-3219
CVSS v4.0
5.1
Medium
| Vector | AV:L/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
CPython versions 3.5 through latest
Description
The issue arises from the "socket" module's pure-Python fallback for the socket.socketpair() function on platforms that don't support AF UNIX, such as Windows. This implementation uses AF INET or AF INET6 to create a local connected pair of sockets. However, the connection between the two sockets is not verified before being passed back to the user, leaving the server socket vulnerable to a connection race from a malicious local peer. Platforms that support AF UNIX, like Linux and macOS, are not affected.
Recommendations
For CPython versions 3.5 and later, consider disabling the socket.socketpair() function until a patch is available to prevent potential exploitation. Restrict access to the "socket" module to minimize the risk of a connection race from a malicious local peer. Avoid using the AF INET or AF INET6 protocols in the socket.socketpair() function on Windows platforms until the issue is resolved. At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Missing Authentication
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Cpython