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-34178

CVE-2026-34178: Canonical LXD Auth Bypass Vulnerability

CVE-2026-34178 is an authentication bypass flaw in Canonical LXD before version 6.8 that allows attackers to bypass project restrictions and potentially compromise the host. This article covers technical details, impact, and mitigation.

Published: April 9, 2026

CVE-2026-34178 Overview

A critical authorization bypass vulnerability has been discovered in Canonical LXD before version 6.8. The flaw exists in the backup import path where project restrictions are validated against backup/index.yaml in the supplied tar archive, but the instance is created from backup/container/backup.yaml—a separate file in the same archive that is never checked against project restrictions. This inconsistency allows an authenticated remote attacker with instance-creation permission in a restricted project to craft a malicious backup archive where backup.yaml carries restricted settings such as security.privileged=true or raw.lxc directives, completely bypassing all project restriction enforcement and potentially leading to full host compromise.

Critical Impact

Authenticated attackers can bypass project security restrictions to gain privileged container access, potentially achieving full host system compromise through container escape.

Affected Products

  • Canonical LXD versions before 6.8

Discovery Timeline

  • 2026-04-09 - CVE-2026-34178 published to NVD
  • 2026-04-09 - Last updated in NVD database

Technical Details for CVE-2026-34178

Vulnerability Analysis

This vulnerability represents a classic Time-of-Check Time-of-Use (TOCTOU) style flaw in the backup import validation logic. The LXD container management daemon performs security validation on one file (backup/index.yaml) but then proceeds to use configuration data from a completely different file (backup/container/backup.yaml) when actually creating the container instance. This architectural flaw means that any project-level restrictions configured by administrators—designed to limit what containers can do within a project—can be entirely circumvented by an attacker who crafts a specially designed backup archive.

The attack is particularly dangerous because it targets the trust boundary between project isolation and host security. Projects in LXD are designed to provide multi-tenant isolation, allowing administrators to restrict what users can configure. However, this vulnerability allows authenticated users to inject dangerous configurations like security.privileged=true (which grants the container root-equivalent access to the host) or raw.lxc directives (which allow arbitrary LXC configuration bypassing LXD's safety checks).

Root Cause

The root cause is improper input validation (CWE-20) in the backup import functionality. The validation logic incorrectly assumes that the backup/index.yaml file is authoritative for the entire backup archive's configuration. However, the actual instance creation logic reads from backup/container/backup.yaml, which is never validated against project restrictions. This disconnect between validation and usage creates an exploitable gap where malicious configurations can be smuggled past security checks.

Attack Vector

The attack requires network access and authenticated credentials with instance-creation permission within a restricted LXD project. An attacker would:

  1. Create a legitimate backup archive from a container
  2. Modify the backup/container/backup.yaml file within the tar archive to include restricted settings (e.g., security.privileged=true)
  3. Ensure backup/index.yaml contains only allowed configurations to pass validation
  4. Import the crafted backup archive into the restricted project
  5. The container will be created with the privileged settings from backup.yaml, bypassing all project restrictions

No verified code examples are available for this vulnerability. The attack involves crafting a tar archive with divergent YAML configuration files. Technical details about the fix can be found in the GitHub Pull Request and the GitHub Security Advisory.

Detection Methods for CVE-2026-34178

Indicators of Compromise

  • Containers running with security.privileged=true in projects where this setting should be restricted
  • Containers with raw.lxc configuration directives in restricted projects
  • Unexpected backup import operations followed by immediate container starts
  • Container configurations that don't match project-level restrictions

Detection Strategies

  • Audit LXD logs for backup import operations, particularly in restricted projects
  • Monitor for containers with privileged configurations that violate project policies
  • Implement file integrity monitoring on container configuration files
  • Review container security settings across all projects for policy violations

Monitoring Recommendations

  • Enable verbose logging for LXD backup import operations
  • Set up alerts for any container creation with security.privileged=true or raw.lxc directives
  • Periodically audit all running containers against their project restriction policies
  • Monitor for unusual backup import patterns from authenticated users

How to Mitigate CVE-2026-34178

Immediate Actions Required

  • Upgrade Canonical LXD to version 6.8 or later immediately
  • Audit all existing containers in restricted projects for unauthorized privileged settings
  • Review recent backup import operations for potential exploitation
  • Restrict backup import permissions to highly trusted users until patched

Patch Information

Canonical has addressed this vulnerability in LXD version 6.8. The fix ensures that project restrictions are validated against the actual configuration file (backup/container/backup.yaml) used during instance creation, rather than only checking the backup/index.yaml file. Users should upgrade to LXD 6.8 or later as soon as possible. For technical details about the patch, refer to the GitHub Pull Request.

Workarounds

  • Temporarily revoke backup import permissions from users in restricted projects until the patch can be applied
  • Implement additional monitoring and alerting for privileged container configurations
  • Manually audit all backup imports before allowing container creation in sensitive environments
  • Consider isolating restricted projects to dedicated LXD instances until patched
bash
# Example: Check for privileged containers that may violate project restrictions
lxc list --format=json | jq '.[] | select(.config["security.privileged"]=="true") | .name'

# Audit containers for raw.lxc configurations
lxc list --format=json | jq '.[] | select(.config["raw.lxc"]!=null) | {name: .name, raw_lxc: .config["raw.lxc"]}'

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechLxd

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-20
  • Technical References
  • GitHub Pull Request

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-3351: Canonical LXD Auth Bypass Vulnerability

  • CVE-2026-34177: Canonical LXD Privilege Escalation Flaw

  • CVE-2026-34179: Canonical LXD Privilege Escalation Flaw

  • CVE-2026-28384: Canonical LXD RCE 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