Skip to main content

Canonical LXD CVE-2026-136974

MEDIUM
Improper Neutralization of CRLF Sequences ('CRLF Injection') (CWE-93)
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 as restricted LXD project user
  2. Exploit
    Submit instance config with line breaks in keys/values
  3. Execution
    Injected directives merged into liblxc config generation
  4. Impact
    Arbitrary commands executed as root on host

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization CRLF sequence sanitization
Exploitation Conditions

Exploitation requires an existing LXD principal that can create or modify instance configuration: either an authenticated user with restricted project access, or a local user with access to the LXD user socket. The attacker must be able to set instance configuration keys or values and embed line-break characters into them, which are then injected into the liblxc instance configuration generated by LXD. Limiting factors: the attacker must already be authenticated/authorized to the restricted scope or hold local socket access (not a pre-auth remote flaw), and the deployment must be running an affected LXD version before 6.10.2, 5.21.10, 5.0.12, or 4.0.16. There is no indication that user interaction by a victim is required. Per the vendor advisory, updating to a fixed release is the remediation.

Impact

This is a moderate-severity privilege escalation that is credible but not an emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) with subsequent-system impact SC:H/SI:H/SA:H and base score 6.5 is internally consistent with the description: an already-authenticated but restricted principal escapes its authority boundary to run commands as root on the host. The vulnerable-system metrics are VC:N/VI:N/VA:N while the subsequent-system metrics are all High, which correctly models a confinement-escape rather than a direct data-theft bug. The key limiting signal is PR:L - the attacker must already hold restricted project access or access to the local LXD user socket, so this is not a pre-auth internet-facing flaw. No EPSS score, KEV listing, or POC is present in the input, and the single reference is Canonical's GHSA security advisory (an advisory, not exploit code), so there is no public exploit identified at time of analysis. The vuln.today decision label is 'this_month' rather than act_now/emergency, matching the profile of a real but prioritizable issue: genuine root-on-host impact gated behind authenticated/local access. Note one ambiguity to verify: the description lists two distinct actor models (a remote restricted-project API user vs. a local LXD user-socket user), and the chosen AV:N applies cleanly only to the former; the local-socket path is effectively local access.

Exploit ScenarioDerived

An authenticated user holding only restricted LXD project access (or a user with access to the local LXD user socket) crafts an instance configuration whose keys or values contain embedded line breaks. When LXD generates the liblxc instance configuration, the injected lines are treated as additional configuration directives, causing arbitrary commands to run as root on the host and escaping the user's restricted scope. No public exploit code is identified at time of analysis; only Canonical's GHSA advisory is referenced.

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

Configuration injection in Canonical LXD's generation of liblxc instance configuration lets an authenticated user with restricted project access, or a local user with access to the LXD user socket, execute arbitrary commands as root on the host by embedding line-break characters in instance configuration keys and values. All LXD releases before 6.10.2, 5.21.10, 5.0.12 and 4.0.16 are affected; the assessed impact crosses a scope boundary into the host with high confidentiality, integrity and availability consequences, although the CVE record's CVSS 4.0 score is 6.5. No public exploit code has been identified at time of analysis, and the priority decision is this_month - a credible but not emergency-level privilege escalation that requires an already-authorized principal.

RemediationAI

Vendor-released patch: upgrade to LXD 6.10.2, or to 5.21.10 on the 5.21 branch, 5.0.12 on the 5.0 branch, or 4.0.16 on the 4.0 branch, matching the release line in use. Per the vendor advisory (GHSA-9w8p-7chg-j6jr, https://github.com/canonical/lxd/security/advisories/GHSA-9w8p-7chg-j6jr), updating to a fixed release is the remediation, so treat the upgrade as the complete fix rather than relying on configuration changes. As a temporary reduction of exposure until the upgrade lands, review which principals can create or modify instance configuration - restricted-project members and any local account in the group that can reach the LXD user socket - and remove access that is not strictly required, accepting that this narrows legitimate automation and administrative workflows. Because the injection point is instance configuration content, auditing existing instance configs for embedded line-break characters can help identify prior abuse, but it does not remove the vulnerable code path.

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

LXD is a system container and virtual machine manager that renders each instance's user-supplied configuration into a liblxc configuration file, which liblxc then consumes when starting the instance with host-level privileges. The flaw is CWE-93 (improper neutralization of CRLF sequences): because line breaks are not stripped or escaped when configuration keys and values are emitted into the generated liblxc configuration, an attacker who can set those keys or values can inject additional lines into a file that is interpreted in a root-privileged context, yielding arbitrary command execution on the host rather than inside the confined instance. The privileged surface is reached either through the LXD API by a user with restricted project access or through the local LXD user socket, so the attack path is a privilege escalation from a limited LXD principal to host root rather than a pre-authentication network flaw. The supplied sources do not describe which specific liblxc directive or parsing path converts the injected lines into command execution, so the precise trigger beyond line-break injection into the generated configuration is not described in the available sources. Scope-change scoring (S:C, host C/I/A high) reflects that the vulnerable component is the LXD/liblxc stack while the impacted asset is the host itself.

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 restricted/local user (PR:L) injects config that executes as root on the host, crossing the authority boundary (S:C) with full host compromise (C/I/A:H); AV:N follows the vendor vector though the socket path is effectively local.

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

Configuration injection in liblxc instance configuration generation in Canonical LXD before 6.10.2, 5.21.10, 5.0.12, 4.0.16 allows an authenticated user with restricted project access or a local user of the LXD user socket to execute arbitrary commands as root on the host via line breaks in instance configuration keys and values.

Threat Intelligence Overview

EPSS Score
0.5%
Top 62% exploitable
Prevalence
Medium
widely used container/VM manager on Ubuntu servers, not universal
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

33
Low Medium High Critical
KEV: 0
EPSS: +1
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.

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