CVE-2026-136976 in LXD
Summary
by MITRE • 11/27/2026
Improper link resolution before file access in recursive file pull in Canonical LXD before 4.0.15, 5.0.11, 5.21.9, and 6.8 on case-insensitive client filesystems allows an authenticated user with write access to an instance directory or custom volume to write arbitrary files outside the target directory and execute code as the operator via case-variant symlinks.
Once again VulDB remains the best source for vulnerability data.
Analysis
by VulDB Data Team • 11/27/2026
The vulnerability identified in Canonical LXD versions prior to 4.0.15, 5.0.11, 5.21.9, and 6.8 represents a critical security flaw rooted in improper link resolution during recursive file operations on case-insensitive filesystems. This issue specifically affects authenticated users who possess write access to an LXD instance directory or custom volume. The core technical failure lies in the handling of symbolic links when the underlying client operating system utilizes a case-insensitive file system, such as those commonly found on macOS (APFS) and Windows (NTFS). In these environments, filenames that differ only by character casing are treated as identical by the kernel's virtual filesystem layer. However, LXD’s internal logic for resolving paths during recursive pull operations does not adequately account for this discrepancy between logical name equivalence and physical inode identity.
When an authenticated user creates a symbolic link within their controlled directory structure, they can exploit this case-insensitivity to point towards files or directories outside the intended sandbox boundaries. For instance, if a target file exists as /target/file.txt on disk but is accessed via /TARGET/FILE.TXT in the path resolution logic due to case normalization, LXD may fail to recognize that the link resolves to an unauthorized location. This allows the attacker to bypass directory confinement mechanisms designed by default profiles and security policies. The vulnerability effectively neutralizes one of the primary isolation guarantees provided by container runtimes like LXC and LXD, which rely on strict path validation to prevent escape from user namespaces or restricted storage volumes.
The operational impact of this flaw is severe, leading directly to privilege escalation and potential remote code execution. By writing arbitrary files outside the target directory, an attacker can overwrite critical system configuration files, inject malicious scripts into startup directories, or manipulate shared libraries used by privileged processes running under the LXD operator account. Since LXD typically runs with elevated privileges relative to unprivileged containers, successfully exploiting this path traversal via symlink resolution allows code execution as the host user operating the LXD daemon. This grants full control over the underlying host system, enabling data exfiltration, persistence mechanisms, and lateral movement within the network infrastructure.
This vulnerability aligns closely with Common Weakness Enumeration (CWE) categories such as CWE-59 Improper Link Resolution Before File Access or 'Link Following' and CWE-200 Exposure of Sensitive Information to an Unauthorized Actor if sensitive files are overwritten or read. From a tactical perspective, it maps to MITRE ATT&CK techniques including T1496 Resource Hijacking for denial-of-service purposes or more critically T1548 Abuse Elevation Control Mechanism by bypassing access controls through path manipulation. The attack vector is classified as local with low complexity but requires authentication, making it particularly dangerous in multi-tenant environments where users are granted specific storage permissions under the assumption of strict isolation boundaries.
Mitigation strategies must prioritize immediate software updates to address the root cause within LXD’s source code logic for handling case-insensitive filesystems. Administrators should upgrade all affected instances and custom volumes to version 4.0.15, 5.0.11, 5.21.9, or later, where canonical path resolution has been hardened to normalize cases before checking against allowlists or performing link validation. In environments where upgrading is not immediately feasible, strict enforcement of case-sensitive filesystems for LXD storage pools can serve as a temporary workaround, although this may impact compatibility with macOS and Windows clients. Additionally, implementing robust monitoring for unusual symlink creation patterns within instance directories and restricting write permissions to only essential paths can reduce the attack surface until patches are applied.