CVE-2022-42919
Reported by mitre · Published November 6, 2022
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| python-unversioned-command | Amazon Linux | 3.9.16-1.amzn2023.0.2 |
| python-min | Bitnami | 3.10.9, 3.9.16, 3.8.16, 3.7.16 |
| python3 | Alpine | 3.10.9-r0 |
| python | Bitnami | 3.10.9, 3.9.16, 3.8.16, 3.7.16 |
| python3-debug | Amazon Linux | 3.9.16-1.amzn2023.0.2 |
| python3-test | Amazon Linux | 3.9.16-1.amzn2023.0.2 |
| python3-devel | Amazon Linux | 3.9.16-1.amzn2023.0.2 |
| python3 | Amazon Linux | 3.9.16-1.amzn2023.0.2 |
| libpython | Bitnami | 3.10.9, 3.9.16, 3.8.16, 3.7.16 |
| python3-tkinter | Amazon Linux | 3.9.16-1.amzn2023.0.2 |
| debian/python-3.14 | debian | 3.11.0, 3.10.9, 3.9.16 |
| debian/python-3.10 | debian | 3.11.0, 3.10.9, 3.9.16 |
12 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2023 | python-unversioned-command | 0 |
| alpine | python3 | 0 |
| amazon:2023 | python3-debug | 0 |
| Python | Python | |
| amazon:2023 | python3-test | 0 |
| amazon:2023 | python3-devel | 0 |
| amazon:2023 | python3 | 0 |
| amazon:2023 | python3-tkinter | 0 |
| n/a | n/a | * |
| amazon:2023 | python3-libs | 0 |
| amazon:2023 | python3-idle | 0 |
Timeline
- Oct 30, 2022 CVE Published
- Nov 7, 2022 EPSS Score (30 in total, the first dated here)
- Mar 10, 2026 Security Advisory (53 in total, the first dated here)
- Jun 14, 2026 Coalition ESS Score
- Nov 14, 2026 Distribution Patch (49 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-42919
vulnetix vdb fixes CVE-2022-42919
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-42919/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2022-1166a1df1e vendor-advisory
- FEDORA-2022-028c09eaa7 vendor-advisory
- FEDORA-2022-b17bf30e88 vendor-advisory
- FEDORA-2022-462f39dd2f vendor-advisory
- FEDORA-2022-a7cad6bd22 vendor-advisory
- FEDORA-2022-f44dd1bec2 vendor-advisory
- FEDORA-2023-af5206f71d vendor-advisory
- FEDORA-2023-097dd40685 vendor-advisory
- GLSA-202305-02 vendor-advisory
- https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html advisory