Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-31214

CVE-2022-31214: Firejail Privilege Escalation Vulnerability

CVE-2022-31214 is a privilege escalation vulnerability in Firejail 0.9.68 allowing local attackers to gain root access by exploiting container join operations. This article covers technical details, affected versions, and mitigation.

Published: February 17, 2026

CVE-2022-31214 Overview

A Privilege Context Switching vulnerability was discovered in join.c in Firejail 0.9.68. By crafting a bogus Firejail container that is accepted by the Firejail setuid-root program as a join target, a local attacker can enter an environment in which the Linux user namespace is still the initial user namespace, the NO_NEW_PRIVS prctl is not activated, and the entered mount namespace is under the attacker's control. In this way, the filesystem layout can be adjusted to gain root privileges through execution of available setuid-root binaries such as su or sudo.

Critical Impact

Local attackers can achieve full root privilege escalation by exploiting the improper privilege context switching in Firejail's join functionality, potentially compromising the entire host system.

Affected Products

  • Firejail Project Firejail 0.9.68
  • Fedora 35, 36, 37
  • Debian Linux 9.0 and 10.0

Discovery Timeline

  • June 9, 2022 - CVE-2022-31214 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2022-31214

Vulnerability Analysis

This vulnerability resides in the join.c file within Firejail, a SUID sandbox program designed to isolate untrusted applications. The flaw stems from improper privilege context switching when processing join requests to existing Firejail sandboxes.

When a user attempts to join an existing Firejail sandbox, the setuid-root Firejail binary performs validation to ensure the target sandbox is legitimate. However, the vulnerability allows an attacker to craft a malicious container that passes these validation checks while maintaining critical privileges that should be dropped.

The attack exploits three key conditions that persist after joining the attacker-controlled sandbox:

  1. The Linux user namespace remains the initial user namespace rather than an unprivileged one
  2. The NO_NEW_PRIVS prctl flag is not activated, allowing privilege escalation through setuid binaries
  3. The mount namespace is controlled by the attacker, enabling filesystem manipulation

This combination allows the attacker to adjust the filesystem layout and execute setuid-root binaries like su or sudo to escalate to full root privileges.

Root Cause

The root cause is improper privilege management (CWE-269) in the Firejail join functionality. The join.c component fails to properly validate that all security constraints are in place before allowing a user to join what appears to be a legitimate Firejail sandbox. The validation logic does not adequately verify that critical security properties such as user namespace isolation and NO_NEW_PRIVS status are correctly established, allowing an attacker-crafted container to bypass these security mechanisms.

Attack Vector

The attack requires local access to the system with the ability to execute the Firejail binary. An attacker crafts a fake Firejail container environment that mimics a legitimate sandbox but maintains the initial user namespace and lacks the NO_NEW_PRIVS restriction. When the Firejail setuid-root program joins this bogus container:

  1. The attacker sets up a deceptive environment that passes Firejail's sandbox validation
  2. Upon joining, the attacker gains access to a context where namespace isolation is not enforced
  3. The attacker manipulates the mount namespace to control filesystem paths
  4. By executing setuid-root binaries such as su or sudo in this manipulated environment, the attacker escalates privileges to root

The attack leverages the trust placed in the Firejail setuid-root binary to transition into what should be a secure context but is actually attacker-controlled.

Detection Methods for CVE-2022-31214

Indicators of Compromise

  • Unusual Firejail join operations targeting non-standard or recently created sandbox environments
  • Unexpected privilege escalation events following Firejail execution
  • Suspicious modifications to mount namespaces or filesystem layouts near setuid binaries
  • Anomalous su or sudo execution patterns originating from Firejail contexts

Detection Strategies

  • Monitor process trees for Firejail execution followed by unexpected root privilege acquisition
  • Implement audit rules on setuid-root binaries (su, sudo) to detect execution from unusual namespace contexts
  • Track mount namespace changes and correlate with Firejail process activity
  • Alert on Firejail join operations targeting sandbox IDs that don't match known legitimate sandboxes

Monitoring Recommendations

  • Enable detailed auditd logging for Firejail binary execution and subsequent process spawning
  • Deploy endpoint detection to monitor for privilege escalation patterns associated with sandbox escape
  • Implement file integrity monitoring on critical system binaries and Firejail configuration
  • Review system logs for failed or anomalous sandbox join attempts that may indicate exploitation attempts

How to Mitigate CVE-2022-31214

Immediate Actions Required

  • Update Firejail to a patched version as specified in vendor advisories immediately
  • Temporarily disable Firejail join functionality if updates cannot be applied promptly
  • Audit systems for signs of previous exploitation including unexpected root access events
  • Restrict access to the Firejail binary to trusted users only as an interim measure

Patch Information

Security patches have been released by the Firejail Project and major Linux distributions. Consult the Firejail Release Notes for the official fix. Distribution-specific patches are available through:

  • Debian Security Advisory DSA-5167
  • Debian LTS Announcement
  • Fedora Package Announcements
  • Gentoo GLSA 2023-05-19

Workarounds

  • Remove the setuid bit from the Firejail binary if the join functionality is not required: chmod u-s /usr/bin/firejail
  • Disable the join feature by configuring Firejail with restricted options until patching is complete
  • Implement mandatory access control policies (SELinux/AppArmor) to restrict Firejail privilege transitions
  • Limit user access to Firejail through group-based permissions to reduce the attack surface
bash
# Temporary workaround: Remove setuid bit from Firejail
sudo chmod u-s /usr/bin/firejail

# Verify the permission change
ls -la /usr/bin/firejail

# Note: This disables sandboxing functionality requiring root privileges
# Apply official patches and restore setuid when available

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechFirejail

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.07%

  • 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
  • CWE-269
  • Technical References
  • Firejail Release Notes

  • Debian LTS Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA 2023-05-19

  • Debian Security Advisory DSA-5167
  • Vendor Resources
  • Openwall OSS-Security Discussion
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS 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