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-2026-40226

CVE-2026-40226: systemd nspawn Privilege Escalation Flaw

CVE-2026-40226 is a privilege escalation vulnerability in systemd nspawn that enables escape-to-host actions through crafted config files. This article covers technical details, affected versions, and mitigation.

Published: April 17, 2026

CVE-2026-40226 Overview

CVE-2026-40226 is a container escape vulnerability affecting systemd-nspawn, the container management component of systemd versions 233 through 259. The vulnerability allows an attacker with high privileges within a container to escape to the host system by leveraging a crafted optional configuration file. This escape-to-host scenario undermines the fundamental security isolation that containers are designed to provide.

Critical Impact

Attackers with elevated privileges inside a systemd-nspawn container can break out of the container isolation and execute actions on the host system, potentially compromising the entire infrastructure.

Affected Products

  • systemd versions 233 through 259
  • systemd-nspawn container runtime on affected versions
  • Linux distributions using vulnerable systemd versions

Discovery Timeline

  • April 10, 2026 - CVE-2026-40226 published to NVD
  • April 13, 2026 - Last updated in NVD database

Technical Details for CVE-2026-40226

Vulnerability Analysis

This vulnerability is classified under CWE-348 (Use of Less Trusted Source), indicating that the systemd-nspawn component improperly trusts configuration data from a source that should not be trusted in the container isolation context. The flaw exists in how nspawn processes optional configuration files, where a maliciously crafted config file can trigger an escape-to-host action.

The vulnerability requires local access to the container environment with high privileges (such as root within the container). While the attack complexity is high due to the need for a specifically crafted configuration file and the required privilege level, successful exploitation results in complete compromise of confidentiality, integrity, and availability on the host system.

Container escape vulnerabilities are particularly concerning in multi-tenant environments where multiple containers from different users or organizations share the same host infrastructure.

Root Cause

The root cause stems from insufficient validation or improper trust of optional configuration files processed by systemd-nspawn. The container runtime does not adequately verify that configuration data originates from a trusted source or contains only safe directives, allowing an attacker to craft a configuration file that bypasses container isolation boundaries.

Attack Vector

The attack requires local access with high privileges within a container running on a vulnerable systemd-nspawn implementation. An attacker must:

  1. Gain elevated privileges (typically root) within the container
  2. Craft a malicious optional configuration file designed to exploit the trust relationship
  3. Trigger the container runtime to process the crafted configuration
  4. Achieve code execution or access on the host system outside the container namespace

The vulnerability mechanism involves exploiting how nspawn handles configuration parsing. For detailed technical information, refer to the GitHub Security Advisory published by the systemd project.

Detection Methods for CVE-2026-40226

Indicators of Compromise

  • Unexpected or unauthorized configuration files in nspawn configuration directories
  • Anomalous process execution originating from container namespaces but affecting host resources
  • Suspicious file system access patterns crossing container boundaries
  • Container processes with unexpected access to host namespaces or capabilities

Detection Strategies

  • Monitor systemd-nspawn configuration directories for unauthorized file creation or modification
  • Implement file integrity monitoring on nspawn configuration paths
  • Deploy container runtime security solutions that detect namespace escapes
  • Use audit logging to track configuration file access and container lifecycle events

Monitoring Recommendations

  • Enable comprehensive auditing for systemd-nspawn operations and configuration changes
  • Implement host-based intrusion detection to identify container escape attempts
  • Monitor for processes that unexpectedly cross namespace boundaries
  • Configure alerting on changes to container configuration files outside normal deployment workflows

How to Mitigate CVE-2026-40226

Immediate Actions Required

  • Upgrade systemd to version 260 or later where the vulnerability has been patched
  • Review and audit existing nspawn configuration files for any unauthorized modifications
  • Restrict write access to nspawn configuration directories to trusted administrators only
  • Consider migrating critical workloads to alternative container runtimes until patching is complete

Patch Information

The vulnerability has been addressed in systemd version 260. Organizations should upgrade to this version or later to remediate the vulnerability. The systemd project has published a security advisory with additional details on the fix and affected versions.

Check with your Linux distribution vendor for backported security patches if upgrading to systemd 260 is not immediately feasible.

Workarounds

  • Implement strict access controls on all nspawn configuration file locations
  • Run containers with the minimum required privileges, avoiding root where possible
  • Use mandatory access control systems (SELinux, AppArmor) to further restrict container capabilities
  • Disable optional configuration file processing if not required for your deployment
  • Apply network segmentation to limit the impact of potential container escapes
bash
# Restrict access to nspawn configuration directories
chmod 700 /etc/systemd/nspawn/
chown root:root /etc/systemd/nspawn/

# Enable SELinux enforcement for additional container isolation
setenforce 1

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechSystemd

  • SeverityMEDIUM

  • CVSS Score6.4

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-348
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-40227: Systemd Privilege Escalation Vulnerability

  • CVE-2026-40225: systemd udev Privilege Escalation Flaw

  • CVE-2026-40223: systemd Privilege Escalation Vulnerability

  • CVE-2026-40224: systemd Privilege Escalation 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