cve.bz

CVE-2022-42919 Deserialization of Untrusted Data

7.8 highEPSS 0.8%

High (7.8). EPSS 0.8% estimated probability of exploitation activity in the next 30 days.

On this page
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 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 58th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-05-02. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-502 Deserialization of Untrusted Data
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-42919 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-42919?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-42919?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-42919 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
python:pythonfrom 3.7.3 through 3.7.15
python:pythonfrom 3.8.3 through 3.8.15
python:pythonfrom 3.9.0 before 3.9.16
python:pythonfrom 3.10.0 before 3.10.9
fedoraproject:fedora35
fedoraproject:fedora36
fedoraproject:fedora37

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11python3.93.9.2-1+deb11u2DLA-3980-1
Debian12python3.113.11.0-2DEBIAN-CVE-2022-42919
Debian12, 13, 14pypy37.3.11+dfsg-1DEBIAN-CVE-2022-42919
Ubuntu20.04:LTSpython3.83.8.10-0ubuntu1~20.04.10USN-6891-1
Ubuntu22.04:LTSpython3.103.10.6-1~22.04.1UBUNTU-CVE-2022-42919 USN-5713-1 USN-6891-1
UbuntuPro:14.04:LTSpython3.53.5.2-2ubuntu0~16.04.4~14.04.1+esm1USN-6891-1
UbuntuPro:16.04:LTSpython3.53.5.2-2ubuntu0~16.04.13+esm13USN-6891-1
UbuntuPro:18.04:LTSpython3.63.6.9-1~18.04ubuntu1.13+esm2USN-6891-1
UbuntuPro:18.04:LTSpython3.73.7.5-2ubuntu1~18.04.2+esm3USN-6891-1
UbuntuPro:18.04:LTSpython3.83.8.0-3ubuntu1~18.04.2+esm2USN-6891-1
UbuntuPro:20.04:LTSpython3.93.9.5-3ubuntu0~20.04.1+esm1UBUNTU-CVE-2022-42919 USN-5888-1 USN-6891-1
UbuntuPro:22.04:LTSpython3.113.11.0~rc1-1~22.04.1~esm1UBUNTU-CVE-2022-42919 USN-6891-1
Red Hatenterprise_linux:8::appstreammod_wsgi, python39-mod_wsgi0:4.7.1-5.module+el8.7.0+16654+645aad7fRHSA-2022:8492
Red Hatenterprise_linux:8::appstreampython39, python39-idle, python39-libs and 6 more0:3.9.13-2.module+el8.7.0+17195+44752b34RHSA-2022:8492
Red Hatenterprise_linux:8::appstream, rhel_eus:8.4::appstream, rhel_eus:8.6::appstreampython-PyMySQL, python39-PyMySQL0:0.10.1-2.module+el8.4.0+9822+20bf1249RHSA-2022:8492
Red Hatenterprise_linux:8::appstream, rhel_eus:8.4::appstream, rhel_eus:8.6::appstreampython-cffi, python39-cffi, python-cffi-debugsource and 1 more0:1.14.3-2.module+el8.4.0+9822+20bf1249RHSA-2022:8492
Red Hatenterprise_linux:8::appstream, rhel_eus:8.4::appstream, rhel_eus:8.6::appstreampython-chardet, python39-chardet0:3.0.4-19.module+el8.4.0+9822+20bf1249RHSA-2022:8492
Red Hatenterprise_linux:8::appstream, rhel_eus:8.4::appstream, rhel_eus:8.6::appstreampython-cryptography, python39-cryptography, python-cryptography-debugsource and 1 more0:3.3.1-2.module+el8.4.0+9822+20bf1249RHSA-2022:8492
Red Hatenterprise_linux:8::appstream, rhel_eus:8.4::appstream, rhel_eus:8.6::appstreampython-idna, python39-idna0:2.10-3.module+el8.4.0+9822+20bf1249RHSA-2022:8492
Red Hatenterprise_linux:8::appstream, rhel_eus:8.4::appstream, rhel_eus:8.6::appstreampython-ply, python39-ply0:3.11-10.module+el8.4.0+9822+20bf1249RHSA-2022:8492
Red Hatenterprise_linux:8::appstream, rhel_eus:8.4::appstream, rhel_eus:8.6::appstreampython-psutil, python39-psutil, python-psutil-debugsource and 1 more0:5.8.0-4.module+el8.4.0+9822+20bf1249RHSA-2022:8492
Red Hatenterprise_linux:8::appstream, rhel_eus:8.4::appstream, rhel_eus:8.6::appstreampython-psycopg2, python39-psycopg2, python39-psycopg2-doc and 3 more0:2.8.6-2.module+el8.4.0+9822+20bf1249RHSA-2022:8492
Red Hatenterprise_linux:8::appstream, rhel_eus:8.4::appstream, rhel_eus:8.6::appstreampython-pycparser, python39-pycparser0:2.20-3.module+el8.4.0+9822+20bf1249RHSA-2022:8492
Red Hatenterprise_linux:8::appstream, rhel_eus:8.4::appstream, rhel_eus:8.6::appstreampython-pysocks, python39-pysocks0:1.7.1-4.module+el8.4.0+9822+20bf1249RHSA-2022:8492
27 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 5 morepython39, python39-core3.9.16-150300.4.24.1SUSE-SU-2023:0707-1
SUSELinux Enterprise Module for Basesystem 15 SP3python39, python39-core3.9.15-150300.4.21.1SUSE-SU-2022:4071-1
SUSELinux Enterprise Module for Development Tools 15 SP3python39-core3.9.15-150300.4.21.1SUSE-SU-2022:4071-1
SUSELinux Enterprise Module for Python 3 15 SP4python310, python310-core3.10.10-150400.4.22.1SUSE-SU-2023:0748-1
SUSELinux Enterprise Module for Python 3 15 SP4python310, python310-core3.10.8-150400.4.15.1SUSE-SU-2022:4004-1
openSUSELeap 15.3, Leap 15.4python39, python39-core, python39-documentation3.9.15-150300.4.21.1SUSE-SU-2022:4071-1
openSUSELeap 15.4python310, python310-core, python310-documentation3.10.10-150400.4.22.1SUSE-SU-2023:0748-1
openSUSELeap 15.4python310, python310-core, python310-documentation3.10.8-150400.4.15.1SUSE-SU-2022:4004-1
openSUSELeap 15.4python39, python39-core, python39-documentation3.9.16-150300.4.24.1SUSE-SU-2023:0707-1
openSUSETumbleweedpython3103.10.8-2.1openSUSE-SU-2024:12481-1
openSUSETumbleweedpython3113.11.0-1.1openSUSE-SU-2024:12453-1
openSUSETumbleweedpython3123.12.0a7-1.1openSUSE-SU-2024:12910-1
openSUSETumbleweedpython3133.13.0~b3-1.1openSUSE-SU-2024:14109-1
openSUSETumbleweedpython3143.14.0~a1-1.1openSUSE-SU-2024:14434-1
openSUSETumbleweedpython3153.15.0~a1-1.1openSUSE-SU-2025:15713-1
openSUSETumbleweedpython393.9.15-2.1openSUSE-SU-2024:12482-1
AlmaLinux8python39, python39-idle, python39-libs and 4 more3.9.13-2.module_el8.7.0+3351+e02cdf9bALSA-2022:8492
AlmaLinux8python39-PyMySQL0.10.1-2.module_el8.6.0+2780+a40f65e1ALSA-2022:8492
AlmaLinux8python39-cffi1.14.3-2.module_el8.6.0+2780+a40f65e1ALSA-2022:8492
AlmaLinux8python39-cffi1.14.3-2.module_el8.6.0+3248+c431e88cALSA-2022:8492
AlmaLinux8python39-chardet3.0.4-19.module_el8.6.0+2780+a40f65e1ALSA-2022:8492
AlmaLinux8python39-cryptography3.3.1-2.module_el8.6.0+2780+a40f65e1ALSA-2022:8492
AlmaLinux8python39-cryptography3.3.1-2.module_el8.6.0+3248+c431e88cALSA-2022:8492
AlmaLinux8python39-idna2.10-3.module_el8.6.0+2780+a40f65e1ALSA-2022:8492
AlmaLinux8python39-lxml4.6.5-1.module_el8.6.0+2780+a40f65e1ALSA-2022:8492
AlmaLinux8python39-lxml4.6.5-1.module_el8.6.0+3248+c431e88cALSA-2022:8492
AlmaLinux8python39-mod_wsgi4.7.1-5.module_el8.7.0+3344+df07b58aALSA-2022:8492
AlmaLinux8python39-numpy, python39-numpy-doc, python39-numpy-f2py1.19.4-3.module_el8.6.0+2780+a40f65e1ALSA-2022:8492
19 more for AlmaLinux in the JSON.
Rocky Linux8PyYAML0:5.4.1-1.module+el8.4.0+574+843c4898RLSA-2022:8492
Rocky Linux8PyYAML0:5.4.1-1.module+el8.5.0+672+ab6eb015RLSA-2022:8492
Rocky Linux8mod_wsgi0:4.7.1-4.module+el8.4.0+574+843c4898RLSA-2022:8492
Rocky Linux8mod_wsgi0:4.7.1-5.module+el8.7.0+1064+ad564229RLSA-2022:8492
Rocky Linux8numpy0:1.19.4-2.module+el8.4.0+574+843c4898RLSA-2022:8492
Rocky Linux8numpy0:1.19.4-3.module+el8.5.0+673+10283621RLSA-2022:8492
Rocky Linux8python-PyMySQL0:0.10.1-2.module+el8.4.0+574+843c4898RLSA-2022:8492
Rocky Linux8python-PyMySQL0:0.10.1-2.module+el8.4.0+597+ddf0ddeaRLSA-2022:8492
Rocky Linux8python-cffi0:1.14.3-2.module+el8.4.0+574+843c4898RLSA-2022:8492
Rocky Linux8python-chardet0:3.0.4-19.module+el8.4.0+570+c2eaf144RLSA-2022:8492
Rocky Linux8python-cryptography0:3.3.1-2.module+el8.4.0+574+843c4898RLSA-2022:8492
Rocky Linux8python-cryptography0:3.3.1-2.module+el8.5.0+673+10283621RLSA-2022:8492
27 more for Rocky Linux in the JSON.
Alpinev3.16, v3.17python33.10.9-r0ALPINE-CVE-2022-42919
Azure Linux2python33.9.19-1AZL-11394

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Versions of python36:3.6/python36 as shipped with Red Hat Enterprise Linux 8 are marked as 'Not affected' as they just provide "symlinks" to the main python3 component, which provides the actual interpreter of the Python programming language.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8python39:3.9-8070020221109174649.6eba81d3Fixed 2022-11-16RHSA-2022:8492
Red Hat Enterprise Linux 8.4 Extended Update Supportpython39:3.9-8040020221109180824.63cd9ebaFixed 2022-11-16RHSA-2022:8492
Red Hat Enterprise Linux 8.6 Extended Update Supportpython39:3.9-8060020221109194140.6a631399Fixed 2022-11-16RHSA-2022:8492
Red Hat Enterprise Linux 9python3.9-0:3.9.14-1.el9_1.1Fixed 2022-11-16RHSA-2022:8493
Red Hat Enterprise Linux 9.0 Extended Update Supportpython3.9-0:3.9.10-4.el9_0Fixed 2022-11-16RHSA-2022:8493
Red Hat Enterprise Linux 6pythonNot affected
Red Hat Enterprise Linux 7pythonNot affected
Red Hat Enterprise Linux 7python3Not affected
Red Hat Enterprise Linux 8python27:2.7/python2Not affected
Red Hat Enterprise Linux 8python3Not affected
Red Hat Enterprise Linux 8python36:3.6/python36Not affected
Red Hat Enterprise Linux 8python38:3.8/python38Not affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Not affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Not affected
Red Hat Software Collectionsrh-python38-pythonNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-42919.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-24-046-11Siemens SCALANCE XCM-/XRM-3002024-02-13MultipleSCALANCE XCH328 (6GK5328-4TS01-2EC2), SCALANCE XCM324 (6GK5324-8TS01-2AC2), SCALANCE XCM328 (6GK5328-4TS01-2AC2) and 8 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-586 Object Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON