CVE-2024-3219
Public on 2024-07-29
Modified on 2024-07-31
Description
There is a MEDIUM severity vulnerability affecting CPython.
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.
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.
Severity
CVSS v3 Base Score
See breakdown
Affected Packages
Platform | Package | Release Date | Advisory | Status |
---|---|---|---|---|
Amazon Linux 2 - Core | python | Not Affected | ||
Amazon Linux 1 | python26 | Not Affected | ||
Amazon Linux 1 | python27 | Not Affected | ||
Amazon Linux 2 - Core | python3 | Not Affected | ||
Amazon Linux 2023 | python3.11 | Not Affected | ||
Amazon Linux 2023 | python3.9 | Not Affected | ||
Amazon Linux 1 | python34 | Not Affected | ||
Amazon Linux 1 | python35 | Not Affected | ||
Amazon Linux 1 | python36 | Not Affected | ||
Amazon Linux 1 | python38 | Not Affected | ||
Amazon Linux 2 - Python3.8 Extra | python38 | Not Affected |
CVSS Scores
Score Type | Score | Vector | |
---|---|---|---|
Amazon Linux | CVSSv3 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |