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.
Noroxi assessment
Priority: Monitor (action score 31/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.76% (FIRST EPSS); higher than 55.3% of all records.
- Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: python39 (AlmaLinux:8) 3.9.13-2.module_el8.7.0+3351+e02cdf9b; python39-cffi (AlmaLinux:8) 1.14.3-2.module_el8.6.0+3248+c431e88c, 1.14.3-2.module_el8.6.0+2780+a40f65e1; python39-chardet (AlmaLinux:8) 3.0.4-19.module_el8.6.0+2780+a40f65e1.
- Mentioned 1 time in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Low priority for now. Upgrade to python39 (AlmaLinux:8) 3.9.13-2.module_el8.7.0+3351+e02cdf9b; python39-cffi (AlmaLinux:8) 1.14.3-2.module_el8.6.0+3248+c431e88c, 1.14.3-2.module_el8.6.0+2780+a40f65e1; python39-chardet (AlmaLinux:8) 3.0.4-19.module_el8.6.0+2780+a40f65e1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- BDU:2022-06576
- ALSA-2022:8492
- ALSA-2022:8493
- DLA-3980-1
- openSUSE-SU-2024:12453-1
- openSUSE-SU-2024:12481-1
- openSUSE-SU-2024:12482-1
- openSUSE-SU-2024:12910-1
- openSUSE-SU-2024:14109-1
- openSUSE-SU-2024:14434-1
- openSUSE-SU-2025:15713-1
- RHSA-2022:8492
- RHSA-2022:8493
- RLSA-2022:8492
- RLSA-2022:8493
- SUSE-SU-2022:4004-1
- SUSE-SU-2022:4071-1
- SUSE-SU-2023:0707-1
- SUSE-SU-2023:0748-1
- Published
- Nov 6, 2022
- Updated
- Jun 17, 2026
- EPSS
- 0.7% · 55th percentile
- CWE
- CWE-502
Report tools
Action score
31
Monitor
Low priority for now.
- CVSS
- 31 / 40 · 7.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.7%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
Vulnrichment: CISA's decision-tree inputs.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| python | python | cpe:2.3:a:python:python |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- fedoraproject fedora35
- fedoraproject fedora36
- fedoraproject fedora37
- python python3.7.3 and later · up to 3.7.15 inclusive
- python python3.10.0 and later · before 3.10.9
- python python3.8.3 and later · up to 3.8.15 inclusive
- python python3.9.0 and later · before 3.9.16
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | python39 | before 3.9.13-2.module_el8.7.0+3351+e02cdf9b | 3.9.13-2.module_el8.7.0+3351+e02cdf9b |
| AlmaLinux:8 | python39-cffi | before 1.14.3-2.module_el8.6.0+3248+c431e88c | 1.14.3-2.module_el8.6.0+3248+c431e88c |
| AlmaLinux:8 | python39-cffi | before 1.14.3-2.module_el8.6.0+2780+a40f65e1 | 1.14.3-2.module_el8.6.0+2780+a40f65e1 |
| AlmaLinux:8 | python39-chardet | before 3.0.4-19.module_el8.6.0+2780+a40f65e1 | 3.0.4-19.module_el8.6.0+2780+a40f65e1 |
| AlmaLinux:8 | python39-cryptography | before 3.3.1-2.module_el8.6.0+3248+c431e88c | 3.3.1-2.module_el8.6.0+3248+c431e88c |
| AlmaLinux:8 | python39-cryptography | before 3.3.1-2.module_el8.6.0+2780+a40f65e1 | 3.3.1-2.module_el8.6.0+2780+a40f65e1 |
| AlmaLinux:8 | python39-devel | before 3.9.13-2.module_el8.7.0+3351+e02cdf9b | 3.9.13-2.module_el8.7.0+3351+e02cdf9b |
| AlmaLinux:8 | python39-idle | before 3.9.13-2.module_el8.7.0+3351+e02cdf9b | 3.9.13-2.module_el8.7.0+3351+e02cdf9b |
| AlmaLinux:8 | python39-idna | before 2.10-3.module_el8.6.0+2780+a40f65e1 | 2.10-3.module_el8.6.0+2780+a40f65e1 |
| AlmaLinux:8 | python39-libs | before 3.9.13-2.module_el8.7.0+3351+e02cdf9b | 3.9.13-2.module_el8.7.0+3351+e02cdf9b |
| AlmaLinux:8 | python39-lxml | before 4.6.5-1.module_el8.6.0+2780+a40f65e1 | 4.6.5-1.module_el8.6.0+2780+a40f65e1 |
| AlmaLinux:8 | python39-lxml | before 4.6.5-1.module_el8.6.0+3248+c431e88c | 4.6.5-1.module_el8.6.0+3248+c431e88c |
| AlmaLinux:8 | python39-mod_wsgi | before 4.7.1-5.module_el8.7.0+3344+df07b58a | 4.7.1-5.module_el8.7.0+3344+df07b58a |
| AlmaLinux:8 | python39-numpy | before 1.19.4-3.module_el8.6.0+3248+c431e88c | 1.19.4-3.module_el8.6.0+3248+c431e88c |
| AlmaLinux:8 | python39-numpy | before 1.19.4-3.module_el8.6.0+2780+a40f65e1 | 1.19.4-3.module_el8.6.0+2780+a40f65e1 |
| AlmaLinux:8 | python39-numpy-doc | before 1.19.4-3.module_el8.6.0+2780+a40f65e1 | 1.19.4-3.module_el8.6.0+2780+a40f65e1 |
| AlmaLinux:8 | python39-numpy-f2py | before 1.19.4-3.module_el8.6.0+3248+c431e88c | 1.19.4-3.module_el8.6.0+3248+c431e88c |
| AlmaLinux:8 | python39-numpy-f2py | before 1.19.4-3.module_el8.6.0+2780+a40f65e1 | 1.19.4-3.module_el8.6.0+2780+a40f65e1 |
| AlmaLinux:8 | python39-pip | before 20.2.4-7.module_el8.6.0+2780+a40f65e1 | 20.2.4-7.module_el8.6.0+2780+a40f65e1 |
| AlmaLinux:8 | python39-pip-wheel | before 20.2.4-7.module_el8.6.0+2780+a40f65e1 | 20.2.4-7.module_el8.6.0+2780+a40f65e1 |
| AlmaLinux:8 | python39-ply | before 3.11-10.module_el8.6.0+2780+a40f65e1 | 3.11-10.module_el8.6.0+2780+a40f65e1 |
| AlmaLinux:8 | python39-psutil | before 5.8.0-4.module_el8.6.0+2780+a40f65e1 | 5.8.0-4.module_el8.6.0+2780+a40f65e1 |
| AlmaLinux:8 | python39-psutil | before 5.8.0-4.module_el8.6.0+3248+c431e88c | 5.8.0-4.module_el8.6.0+3248+c431e88c |
| AlmaLinux:8 | python39-psycopg2 | before 2.8.6-2.module_el8.7.0+3344+df07b58a | 2.8.6-2.module_el8.7.0+3344+df07b58a |
+96
Same product
python: all recordsOther highest-scoring records for the same primary product.
- CVE-2016-5636Integer overflow in the get_data function in zipimport.c in CPython (aka Python) before 2.7.12, 3.x before 3.4.5, and 3.5.x before 3.5.2 all47Plan
- CVE-2007-4559Directory traversal vulnerability in the (1) extract and (2) extractall functions in the tarfile module in Python allows user-assisted remot47Plan
- CVE-2021-3177Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c, which may lead to remote code execution in certain Pyth46Plan
Published before and after this one in the same product
- ← EarlierCVE-2021-4189Aug 24, 2022 · A flaw was found in Python, specifically in the FTP (File Transfer Protocol) client library in PASV (passive) mode.22Monitor
- ← EarlierCVE-2020-10735Sep 9, 2022 · A flaw was found in python.31Monitor
- Later →CVE-2022-45061Nov 9, 2022 · An issue was discovered in Python before 3.11.1.31Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| almalinux:python39 | 3.9.13-2.module_el8.7.0+3351+e02cdf9b · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python39-cffi | 1.14.3-2.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python39-chardet | 3.0.4-19.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python39-cryptography | 3.3.1-2.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python39-devel | 3.9.13-2.module_el8.7.0+3351+e02cdf9b · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python39-idle | 3.9.13-2.module_el8.7.0+3351+e02cdf9b · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python39-idna | 2.10-3.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python39-libs | 3.9.13-2.module_el8.7.0+3351+e02cdf9b · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python39-lxml | 4.6.5-1.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python39-mod_wsgi | 4.7.1-5.module_el8.7.0+3344+df07b58a · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python39-numpy | 1.19.4-3.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python39-PyMySQL | 0.10.1-2.module_el8.6.0+2780+a40f65e1 · AlmaLinux:8 | Package registry (OSV) |
| alpine:python3 | 3.10.9-r0 · Alpine:v3.16 | Package registry (OSV) |
| debian:pypy3 | 7.3.11+dfsg-1 · Debian:12 | Package registry (OSV) |
| debian:python3.11 | 3.11.0-2 · Debian:12 | Package registry (OSV) |
| debian:python3.9 | 3.9.2-1+deb11u2 · Debian:11 | Package registry (OSV) |
| opensuse:python310 | 3.10.8-150400.4.15.1 · openSUSE:Leap 15.4 | Package registry (OSV) |
| opensuse:python310-core | 3.10.8-150400.4.15.1 · openSUSE:Leap 15.4 | Package registry (OSV) |
| opensuse:python310-documentation | 3.10.8-150400.4.15.1 · openSUSE:Leap 15.4 | Package registry (OSV) |
| opensuse:python311 | 3.11.0-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:python312 | 3.12.0a7-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:python313 | 3.13.0~b3-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:python314 | 3.14.0~a1-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:python315 | 3.15.0~a1-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:python39 | 3.9.15-150300.4.21.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:python39-core | 3.9.15-150300.4.21.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:python39-documentation | 3.9.15-150300.4.21.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| red hat:mod_wsgi | 0:4.7.1-4.module+el8.4.0+9822+20bf1249 · Red Hat:rhel_eus:8.4::appstream | Package registry (OSV) |
| red hat:numpy | 0:1.19.4-2.module+el8.4.0+15042+dc5a279b.1 · Red Hat:rhel_eus:8.4::appstream | Package registry (OSV) |
| red hat:numpy-debugsource | 0:1.19.4-2.module+el8.4.0+15042+dc5a279b.1 · Red Hat:rhel_eus:8.4::appstream | Package registry (OSV) |
+25
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
No history yet (it accumulates with the daily EPSS job).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-22-0707 · Nov 25, 2022(Oracle MySQL Güvenlik Zafiyeti)
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- A low-privileged account is enough.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-502 · Deserialization of Untrusted DataCVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Root cause
Data received over the network is deserialized into the language’s native object format without verifying its source. Code paths inside the object can be triggered during deserialization.
The bug in code
The whole CWE-502 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
payload = sock.recv(65536)
job = pickle.loads(payload)Fixed
payload = sock.recv(65536)
if not hmac.compare_digest(sign(payload), header_sig):
raise PermissionError("invalid signature")
job = JobSchema.validate(json.loads(payload))Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (14 more)Show less
- github.com/python/cpython/compare/v3.9.15...v3.9.16
- github.com/python/cpython/issues/97514
- github.com/python/cpython/issues/97514#issuecomment-1310277840
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FKGCQPIVHEAIJ77R3RSNSQWYBUDVWDKU/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/P2LHWWEI5OBQ6RELULMVU6KMDYG4WZXH/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PI5DYIED6U26BGX5IRZWNCP6TY4M2ZGZ/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QLUGZSEAO3MBWGKCUSMKQIRYJZKJCIOB/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/R6KGIRHSENZ4QAB234Z36HVIDTRJ3MFI/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RDK3ZZBRYFO47ET3N4BNTKVXN47U6ICY/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VCRKBB5Y5EWTJUNC7LK665WO64DDXSTN/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XX6LLAXGZVZ327REY6MDZRMMP47LJ53P/
- security.gentoo.org/glsa/202305-02
- security.netapp.com/advisory/ntap-20221209-0006/
- lists.debian.org/debian-lts-announce/2024/12/msg00000.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.