CVE-2022-42919
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
Check your servers for CVE-2022-42919
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-42919 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.80%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 57.8% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 2 May 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-502 Deserialization of Untrusted Data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2022-42919 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2022-42919RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2022-42919Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-42919
trivy image --scanners vuln IMAGE | grep CVE-2022-42919
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- FEDORA-2022-1166a1df1e lists.fedoraproject.org · vendor advisory
- FEDORA-2022-028c09eaa7 lists.fedoraproject.org · vendor advisory
- FEDORA-2022-b17bf30e88 lists.fedoraproject.org · vendor advisory
- FEDORA-2022-462f39dd2f lists.fedoraproject.org · vendor advisory
- FEDORA-2022-a7cad6bd22 lists.fedoraproject.org · vendor advisory
- FEDORA-2022-f44dd1bec2 lists.fedoraproject.org · vendor advisory
- FEDORA-2023-af5206f71d lists.fedoraproject.org · vendor advisory
- FEDORA-2023-097dd40685 lists.fedoraproject.org · vendor advisory
- GLSA-202305-02 security.gentoo.org · vendor advisory
Other references
- https://github.com/python/cpython/issues/97514 github.com
- https://security.netapp.com/advisory/ntap-20221209-0006/ security.netapp.com
- https://github.com/python/cpython/issues/97514#issuecomment-1310277840 github.com
- https://github.com/python/cpython/compare/v3.10.8...v3.10.9 github.com
- https://github.com/python/cpython/compare/v3.9.15...v3.9.16 github.com
- https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html lists.debian.org
Source: the record CVE-2022-42919 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse