Deserialization of Untrusted Data in Python - CVE-2022-42919

 

Deserialization of Untrusted Data in Python - CVE-2022-42919

Published: November 16, 2022


Vulnerability identifier: #VU69391
CSH Severity: Low
CVSS v4: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-42919
CWE-ID: CWE-502
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to 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.A local user can execute arbitrary code with privileges of the user running the any forkserver process.


Affected software

Python
Amazon Linux AMI
Oracle Linux
Gentoo Linux
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Desktop 15
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE Manager Proxy
SUSE Enterprise Storage
Anolis OS
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Oracle Solaris
Ubuntu
Slackware Linux
SUSE Linux Enterprise Module for Basesystem
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Module for Development Tools
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise Server 15 SP3 LTSS
SUSE Linux Enterprise Server
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Module for Python3
Python 3 Module
openSUSE Leap
openEuler
Fedora
python3.9 (Red Hat package)
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
python3.9 (Ubuntu package)
python3.7 (Ubuntu package)
python3.7-minimal (Ubuntu package)
python3.5 (Ubuntu package)
python3.5-minimal (Ubuntu package)
python3.11 (Ubuntu package)
python3.11-minimal (Ubuntu package)
python3.6-minimal (Ubuntu package)
python3.9-minimal (Ubuntu package)
python3.6 (Ubuntu package)
python3.8-minimal (Ubuntu package)
python3.8 (Ubuntu package)
python39-wcwidth
python39-PyMySQL
python39-toml
python39-pluggy
python39-Cython
python39-wheel
python39-wheel-wheel
python39-iniconfig
python39-scipy
python39-pysocks
python39-py
python39-cffi
python39-six
python39-numpy-doc
python39-numpy-f2py
python39-numpy
python39-urllib3
python39-pyparsing
python39-pybind11-devel
python39-pybind11
python39-psycopg2-tests
python39-psycopg2-doc
python39-psycopg2
python39-idna
python39-pycparser
python39-requests
python39-chardet
python39-cryptography
python39-devel
python39-rpm-macros
python39
python39-test
python39-tkinter
python39-libs
python39-idle
python3-debuginfo
python3-help
python3-devel
python3-debugsource
python3-debug
python3-unversioned-command
python3
python3.9
python39-dbm
python39-curses-debuginfo
python39-curses
python39-core-debugsource
python39-base-debuginfo
python39-base
libpython3_9-1_0
python39-tk
python39-base-32bit-debuginfo
python39-base-32bit
python39-32bit-debuginfo
libpython3_9-1_0-debuginfo
python39-32bit
libpython3_9-1_0-32bit-debuginfo
libpython3_9-1_0-32bit
python39-tools
python39-tk-debuginfo
python39-dbm-debuginfo
python39-testsuite-debuginfo
python39-testsuite
python39-doc-devhelp
python39-doc
python39-debugsource
python39-debuginfo
python3.10 (Ubuntu package)
python3.10-minimal (Ubuntu package)
python3.10
python310-dbm
python310-base-32bit
python310-base-32bit-debuginfo
libpython3_10-1_0
libpython3_10-1_0-debuginfo
python310
python310-base
python310-base-debuginfo
python310-core-debugsource
python310-curses
python310-curses-debuginfo
python310-dbm-debuginfo
python310-debuginfo
python310-debugsource
python310-devel
python310-doc-devhelp
python310-32bit-debuginfo
python310-doc
python310-32bit
libpython3_10-1_0-32bit-debuginfo
libpython3_10-1_0-32bit
python310-tools
python310-tk-debuginfo
python310-tk
python310-testsuite-debuginfo
python310-testsuite
python310-idle
python3.11
python3-docs
python39-ply
python3.12-minimal (Ubuntu package)
python3.12 (Ubuntu package)
python39-lxml
python39-mod_wsgi
python39-pyyaml
python39-psutil
python39-pytest
pypy3.9
python39-more-itertools
python39-pip-wheel
python39-pip
python39-attrs
python39-packaging
python39-setuptools
python39-setuptools-wheel
OpenManage Network Integration (OMNI)
Robotic Process Automation for Cloud Pak
HPE Moonshot 1500 Chassis Manager
Red Hat OpenShift Container Platform
Dell Enterprise SONiC Distribution
OpenShift Data Foundation (formerly OpenShift Container Storage)
App Connect Enterprise Certified Container
PowerScale OneFS

How to mitigate CVE-2022-42919

Install updates from vendor's website.

Python - update to 3.11.0
python3.9 (Red Hat package) - update to 3.9.10-4.el9_0
python3.9 (Ubuntu package) - update to Ubuntu Pro
python3.7 (Ubuntu package) - update to Ubuntu Pro
python3.7-minimal (Ubuntu package) - update to Ubuntu Pro
python3.5 (Ubuntu package) - update to Ubuntu Pro (Infra-only)
python3.5-minimal (Ubuntu package) - update to Ubuntu Pro
python3.11 (Ubuntu package) - addressed in versions Ubuntu Pro, 3.11.6-3ubuntu0.1
python3.11-minimal (Ubuntu package) - addressed in versions Ubuntu Pro, 3.11.6-3ubuntu0.1
python3.6-minimal (Ubuntu package) - update to Ubuntu Pro
python3.9-minimal (Ubuntu package) - update to Ubuntu Pro
python3.6 (Ubuntu package) - update to Ubuntu Pro
python3.8-minimal (Ubuntu package) - addressed in versions Ubuntu Pro, 3.8.10-0ubuntu1~20.04.10
python3.8 (Ubuntu package) - addressed in versions Ubuntu Pro, 3.8.10-0ubuntu1~20.04.10
python39-wcwidth - update to 0.2.5-3
python39-PyMySQL - update to 0.10.1-2
python39-toml - update to 0.10.1-5
python39-pluggy - update to 0.13.1-3
python39-Cython - update to 0.29.21-5
python39-wheel - update to 0.35.1-4
python39-wheel-wheel - update to 0.35.1-4
python39-iniconfig - update to 1.1.1-2
python39-scipy - update to 1.5.4-3
python39-pysocks - update to 1.7.1-4
python39-py - update to 1.10.0-1
python39-cffi - update to 1.14.3-2
python39-six - update to 1.15.0-3
python39-numpy-doc - update to 1.19.4-3.0.1
python39-numpy-f2py - update to 1.19.4-3.0.1
python39-numpy - update to 1.19.4-3.0.1
python39-urllib3 - update to 1.25.10-4
python39-pyparsing - update to 2.4.7-5
python39-pybind11-devel - update to 2.7.1-1
python39-pybind11 - update to 2.7.1-1
python39-psycopg2-tests - update to 2.8.6-2.0.1
python39-psycopg2-doc - update to 2.8.6-2.0.1
python39-psycopg2 - update to 2.8.6-2.0.1
python39-idna - update to 2.10-3
python39-pycparser - update to 2.20-3
python39-requests - update to 2.25.0-2
python39-chardet - update to 3.0.4-19
python39-cryptography - update to 3.3.1-2
OpenManage Network Integration (OMNI) - update to 3.7
python39-devel - update to 3.9.7-2.0.1
python39-rpm-macros - update to 3.9.7-2.0.1
python39 - update to 3.9.7-2.0.1
python39-test - update to 3.9.7-2.0.1
python39-tkinter - update to 3.9.7-2.0.1
python39-libs - update to 3.9.7-2.0.1
python39-idle - update to 3.9.7-2.0.1
python3-debuginfo - update to 3.9.9-16
python3-help - update to 3.9.9-16
python3-devel - update to 3.9.9-16
python3-debugsource - update to 3.9.9-16
python3-debug - update to 3.9.9-16
python3-unversioned-command - update to 3.9.9-16
python3 - update to 3.9.9-16
python3.9 - addressed in versions 3.9.15-2.fc35, 3.9.15-2.fc37, 3.9.15-2.fc38, 3.9.15-3.fc36
python39-dbm - addressed in versions 3.9.15-150300.4.21.1, 3.9.16-150300.4.24.1
python39-curses-debuginfo - addressed in versions 3.9.15-150300.4.21.1, 3.9.16-150300.4.24.1
python39-curses - addressed in versions 3.9.15-150300.4.21.1, 3.9.16-150300.4.24.1
python39-core-debugsource - addressed in versions 3.9.15-150300.4.21.1, 3.9.16-150300.4.24.1
python39-base-debuginfo - addressed in versions 3.9.15-150300.4.21.1, 3.9.16-150300.4.24.1
python39-base - addressed in versions 3.9.15-150300.4.21.1, 3.9.16-150300.4.24.1
python39 - addressed in versions 3.9.15-150300.4.21.1, 3.9.16-150300.4.24.1
libpython3_9-1_0 - addressed in versions 3.9.15-150300.4.21.1, 3.9.16-150300.4.24.1
python39-tk - addressed in versions 3.9.15-150300.4.21.1, 3.9.16-150300.4.24.1
python39-base-32bit-debuginfo - addressed in versions 3.9.15-150300.4.21.1, 3.9.16-150300.4.24.1
python39-base-32bit - addressed in versions 3.9.15-150300.4.21.1, 3.9.16-150300.4.24.1
python39-32bit-debuginfo - addressed in versions 3.9.15-150300.4.21.1, 3.9.16-150300.4.24.1
libpython3_9-1_0-debuginfo - addressed in versions 3.9.15-150300.4.21.1, 3.9.16-150300.4.24.1
python39-32bit - addressed in versions 3.9.15-150300.4.21.1, 3.9.16-150300.4.24.1
libpython3_9-1_0-32bit-debuginfo - addressed in versions 3.9.15-150300.4.21.1, 3.9.16-150300.4.24.1
libpython3_9-1_0-32bit - addressed in versions 3.9.15-150300.4.21.1, 3.9.16-150300.4.24.1
python39-tools - addressed in versions 3.9.15-150300.4.21.1, 3.9.16-150300.4.24.1
python39-tk-debuginfo - addressed in versions 3.9.15-150300.4.21.1, 3.9.16-150300.4.24.1
python39-dbm-debuginfo - addressed in versions 3.9.15-150300.4.21.1, 3.9.16-150300.4.24.1
python39-testsuite-debuginfo - addressed in versions 3.9.15-150300.4.21.1, 3.9.16-150300.4.24.1
python39-testsuite - addressed in versions 3.9.15-150300.4.21.1, 3.9.16-150300.4.24.1
python39-idle - addressed in versions 3.9.15-150300.4.21.1, 3.9.16-150300.4.24.1
python39-doc-devhelp - addressed in versions 3.9.15-150300.4.21.1, 3.9.16-150300.4.24.1
python39-doc - addressed in versions 3.9.15-150300.4.21.1, 3.9.16-150300.4.24.1
python39-devel - addressed in versions 3.9.15-150300.4.21.1, 3.9.16-150300.4.24.1
python39-debugsource - addressed in versions 3.9.15-150300.4.21.1, 3.9.16-150300.4.24.1
python39-debuginfo - addressed in versions 3.9.15-150300.4.21.1, 3.9.16-150300.4.24.1
python3 - update to 3.9.16
python3.9 - update to 3.9.16-1
python3.10 (Ubuntu package) - addressed in versions 3.10.6-1~22.04.1, 3.10.7-1ubuntu0.1, 3.10.12-1~22.04.4
python3.10-minimal (Ubuntu package) - addressed in versions 3.10.6-1~22.04.1, 3.10.7-1ubuntu0.1, 3.10.12-1~22.04.4
python3.10 - addressed in versions 3.10.8-2.fc38, 3.10.8-3.fc35, 3.10.8-3.fc36, 3.10.8-3.fc37
python310-dbm - addressed in versions 3.10.8-150400.4.15.1, 3.10.10-150400.4.22.1
python310-base-32bit - addressed in versions 3.10.8-150400.4.15.1, 3.10.10-150400.4.22.1
python310-base-32bit-debuginfo - addressed in versions 3.10.8-150400.4.15.1, 3.10.10-150400.4.22.1
libpython3_10-1_0 - addressed in versions 3.10.8-150400.4.15.1, 3.10.10-150400.4.22.1
libpython3_10-1_0-debuginfo - addressed in versions 3.10.8-150400.4.15.1, 3.10.10-150400.4.22.1
python310 - addressed in versions 3.10.8-150400.4.15.1, 3.10.10-150400.4.22.1
python310-base - addressed in versions 3.10.8-150400.4.15.1, 3.10.10-150400.4.22.1
python310-base-debuginfo - addressed in versions 3.10.8-150400.4.15.1, 3.10.10-150400.4.22.1
python310-core-debugsource - addressed in versions 3.10.8-150400.4.15.1, 3.10.10-150400.4.22.1
python310-curses - addressed in versions 3.10.8-150400.4.15.1, 3.10.10-150400.4.22.1
python310-curses-debuginfo - addressed in versions 3.10.8-150400.4.15.1, 3.10.10-150400.4.22.1
python310-dbm-debuginfo - addressed in versions 3.10.8-150400.4.15.1, 3.10.10-150400.4.22.1
python310-debuginfo - addressed in versions 3.10.8-150400.4.15.1, 3.10.10-150400.4.22.1
python310-debugsource - addressed in versions 3.10.8-150400.4.15.1, 3.10.10-150400.4.22.1
python310-devel - addressed in versions 3.10.8-150400.4.15.1, 3.10.10-150400.4.22.1
python310-doc-devhelp - addressed in versions 3.10.8-150400.4.15.1, 3.10.10-150400.4.22.1
python310-32bit-debuginfo - addressed in versions 3.10.8-150400.4.15.1, 3.10.10-150400.4.22.1
python310-doc - addressed in versions 3.10.8-150400.4.15.1, 3.10.10-150400.4.22.1
python310-32bit - addressed in versions 3.10.8-150400.4.15.1, 3.10.10-150400.4.22.1
libpython3_10-1_0-32bit-debuginfo - addressed in versions 3.10.8-150400.4.15.1, 3.10.10-150400.4.22.1
libpython3_10-1_0-32bit - addressed in versions 3.10.8-150400.4.15.1, 3.10.10-150400.4.22.1
python310-tools - addressed in versions 3.10.8-150400.4.15.1, 3.10.10-150400.4.22.1
python310-tk-debuginfo - addressed in versions 3.10.8-150400.4.15.1, 3.10.10-150400.4.22.1
python310-tk - addressed in versions 3.10.8-150400.4.15.1, 3.10.10-150400.4.22.1
python310-testsuite-debuginfo - addressed in versions 3.10.8-150400.4.15.1, 3.10.10-150400.4.22.1
python310-testsuite - addressed in versions 3.10.8-150400.4.15.1, 3.10.10-150400.4.22.1
python310-idle - addressed in versions 3.10.8-150400.4.15.1, 3.10.10-150400.4.22.1
python3.11 - addressed in versions 3.11.0-1.fc35, 3.11.0-1.fc36, 3.11.0-1.fc37
python3-docs - update to 3.11.0-1.fc37
python39-ply - update to 3.11-10
python3.12-minimal (Ubuntu package) - update to 3.12.0-1ubuntu0.1
python3.12 (Ubuntu package) - update to 3.12.0-1ubuntu0.1
HPE Moonshot 1500 Chassis Manager - update to 4.0-b43
Dell Enterprise SONiC Distribution - update to 4.4.2
python39-lxml - update to 4.6.5-1
python39-mod_wsgi - update to 4.7.1-4
Red Hat OpenShift Container Platform - update to 4.13.0
OpenShift Data Foundation (formerly OpenShift Container Storage) - update to 4.13.0
App Connect Enterprise Certified Container - addressed in versions 5.0.3, 7.0.0
python39-pyyaml - update to 5.4.1-1
python39-psutil - update to 5.8.0-4.0.1
python39-pytest - update to 6.0.2-2
pypy3.9 - addressed in versions 7.3.11-1.3.9.fc36, 7.3.11-1.3.9.fc37
python39-more-itertools - update to 8.5.0-2
PowerScale OneFS - update to 9.5.0.6
python39-pip-wheel - update to 20.2.4-7
python39-pip - update to 20.2.4-7
python39-attrs - update to 20.3.0-2
python39-packaging - update to 20.4-4
Robotic Process Automation for Cloud Pak - addressed in versions 21.0.7.1, 23.0.1
python39-setuptools - update to 50.3.2-4
python39-setuptools-wheel - update to 50.3.2-4

External References

Related Security Bulletins