Race condition in Python - CVE-2024-3219

 

Race condition in Python - CVE-2024-3219

Published: October 15, 2024


Vulnerability identifier: #VU98567
CSH Severity: Low
CVSS v4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-3219
CWE-ID: CWE-362
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to gain access to sensitive information.

The vulnerability exists due to a race condition within the socket module, which 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.


Affected software

Python
openEuler
Anolis OS
APEX Cloud Platform for Microsoft Azure
Storage Resource Manager
APEX Cloud Platform for Red Hat OpenShift
python3-help
python3-unversioned-command
python3-devel
python3-debugsource
python3-debuginfo
python3-debug
python3
python3-tkinter
python-unversioned-command
python3-test
python3-libs
python3-idle
Dell EMC Storage Monitoring and Reporting (SMR)

How to mitigate CVE-2024-3219

Install updates from vendor's website.

Python - addressed in versions 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.5
APEX Cloud Platform for Microsoft Azure - update to 01.04.01.00
APEX Cloud Platform for Red Hat OpenShift - update to 03.04.01.00
python3-help - addressed in versions 3.9.9-31, 3.9.9-32, 3.9.9-36, 3.11.6-6
python3-unversioned-command - addressed in versions 3.9.9-31, 3.9.9-32, 3.9.9-36, 3.11.6-6
python3-devel - addressed in versions 3.9.9-31, 3.9.9-32, 3.9.9-36, 3.11.6-6
python3-debugsource - addressed in versions 3.9.9-31, 3.9.9-32, 3.9.9-36, 3.11.6-6
python3-debuginfo - addressed in versions 3.9.9-31, 3.9.9-32, 3.9.9-36, 3.11.6-6
python3-debug - addressed in versions 3.9.9-31, 3.9.9-32, 3.9.9-36, 3.11.6-6
python3 - addressed in versions 3.9.9-31, 3.9.9-32, 3.9.9-36, 3.11.6-6
python3-tkinter - update to 3.11.6-6
python-unversioned-command - update to 3.11.6-9
python3-tkinter - update to 3.11.6-9
python3-test - update to 3.11.6-9
python3-libs - update to 3.11.6-9
python3-idle - update to 3.11.6-9
python3-devel - update to 3.11.6-9
python3-debug - update to 3.11.6-9
python3 - update to 3.11.6-9
Dell EMC Storage Monitoring and Reporting (SMR) - update to 5.0.2.2
Storage Resource Manager - update to 5.0.2.2

External References

Related Security Bulletins