Security advisory: multiple vulnerabilities found in Canonical LXD

Critical vulnerabilities found

Several critical and high impact vulnerabilities affecting LXD were identified and addressed. Some were identified directly by contributors, and some were referred to us from the Incus project, which were then confirmed to affect LXD as well.

The critical vulnerabilities, primarily related to insufficient path sanitization, input validation, and configuration bypasses, could allow authenticated users to achieve arbitrary file read/write operations or arbitrary command execution on the host system with root privileges.

All LXD users are urged to update to the latest version immediately to mitigate these risks.

Vulnerability summaries

1. Image-related path traversal & symlink attacks

Several vulnerabilities stem from how LXD handles malicious instance or image files.

2. Argument injection in container configuration

An attacker can inject malicious arguments into the LXC container configuration, resulting in potential arbitrary command execution during container start operations.

3. Restricted project bypass

Several approaches to bypassing project restrictions were discovered. These allow attackers to gain access to the host by using privileged instance settings that are seldom allowed in restricted projects.

Impact

These vulnerabilities significantly undermine the multi-tenant isolation guarantees of LXD.
Specifically:

  • Data Breach: Unauthorized access to and exfiltration of data from other tenants’ instances and custom volumes.

  • Privilege Escalation: By bypassing restricted project policies, an authenticated attacker can achieve arbitrary host root execution, effectively breaking out of the sandboxed environment.

  • Horizontal Movement: Attackers can move unauthorized data and instances across the infrastructure, facilitating further exploitation.

Fixed snap versions

Channel Snap Name Fixed Version Planned release date
6/stable lxd 6.9 (re-spin) 2026-07-31
5.21/stable lxd 5.21.6 2026-07-31
5.0/stable lxd 5.0.8 2026-07-31
4.0/stable lxd 4.0.12 2026-07-31

How to address

All users must update their LXD installations to the latest version available in their respective channels.

sudo snap refresh lxd

Acknowledgements

We would like to thank adamyordan, EclipsSec, babakizo420, Hye-Dev, manus-use, Mickey777777 and stgraber for their reporting.

2 Likes