The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-42919

CVE-2022-42919: Python Privilege Escalation Vulnerability

CVE-2022-42919 is a privilege escalation vulnerability in Python 3.9.x and 3.10.x on Linux that affects the multiprocessing library. This post covers technical details, affected versions, security impact, and mitigation steps.

Published: February 18, 2026

CVE-2022-42919 Overview

CVE-2022-42919 is a local privilege escalation vulnerability in Python 3.9.x before 3.9.16 and Python 3.10.x before 3.10.9 on Linux systems. The vulnerability exists in the Python multiprocessing library when used with the forkserver start method, allowing pickles to be deserialized from any user in the same machine local network namespace. Since Python pickles can execute arbitrary code during deserialization, this creates a pathway for local users to escalate privileges to the user running any forkserver process.

Critical Impact

Local attackers can achieve privilege escalation by sending malicious pickled objects to forkserver processes running as higher-privileged users, enabling arbitrary code execution in the context of the target process.

Affected Products

  • Python 3.9.x before version 3.9.16
  • Python 3.10.x before version 3.10.9
  • Fedora 35, 36, and 37

Discovery Timeline

  • 2022-11-07 - CVE-2022-42919 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2022-42919

Vulnerability Analysis

This vulnerability stems from the use of Linux abstract namespace sockets in Python's multiprocessing library. When Python applications use the forkserver start method for multiprocessing, the library creates abstract namespace sockets for inter-process communication. Unlike traditional filesystem-based Unix sockets, abstract namespace sockets do not have filesystem permissions and are accessible to any process within the same network namespace.

The critical security issue arises because these abstract namespace sockets accept pickled Python objects from any local user. Python's pickle module is inherently unsafe when deserializing untrusted data, as it can execute arbitrary code during the unpickling process. This combination allows any local user to send crafted malicious pickles to a forkserver process, achieving code execution with the privileges of the target process.

Root Cause

The root cause is the insecure use of Linux abstract namespace sockets combined with Python's pickle deserialization. Abstract namespace sockets lack filesystem-based access controls, making them accessible to all local users within the same network namespace. The multiprocessing library's forkserver implementation accepts and deserializes pickled data from these sockets without authentication or authorization checks, creating an insecure deserialization vulnerability (CWE-502).

Attack Vector

An attacker with local access to a Linux system running a vulnerable Python application using the forkserver multiprocessing method can exploit this vulnerability through the following attack flow:

  1. The attacker identifies abstract namespace sockets created by Python forkserver processes
  2. The attacker crafts a malicious pickled object containing code to be executed
  3. The attacker sends the malicious pickle to the forkserver socket
  4. The forkserver process deserializes the pickle, executing the attacker's code with the privileges of the forkserver process

This attack requires local access and is specific to Linux systems due to the platform-specific nature of abstract namespace sockets. The forkserver start method must be explicitly configured as it is not the default multiprocessing start method in Python.

Detection Methods for CVE-2022-42919

Indicators of Compromise

  • Unexpected connections to abstract namespace sockets associated with Python multiprocessing
  • Unusual process spawning from Python forkserver processes
  • Suspicious pickle deserialization activity in Python applications using multiprocessing
  • New processes or network connections originating from legitimate Python application contexts

Detection Strategies

  • Monitor for Python processes using the forkserver start method via process command-line analysis
  • Implement auditd rules to track abstract namespace socket creation and connections
  • Deploy endpoint detection to identify anomalous child process creation from Python interpreters
  • Use application-level logging to track multiprocessing initialization and worker spawning patterns

Monitoring Recommendations

  • Audit systems for Python applications using the multiprocessing.set_start_method('forkserver') configuration
  • Inventory Python versions across the environment to identify vulnerable installations
  • Monitor for privilege escalation attempts through behavioral analysis of Python processes
  • Review system logs for unexpected inter-process communication patterns involving Python applications

How to Mitigate CVE-2022-42919

Immediate Actions Required

  • Upgrade Python 3.9.x installations to version 3.9.16 or later
  • Upgrade Python 3.10.x installations to version 3.10.9 or later
  • Apply operating system security patches from Fedora, Gentoo, NetApp, and Debian as appropriate
  • Review applications using the multiprocessing forkserver method and assess exposure

Patch Information

Security patches are available in Python 3.9.16 and 3.10.9 releases. Detailed changes can be reviewed in the CPython v3.9.16 Changes and CPython v3.10.9 Changes on GitHub. Linux distributions including Fedora, Gentoo, and Debian have released corresponding security updates. For additional technical details, see GitHub Issue #97514.

Workarounds

  • Set multiprocessing.util.abstract_sockets_supported = False before using multiprocessing to disable abstract namespace sockets
  • Use alternative multiprocessing start methods such as spawn or fork instead of forkserver
  • Restrict local user access on systems running sensitive Python applications using forkserver
  • Implement network namespace isolation to limit exposure between users
python
# Workaround: Disable abstract namespace sockets before importing multiprocessing
import multiprocessing.util
multiprocessing.util.abstract_sockets_supported = False

# Alternative: Use spawn method instead of forkserver
import multiprocessing
multiprocessing.set_start_method('spawn')

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechPython

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-noinfo

  • CWE-502
  • Technical References
  • GitHub CPython v3.10.9 Changes

  • GitHub CPython v3.9.16 Changes

  • GitHub Issue #97514

  • GitHub Issue #97514 Comment

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA 202305-02

  • NetApp Security Advisory

  • Debian LTS Announcement
  • Related CVEs
  • CVE-2023-6597: CPython Privilege Escalation Vulnerability

  • CVE-2023-6507: Python Privilege Escalation Vulnerability

  • CVE-2025-13462: Python tarfile Module Parsing Vulnerability

  • CVE-2026-2297: CPython Information Disclosure Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English