CVE-2024-3219

Severity CVSS v4.0:
MEDIUM
Type:
CWE-306 Missing Authentication for Critical Function
Publication date:
29/07/2024
Last modified:
02/05/2025

Description

The<br /> “socket” module provides a pure-Python fallback to the <br /> socket.socketpair() function for platforms that don’t support AF_UNIX, <br /> such as Windows. This pure-Python implementation uses AF_INET or <br /> AF_INET6 to create a local connected pair of sockets. The connection <br /> between the two sockets was not verified before passing the two sockets <br /> back to the user, which leaves the server socket vulnerable to a <br /> connection race from a malicious local peer.<br /> <br /> 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.

References to Advisories, Solutions, and Tools