Skip to main content

LXD CVE-2026-63298

| EUVDEUVD-2026-57511 CRITICAL
OS Command Injection (CWE-78)
2026-08-12 canonical
9.9
CVSS 3.1 · Vendor: canonical
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to LXD API with low-privilege credentials
  2. Delivery
    Create or modify instance with NVIDIA config key
  3. Exploit
    Inject newline-delimited lxc.conf directives in config value
  4. Execution
    LXD writes attacker-controlled directives to lxc.conf
  5. Persist
    LXC runtime processes injected directives on instance start
  6. Impact
    Execute arbitrary code on host as LXD daemon

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

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

Exploitation Conditions

Exploitation requires the attacker to hold an authenticated LXD identity with at minimum instance-creation or instance-configuration modification privileges - corresponding to PR:L in the CVSS vector (membership in the lxd group or equivalent API access). The target LXD host must have NVIDIA GPU passthrough support configured and must be running at least one instance (or allow the attacker to create one) that uses the nvidia.driver.capabilities or nvidia.require.* configuration keys. LXD deployments that do not use NVIDIA GPU passthrough at all are not vulnerable to this specific injection path, as the vulnerable code path is only triggered during NVIDIA config processing. Exploitation does not require administrator privileges, victim interaction, or non-standard network positioning - the LXD API endpoint is targeted directly over the network (AV:N). The primary limiting factor is the requirement for a valid, low-privilege LXD account; unauthenticated external attackers cannot exploit this vulnerability.

Impact

The CVSS 3.1 vector AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H scores 8.7 and is well-grounded in the attack mechanics: the LXD API is network-accessible, exploitation requires no special conditions beyond a valid low-privilege LXD identity, and injected lxc.conf directives affect the host rather than the container, producing the scope change (S:C) with full C/I/A impact. The low complexity and low privilege bar mean that even a mid-sized municipal IT team in tczew running shared LXD infrastructure for development workloads should treat this as urgent, particularly if NVIDIA GPU passthrough is enabled for ML or compute tenants. No CISA KEV entry has been identified, and no public POC has surfaced at time of analysis, which moderately lowers immediacy compared to actively-exploited container escapes. No EPSS score was provided in the input data, so probability-of-exploitation cannot be numerically assessed; however, the conceptual simplicity of the attack - injecting a known config file format via a single field - and the high-value outcome of host-level code execution as the LXD daemon (typically running with root or near-root privileges) argue for treating exploitation probability as non-trivial. The wildcard CPE version range suggests the fix version has not yet been confirmed, introducing additional residual exposure until the advisory is updated.

Exploit ScenarioDerived

An authenticated LXD user with instance-creation rights sets nvidia.driver.capabilities to a value such as compute,utility\nlxc.apparmor.profile=unconfined\nlxc.cap.keep=sys_admin - embedding newlines to inject additional directives. When LXD generates lxc.conf and starts the instance, the LXC runtime processes the injected lxc.apparmor.profile=unconfined and capability directives as legitimate configuration, stripping the container's confinement. The attacker then uses the unconfined container to mount the host filesystem or exploit elevated capabilities to execute arbitrary commands on the host as the LXD daemon. No public POC has been identified, but the technique requires only knowledge of lxc.conf directive syntax.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 12, 2026

Canonical LXD's NVIDIA GPU passthrough configuration handler fails to sanitize newline characters in user-supplied nvidia.driver.capabilities and nvidia.require.* instance config values, enabling an authenticated attacker to inject arbitrary directives into the generated lxc.conf file. Any LXD user with instance-creation or configuration-modification privileges can exploit this to escape the container boundary and execute arbitrary commands on the host with the full privileges of the LXD daemon - effectively achieving complete host compromise. No public exploit code or CISA KEV listing exists at time of analysis, but the network-accessible, low-privilege attack path and scope-changed CVSS vector reflect an elevated real-world threat for shared or multi-tenant LXD deployments.

RemediationAI

The primary remediation is to apply the patched LXD release identified in the Canonical security advisory at https://github.com/canonical/lxd/security/advisories/GHSA-vfh7-q59q-54v2. An exact fixed version number is not independently confirmed from the available input data - consult the advisory directly for the authoritative patched release before upgrading. Where immediate patching is not feasible, restrict LXD instance configuration privileges to trusted administrators only, eliminating the low-privilege attack surface; LXD's built-in RBAC or Unix group controls (lxd group membership) can be used to limit who may create or modify instances. As a targeted workaround, prohibit the use of nvidia.driver.capabilities and nvidia.require.* keys in user-accessible LXD profiles by removing them from default profiles and blocking their use via profile restrictions - note this disables NVIDIA GPU passthrough functionality and will impact GPU-dependent workloads such as ML training pipelines. Additionally, monitoring the generated lxc.conf files for unexpected multi-line directives can serve as a detection control to identify exploitation attempts.

Affected VersionsENISA

LXD 4.0.0 <4.0.12
LXD 5.0.0 <5.0.8
LXD 5.21.0 <5.21.6

Affected Packages

euvd lxd fix: 4.0.12, 5.0.8, 5.21.6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

LXD is Canonical's system container and virtual machine manager, built atop LXC (Linux Containers). When instances are configured with NVIDIA GPU passthrough, LXD generates a per-instance lxc.conf file that incorporates user-supplied NVIDIA configuration options such as nvidia.driver.capabilities (which controls driver feature sets like compute, video, or graphics) and nvidia.require.* constraints. The root cause is CWE-78 (Improper Neutralization of Special Elements Used in an OS Command), manifesting specifically as configuration injection: by embedding raw newline characters (\n) within these config values, an attacker can break out of the intended single-line value context and insert wholly new lxc.conf directives - such as lxc.mount.entry, lxc.cap.keep, or lxc.apparmor.profile none - which the LXC runtime processes as legitimate configuration at instance startup. The affected CPE cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:* indicates all LXD versions are potentially vulnerable, with no version range upper bound confirmed from available data.

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 9.9 HIGH
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
vuln.today AI 9.9 CRITICAL

PR:L confirmed by authenticated LXD user requirement; S:C and full C/I/A reflect host-level code execution via lxc.conf injection from a container-scoped component.

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:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE CRITICAL

Primary rating from Vendor (canonical).

CVSS VectorVendor: canonical

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Patch available
Aug 12, 2026 - 21:17 EUVD
Severity Changed
Aug 12, 2026 - 20:22 NVD
HIGH CRITICAL
CVSS changed
Aug 12, 2026 - 20:22 NVD
8.7 (HIGH) 9.9 (CRITICAL)
CVE Published
Aug 12, 2026 - 19:22 cve.org
CRITICAL 9.9

DescriptionCVE.org

An improper neutralization of special elements vulnerability in LXD's NVIDIA instance configuration handling allows an authenticated attacker to inject arbitrary configuration directives. By supplying newline characters within the 'nvidia.driver.capabilities' or 'nvidia.require.*' configuration values, an attacker can manipulate the generated lxc.conf file. This flaw enables the attacker to execute arbitrary code on the host system with the privileges of the LXD daemon.

Executive ViewAI

Why It Matters

Canonical LXD deployments are vulnerable to a critical configuration injection flaw that enables low-privilege users to escape container boundaries and compromise the underlying host system. In multi-tenant or shared LXD environments, this creates an immediate path to infrastructure compromise and potential data breach. The vendor has not yet released a patch, requiring organizations to implement urgent access restrictions.

Business Impact: Severe
Compensating Controls

Restrict instance configuration and creation privileges to administrators only; disable LXD instances for untrusted users; deploy LXD hosts in isolated network segments with restricted network access; implement host-level file integrity monitoring and anomaly detection; restrict outbound network access from LXD hosts to prevent lateral movement. No vendor-released patch identified at time of analysis.

Threat Intelligence Overview

EPSS Score
0.4%
Top 72% exploitable
Prevalence
Medium
LXD used in cloud and DevOps environments, not universally deployed
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

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

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

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

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

CVE-2026-62420 CRITICAL
9.9 Aug 12

Authorization bypass in Canonical LXD (6.0 before 6.10, 5.21.x before 5.21.6, 5.0.x before 5.0.8) lets an authenticated

CVE-2026-63300 CRITICAL
9.9 Aug 12

Project-confinement bypass in Canonical LXD lets an authenticated user holding can_create_instances on a restricted proj

Vendor StatusVendor

SUSE

Severity: Critical

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