Skip to main content

Canonical LXD CVE-2026-135379

MEDIUM
Code Injection (CWE-94)
2026-11-26 canonical
6.5
CVSS 4.0 · Vendor: canonical
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to restricted LXD project
  2. Delivery
    Supply crafted container image with liblxc config
  3. Exploit
    Create/start container from that image
  4. Execution
    liblxc loads attacker config file
  5. Impact
    Commands execute as root on host

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires an authenticated LXD user with access to a project - including a project configured restricted=true. Two distinct, independently sufficient paths: (1) the user can create a container from an image it provides; the image (or backup) ships a liblxc configuration file at the top level of the container's storage volume, which liblxc loads at container start, yielding root command execution and bypassing restricted.containers.lowlevel entirely (low complexity, no race needed). (2) The user has edit access to a profile and wins a concurrent rename race during an update to store raw.lxc or other blocked keys (e.g. drop security.idmap.isolated), or triggers a rename during snapshot restore to crash the daemon. Secondary conditions: setting security.syscalls.allow/deny affects the container's seccomp/syscall interception, and setting volatile.<device>.hwaddr lets an instance on a shared bridge write arbitrary entries into the bridge's DHCP host file, affecting addresses handed to other instances. LIMITING factors: no unauthenticated access (PR:L); the race-based variants require winning a timing race (materially harder); per vendor, exploitation of the image path can be prevented by only letting trusted users create containers or restricting untrusted projects to VMs only (limits.containers=0), and the race paths by withholding profile-edit access from untrusted users. There is no workaround for the image issue other than these restrictions; updating to a fixed version is the complete fix.

Impact

Signals are mixed and must be weighed against the deployment model. The vendor CVSS 4.0 score is 6.5 (medium), but that number understates the real consequence: the vector sets the vulnerable-system metrics VC/VI/VA to None while the subsequent-system metrics SC/SI/SA are all High, meaning the measured impact is full compromise of the host rather than the container. Scored under CVSS 3.1 with a scope change (S:C, C:H/I:H/A:H) the same facts yield roughly 9.6, so the 'medium' label reflects CVSS 4.0's lower weighting of subsequent-system impact, not a limited consequence. The decisive mitigating factor is PR:L: exploitation requires an authenticated account, specifically a user holding access to a (possibly restricted=true) project, so this is not internet-wide drive-by exploitation - it is a multi-tenant / privilege-boundary escape. The decision label is this_month (not act_now/emergency), KEV status is not listed (not in CISA KEV), and no EPSS score was provided, so exploitation-probability cannot be quantified from the input. No public exploit or PoC reference is present - only the vendor/GHSA advisory. The worst sub-issue (image-supplied liblxc config → root on host) is low-complexity once an image can be supplied; the profile/rename issues are explicitly race-based and therefore harder to land. Net: a genuine priority for anyone running LXD with untrusted or semi-trusted project users, but lower urgency where only trusted operators can create containers or edit profiles.

Exploit ScenarioDerived

An authenticated user with access only to a restricted LXD project uploads or imports a container image that ships a liblxc configuration file at the top level of its storage volume; LXD does not create or sanitize that file, so when the container starts, liblxc loads it and runs attacker-chosen commands as root on the host, bypassing restricted.containers.lowlevel. No public exploit code is identified at time of analysis; the attack is low-complexity once image creation is permitted. Alternatively a restricted-project user with profile-edit rights can win a concurrent rename race to smuggle raw.lxc/blocked keys and achieve the same root execution, or crash the daemon via a rename during snapshot restore.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 26, 2026

Root command execution on Canonical LXD hosts is possible for an authenticated user with access to a project, including a project configured with restricted=true, by placing a crafted liblxc configuration file in an image or backup at the top level of a container's storage volume; liblxc loads that file when the container starts, bypassing restricted.containers.lowlevel. The same user class can also win rename races during profile or instance updates to inject blocked configuration such as raw.lxc or drop protective settings, crash the daemon during a snapshot restore rename, influence syscall interception through unvalidated security.syscalls.allow/deny entries, and alter DHCP host-file entries on a shared bridge via volatile.<device>.hwaddr. Fixed versions are 4.0.16, 5.0.12, 5.21.10, and 6.10.2; no public exploit identified at time of analysis.

RemediationAI

Upgrade to the fixed release for the deployed branch: 4.0.16, 5.0.12, 5.21.10, or 6.10.2; the vendor advisory at https://github.com/canonical/lxd/security/advisories/GHSA-cqmv-vjc9-5h35 is the primary reference and updating is the complete fix. Where upgrading is not immediately possible, the vendor states there is no workaround for the image-supplied configuration issue other than allowing only trusted users to create containers or restricting untrusted projects to virtual machines by setting limits.containers=0; for the race-based issues, do not give untrusted users edit access to profiles. These restrictions trade away container creation or profile-editing capability for untrusted project users and do not address the underlying flaw.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Canonical LXD delegates container runtime configuration to liblxc, and the container's storage volume directory is also where liblxc looks for a container configuration file. LXD does not create that file, but images and backups can ship one at the volume top level; liblxc loads it at container start, letting image-supplied configuration run commands as root on the host and bypass project low-level restrictions. The restriction bypass is compounded by project checks that re-look up objects by name and silently pass when the object is absent, so concurrent renames during profile or instance updates can skip checks; instance rewrite after a custom-volume rename or profile update can also write back stale state. CWE-94 captures the code-generation control problem: security.syscalls.allow and security.syscalls.deny are copied without validation into the container's seccomp policy, and volatile.<device>.hwaddr from a restricted project is written without validation into the shared bridge DHCP host file. CPE cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:* covers LXD releases before 4.0.16, 5.0.12, 5.21.10, and 6.10.2.

Know when Lxd gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (canonical) PRIMARY 6.5 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H
vuln.today AI 9.9 CRITICAL

Authenticated project user (PR:L) remotely creates a container (AV:N, AC:L for the image path) and escapes to run commands as root on the host, a scope change (S:C) with full host C/I/A impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H

Primary rating from Vendor (canonical).

CVSS VectorVendor: canonical

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

DescriptionCVE.org

Improper control of code generation and project restriction enforcement in container configuration handling in Canonical LXD before 4.0.16, 5.0.12, 5.21.10, 6.10.2 allows an authenticated user with restricted project access to execute arbitrary commands as root on the host, crash the daemon, and alter shared bridge DHCP assignments via image-supplied LXC configuration, concurrent rename races during updates, and unvalidated syscall or hardware address settings.

Threat Intelligence Overview

EPSS Score
0.5%
Top 65% exploitable
Prevalence
Medium
Canonical LXD is common in Ubuntu/cloud estates but not universally deployed
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Affected Products (CPE)CVE.org

cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*

More in Lxd

View all
CVE-2025-54286 HIGH POC
7.5 Oct 02

Cross-site request forgery in the LXD-UI component of Canonical LXD 5.0 before 5.0.5, 5.1 before 5.21.4, and 6.0 before

CVE-2025-54289 HIGH POC
7.4 Oct 02

Privilege escalation in Canonical LXD's operations API (LXD before 6.5 and LXD 5.21 before 5.21.4) allows an authenticat

CVE-2025-54293 HIGH POC
7.1 Oct 02

Authenticated remote attackers with access to the Canonical LXD instance log retrieval or deletion endpoints can read ar

CVE-2025-54287 HIGH POC
7.1 Oct 02

Server-side template injection in Canonical LXD's instance snapshot naming feature lets an authenticated user who can mo

CVE-2026-112816 CRITICAL
10.0 Oct 30

Improper certificate validation in the HTTPS API listener of Canonical LXD lets an unauthenticated remote attacker prese

CVE-2025-54290 MEDIUM POC
6.9 Oct 02

Unauthenticated project enumeration in Canonical LXD 5.21.x before 5.21.4 and 6.x before 6.5 lets remote attackers deter

CVE-2025-54291 MEDIUM POC
6.9 Oct 02

Unauthenticated remote attackers can confirm the existence of LXD projects on Canonical LXD by comparing HTTP status cod

CVE-2026-63294 CRITICAL
9.9 Aug 12

Privilege escalation to host root in Canonical LXD occurs when the container manager unpacks crafted image or backup arc

CVE-2026-66897 CRITICAL
9.9 Aug 24

Host root code execution in Canonical LXD arises from a path-traversal flaw in instance template processing, letting an

CVE-2026-63293 CRITICAL
9.9 Aug 12

Arbitrary host file read and write in Canonical LXD occurs because the image import/unpack routine does not verify wheth

CVE-2026-63298 CRITICAL
9.9 Aug 12

Canonical LXD's NVIDIA GPU passthrough configuration handler fails to sanitize newline characters in user-supplied `nvid

CVE-2026-66898 CRITICAL
9.9 Aug 12

Path traversal in Canonical's LXD container and VM manager allows a user with backup import/restore privileges to write

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy