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
    • 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-2023-1386

CVE-2023-1386: QEMU Privilege Escalation Vulnerability

CVE-2023-1386 is a privilege escalation flaw in QEMU's 9p passthrough filesystem that fails to drop SUID/SGID bits, allowing attackers to elevate privileges. This article covers technical details, affected versions, and mitigation.

Published: January 28, 2026

CVE-2023-1386 Overview

A privilege escalation vulnerability has been identified in the 9p passthrough filesystem (9pfs) implementation in QEMU. The flaw occurs when a local user in the guest writes an executable file with SUID or SGID bits set, and these privileged bits are not correctly dropped. In rare circumstances, this vulnerability could be exploited by malicious users in the guest to elevate their privileges within the guest environment and potentially assist a host local user in elevating privileges on the host system.

Critical Impact

This vulnerability enables privilege escalation from within a QEMU guest VM, potentially allowing guest-to-host privilege escalation through improper handling of SUID/SGID bits in the 9pfs filesystem implementation.

Affected Products

  • QEMU (all versions using 9pfs passthrough filesystem)
  • Fedora 38

Discovery Timeline

  • 2023-07-24 - CVE-2023-1386 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-1386

Vulnerability Analysis

This vulnerability is classified as CWE-281 (Improper Preservation of Permissions), occurring in QEMU's 9p passthrough filesystem implementation. The 9pfs provides a mechanism for sharing files between a QEMU host and guest system using the Plan 9 filesystem protocol.

The core issue lies in how the 9pfs implementation handles SUID (Set User ID) and SGID (Set Group ID) permission bits when files are written by guest users. These special permission bits are security-sensitive as they allow executables to run with the privileges of the file owner or group rather than the executing user.

Under normal security practices, when a user writes to an executable file, any existing SUID/SGID bits should be cleared to prevent privilege escalation attacks. However, the vulnerable 9pfs implementation fails to properly drop these privileged bits during file write operations.

Root Cause

The root cause is improper permission preservation in the 9pfs passthrough filesystem. When a local guest user creates or modifies an executable file with SUID or SGID bits, the filesystem implementation does not correctly clear these privileged permission bits as required by security best practices. This oversight allows the preservation of elevated permissions that should be stripped during file operations.

Attack Vector

The attack requires local access to a QEMU guest system configured with 9pfs passthrough filesystem sharing. An attacker with unprivileged access to the guest can exploit this vulnerability through the following attack flow:

  1. The attacker creates or modifies an executable file in the shared 9pfs mount point
  2. The attacker sets SUID or SGID bits on the executable
  3. Due to the flaw, these privileged bits are preserved instead of being dropped
  4. The attacker or another user can then execute the file with elevated privileges
  5. In rare circumstances, this can lead to privilege escalation within the guest and potentially assist in host-level privilege escalation

The vulnerability requires specific configuration (9pfs passthrough enabled) and local guest access, but the potential for cross-boundary privilege escalation makes this a significant security concern in virtualized environments.

Detection Methods for CVE-2023-1386

Indicators of Compromise

  • Unexpected SUID/SGID files appearing in 9pfs shared directories
  • Unusual privilege escalation attempts within QEMU guest systems
  • Suspicious executable files in shared mount points with elevated permission bits
  • Anomalous process execution with unexpected privilege levels in guest VMs

Detection Strategies

  • Monitor file permission changes in 9pfs shared directories for unexpected SUID/SGID bit settings
  • Audit QEMU configuration files for 9pfs passthrough filesystem usage
  • Implement file integrity monitoring on shared filesystem mount points
  • Review system logs for unusual privilege escalation patterns in virtualized environments

Monitoring Recommendations

  • Enable detailed logging for file operations in 9pfs shared directories
  • Configure alerts for SUID/SGID file creation events in guest-accessible shared filesystems
  • Implement regular permission audits on files within 9p passthrough mounts
  • Monitor process execution in guest systems for privilege escalation indicators

How to Mitigate CVE-2023-1386

Immediate Actions Required

  • Review QEMU deployments for 9pfs passthrough filesystem usage and assess exposure
  • Apply vendor security patches when available from your distribution
  • Consider disabling 9pfs passthrough filesystem if not required for operations
  • Implement strict access controls on shared directories used with 9pfs

Patch Information

Organizations should monitor and apply updates from their respective distributions. For detailed patch information, consult the Red Hat CVE-2023-1386 Advisory and the Red Hat Bug Report #2223985. Additional technical details are available in the GitHub Security Advisory GHSA-ppj8-867g-rgjr and the NetApp Security Advisory ntap-20230831-0005.

Workarounds

  • Disable the 9pfs passthrough filesystem feature if not essential to your deployment
  • Use alternative file sharing mechanisms between host and guest that properly handle permission bits
  • Implement strict file permission policies in shared directories to prevent SUID/SGID file creation
  • Restrict guest user access to shared 9pfs mount points to trusted users only
bash
# Configuration example - Verify QEMU is not using 9pfs passthrough
# Check running QEMU processes for 9pfs usage
ps aux | grep qemu | grep -E "9p|virtfs"

# Review QEMU configuration files for 9pfs settings
grep -r "fsdev\|9p" /etc/libvirt/qemu/

# If 9pfs is not required, remove virtfs/9p arguments from VM configurations
# Example: Remove these types of arguments from QEMU command lines
# -fsdev local,id=fsdev0,path=/shared,security_model=passthrough
# -device virtio-9p-pci,fsdev=fsdev0,mount_tag=hostshare

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechQemu

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.02%

  • 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-281
  • Technical References
  • Red Hat CVE-2023-1386 Advisory

  • Red Hat Bug Report #2223985

  • GitHub Security Advisory GHSA-ppj8-867g-rgjr

  • GitHub Issue on Linux V9fs

  • NetApp Security Advisory ntap-20230831-0005
  • Related CVEs
  • CVE-2023-2861: QEMU 9pfs Privilege Escalation Flaw

  • CVE-2022-0358: QEMU virtio-fs Privilege Escalation Flaw

  • CVE-2026-2243: QEMU VMDK Image DoS Vulnerability

  • CVE-2025-14876: QEMU virtio-crypto DoS Vulnerability
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