CVE-2022-42919 Details
Description
Python 3.9.x before 3.9.16 and 3.10.x before 3.10.9 on Linux allows local privilege escalation in a non-default configuration. The Python multiprocessing library, when used with the forkserver start method on Linux, allows pickles to be deserialized from any user in the same machine local network namespace, which in many system configurations means any user on the same machine. Pickles can execute arbitrary code. Thus, this allows for local user privilege escalation to the user that any forkserver process is running as. Setting multiprocessing.util.abstract_sockets_supported to False is a workaround. The forkserver start method for multiprocessing is not the default start method. This issue is Linux specific because only Linux supports abstract namespace sockets. CPython before 3.9 does not make use of Linux abstract namespace sockets by default. Support for users manually specifying an abstract namespace socket was added as a bugfix in 3.7.8 and 3.8.3, but users would need to make specific uncommon API calls in order to do that in CPython before 3.9.
A local privilege escalation vulnerability has been identified in Python versions 3.9.x prior to 3.9.16 and 3.10.x prior to 3.10.9 on Linux. This vulnerability arises when the Python multiprocessing library is used with the 'forkserver' start method, which is not the default. In this configuration, pickles can be deserialized from any user in the same machine's local network namespace, often allowing arbitrary code execution. The issue is specific to Linux due to the use of abstract namespace sockets, which lack permissions and can expose the deserialization vulnerability to all users on the system.
Users can upgrade to Python 3.9.16 or 3.10.9, both of which include the necessary fix. Alternatively, the vulnerability can be mitigated by setting the 'abstract_sockets_supported' variable to False in the 'multiprocessing.util' module before any multiprocessing functions are called.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 2, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
| CWE-502 | Deserialization of Untrusted Data | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| python python | >= 3.7.3, <= 3.7.15 >= 3.8.3, <= 3.8.15 >= 3.9.0, < 3.9.16 >= 3.10.0, < 3.10.9 |
CPE
Remediation
| |
| fedoraproject fedora | 35 36 37 |
CPE
Remediation
| |
Change History
20 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 3, 2025 | CVE Modified | CVE |
| May 2, 2025 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Nov 7, 2023 | CVE Modified | [email protected] |
| May 3, 2023 | CVE Modified | [email protected] |
| Feb 5, 2023 | Modified Analysis | [email protected] |
| Jan 18, 2023 | CVE Modified | [email protected] |
| Jan 13, 2023 | CVE Modified | [email protected] |
| Jan 12, 2023 | CVE Modified | [email protected] |
| Dec 14, 2022 | CVE Modified | [email protected] |
| Dec 9, 2022 | CVE Modified | [email protected] |
| Dec 1, 2022 | CVE Modified | [email protected] |
| Nov 23, 2022 | CVE Modified | [email protected] |
| Nov 22, 2022 | CVE Modified | [email protected] |
| Nov 19, 2022 | CVE Modified | [email protected] |
| Nov 18, 2022 | CVE Modified | [email protected] |
| Nov 8, 2022 | Initial Analysis | [email protected] |