Python 3.9.x before 3.9.16 and 3.10.x before 3.10.9 on Linux allows local privilege…
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and Red Hat. Impact type from CWE-502.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 4
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:python:python:*:*:*:*:*:*:*:* | 3.7.3 – 3.7.15; 3.8.3 – 3.8.15; 3.9.0 to before 3.9.16; 3.10.0 to before 3.10.9 | Vulnerable | python-pillow |
| cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | 35 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* | 36 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* | 37 | Vulnerable | Fedoraproject |
- cpe:2.3:a:python:python:*:*:*:*:*:*:*:* Versions 3.7.3 – 3.7.15; 3.8.3 – 3.8.15; 3.9.0 to before 3.9.16; 3.10.0 to before 3.10.9 Vulnerable ·python-pillow
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* Versions 35 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* Versions 36 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* Versions 37 Vulnerable ·Fedoraproject
Remediation
Red Hat 2 advisories
- RHSA-2022:8493 Released 2022-11-16 · Red Hat rating Importantpython3.9 security update
- Red Hat CodeReady Linux Builder (v. 9) python3-3.9.14-1.el9_1.1, python3-debug-3.9.14-1.el9_1.1, python3-idle-3.9.14-1.el9_1.1 +2
- Red Hat CodeReady Linux Builder EUS (v.9.0) python3-3.9.10-4.el9_0, python3-debug-3.9.10-4.el9_0, python3-idle-3.9.10-4.el9_0 +2
- Red Hat Enterprise Linux AppStream (v. 9) python-unversioned-command-3.9.14-1.el9_1.1, python3-devel-3.9.14-1.el9_1.1, python3-tkinter-3.9.14-1.el9_1.1
- Red Hat Enterprise Linux AppStream EUS (v.9.0) python-unversioned-command-3.9.10-4.el9_0, python3-devel-3.9.10-4.el9_0, python3-tkinter-3.9.10-4.el9_0
- Red Hat Enterprise Linux BaseOS (v. 9) python3-3.9.14-1.el9_1.1, python3-libs-3.9.14-1.el9_1.1, python3.9-3.9.14-1.el9_1.1
- Red Hat Enterprise Linux BaseOS EUS (v.9.0) python3-3.9.10-4.el9_0, python3-libs-3.9.10-4.el9_0, python3.9-3.9.10-4.el9_0
- RHSA-2022:8492 Released 2022-11-16 · Red Hat rating Importantpython39:3.9 security update
- Red Hat Enterprise Linux AppStream (v. 8) PyYAML-5.4.1-1.module+el8.5.0+10613+59a13ec4.src::python39:3.9, mod_wsgi-4.7.1-5.module+el8.7.0+16654+645aad7f.src::python39:3.9, numpy-1.19.4-3.module+el8.5.0+12204+54860423.src::python39:3.9 +47
- Red Hat Enterprise Linux AppStream EUS (v.8.4) PyYAML-5.4.1-1.module+el8.4.0+10484+27ce8e03.src::python39:3.9, mod_wsgi-4.7.1-4.module+el8.4.0+9822+20bf1249.src::python39:3.9, numpy-1.19.4-2.module+el8.4.0+15042+dc5a279b.1.src::python39:3.9 +47
- Red Hat Enterprise Linux AppStream EUS (v.8.6) PyYAML-5.4.1-1.module+el8.5.0+10613+59a13ec4.src::python39:3.9, mod_wsgi-4.7.1-4.module+el8.4.0+9822+20bf1249.src::python39:3.9, numpy-1.19.4-3.module+el8.5.0+12204+54860423.src::python39:3.9 +47
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat CodeReady Linux Builder (v. 9) | Fixed | RHSA-2022:8493 |
| Red Hat CodeReady Linux Builder EUS (v.9.0) | Fixed | RHSA-2022:8493 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2022:8492 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2022:8493 |
| Red Hat Enterprise Linux AppStream EUS (v.8.4) | Fixed | RHSA-2022:8492 |
| Red Hat Enterprise Linux AppStream EUS (v.8.6) | Fixed | RHSA-2022:8492 |
| Red Hat Enterprise Linux AppStream EUS (v.9.0) | Fixed | RHSA-2022:8493 |
| Red Hat Enterprise Linux BaseOS (v. 9) | Fixed | RHSA-2022:8493 |
| Red Hat Enterprise Linux BaseOS EUS (v.9.0) | Fixed | RHSA-2022:8493 |
Not affected: 5 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat OpenShift Container Platform 4
- Red Hat Software Collections
Timeline
- 2026-10-02 Threatist record created from CVE-2022-42919
- 2026-10-03 Alias added: GHSA-hrxf-3584-q6p6
References
Advisory 12
- https://github.com/python/cpython/issues/97514
- FEDORA-2022-1166a1df1e
- FEDORA-2022-028c09eaa7
- FEDORA-2022-b17bf30e88
- FEDORA-2022-462f39dd2f
- FEDORA-2022-a7cad6bd22
- FEDORA-2022-f44dd1bec2
- https://security.netapp.com/advisory/ntap-20221209-0006/
- https://github.com/python/cpython/issues/97514#issuecomment-1310277840
- FEDORA-2023-af5206f71d
- FEDORA-2023-097dd40685
- GLSA-202305-02
Sources
- CVE-2022-42919 · CVE Program
- CVE-2022-42919 · NVD
- FIRST EPSS
- GHSA-hrxf-3584-q6p6 · GitHub Advisory Database · CC BY 4.0
- CVE-2022-42919 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences