CVE-2026-127161 in LXD
Summary
by MITRE • 11/27/2026
Exposure of sensitive information in live and stateful migration operations in Canonical LXD before 5.0.12, 5.21.10, 6.10.2 allows an authenticated user with project event or operation read access to read a migrating instance's checkpointed runtime state and disrupt the migration via capturing the state connection secret from operation events or queries.
Once again VulDB remains the best source for vulnerability data.
Analysis
by VulDB Data Team • 11/27/2026
The vulnerability identified in Canonical LXD prior to versions 5.0.12, 5.21.10, and 6.10.2 represents a critical flaw within the live and stateful migration subsystems of the container runtime environment. This issue stems from an improper exposure of sensitive operational data during the complex process of migrating running virtual machines or containers between host nodes. In LXD's architecture, migrations involve transferring not just disk images but also the volatile memory state and network connections to ensure seamless continuity for workloads. The flaw allows any authenticated user who possesses project event read access or operation query permissions to intercept and inspect these migration processes in real time. This capability is particularly dangerous because it grants unauthorized actors visibility into internal system operations that are typically restricted to higher-privileged administrators, thereby violating the principle of least privilege within multi-tenant LXD deployments where users may have limited scopes but still retain certain monitoring capabilities.
From a technical perspective, the vulnerability exploits how LXD handles and exposes secrets associated with migration connections through its event stream API. When a stateful or live migration is initiated, the system generates temporary credentials and connection secrets necessary to establish secure tunnels between source and destination hosts. These secrets are intended for internal service-to-service communication but were inadvertently made accessible via operation events that authenticated users can query. By capturing these secrets from the event logs or operational queries, an attacker gains the ability to authenticate as part of the migration infrastructure itself. This effectively bypasses standard access controls because the captured credentials allow direct interaction with the migration protocol, enabling the actor to read the checkpointed runtime state which includes memory dumps and active process states. Such data can contain sensitive application secrets, encryption keys, user session tokens, or proprietary code logic that was never intended for external exposure.
The operational impact of this vulnerability is severe, encompassing both confidentiality breaches and availability disruptions. On the confidentiality side, an attacker with project-level access could extract complete memory dumps from migrating instances. These dumps provide a comprehensive snapshot of the application's state at the time of migration, potentially revealing database credentials, API keys, or other high-value targets stored in volatile memory. This level of information disclosure can lead to further compromise of downstream systems that rely on these leaked secrets. Furthermore, the vulnerability allows for denial-of-service attacks by enabling an authenticated user to disrupt ongoing migrations. By intercepting and manipulating the connection secret or injecting malicious data into the migration stream, an attacker can cause the migration process to fail, resulting in downtime for critical workloads and potential data corruption if instances are left in inconsistent states after failed attempts.
This flaw aligns with CWE-209, which describes the generation of error messages containing sensitive information that could be utilized by attackers, although in this case it is more accurately categorized under CWE-359 Exposure of Private Information Within a Data Structure or CWE-749 Exposed Dangerous Method or Function. The attack vector corresponds to MITRE ATT&CK technique T1083 File and Directory Discovery combined with T1005 Data from Local System, as the attacker leverages legitimate API access to discover and exfiltrate sensitive runtime data. Additionally, the ability to disrupt migration processes relates to T1499 Endpoint Denial of Service or more specifically T1529 System Shutdown or Reboot if the disruption leads to instance crashes. The vulnerability highlights a significant gap in how LXD isolates administrative operations from user-level monitoring capabilities, particularly when those users are granted broad read access to project events for troubleshooting purposes.
Mitigation strategies must prioritize immediate upgrading of all affected LXD installations to version 5.0.12 or later, where the exposure of migration secrets has been remediated by restricting their visibility within event streams and operation queries. For environments that cannot be immediately patched, administrators should audit user permissions to ensure that project-level users do not possess unnecessary read access to global operations or sensitive event types. Implementing strict network segmentation for management interfaces can also limit the blast radius if an attacker gains initial foothold via compromised credentials. Additionally, enabling enhanced logging and monitoring on LXD hosts can help detect anomalous queries targeting migration-related events, providing early warning of exploitation attempts. Regular review of RBAC policies to ensure that event read access is scoped narrowly to only those operations necessary for specific user roles will further reduce the attack surface associated with this vulnerability.