CVE-2026-127152

lxd: Improper privilege management when rebuilding never-started unprivileged containers

Published Nov 26, 2026 CVSS 4.0 · 6.3 Medium EPSS n/a KEV · Not listed
Description
Improper privilege management during container rebuild in Canonical LXD before 5.21.10, 6.10.2 allows a local user with container permissions to gain root privileges on the host via rebuilding a never-started unprivileged container so it starts without a user namespace or privileged-container hardening.

Analysis

AI-generated

Technical impact

An attacker with local container permissions can rebuild a never-started unprivileged container inside Canonical LXD. This action bypasses the user namespace isolation that normally protects the host, allowing the container to start without the expected privilege hardening. The result is the attacker gaining root privileges on the host machine. The weakness falls under CWE-269: Improper Privilege Management and CWE-271: Improper Privilege Management for Privileges with Elevated Functions.

Affected Systems

Canonical LXD versions prior to 5.21.10 and 6.10.2 are affected. The vulnerability exists in the container rebuild logic that fails to enforce user‑namespace protection when the container has never been started.

Risk and Exploitability

The CVSS score of 6.3 indicates a moderate severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, suggesting limited evidence of exploitation. The likely attack vector is local; an authenticated user with container permissions must be able to trigger a rebuild of an unprivileged container that has never been started. Once rebuilt, the container runs as root on the host, effectively giving the attacker full control.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Canonical LXD to version 5.21.10 or later or 6.10.2 or later, where the privilege check during container rebuild is enforced.
  • If upgrading immediately is not possible, delete any never‑started unprivileged containers and avoid rebuilding them until the patch is applied.
  • Verify that user‑namespace isolation is enabled and that no containers are configured to start without it before rebuilding.

Generated by OpenCVE AI on November 27, 2026 at 00:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description Improper privilege management during container rebuild in Canonical LXD before 5.21.10, 6.10.2 allows a local user with container permissions to gain root privileges on the host via rebuilding a never-started unprivileged container so it starts without a user namespace or privileged-container hardening.
Title lxd: Improper privilege management when rebuilding never-started unprivileged containers
Weaknesses CWE-269
CWE-271
References
Metrics cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H'}

Subscriptions

No data.

Weaknesses
  • CWE-269

    Improper Privilege Management

  • CWE-271

    Privilege Dropping / Lowering Errors

Sources

Status
PUBLISHED
Assigner
canonical
Published
Updated
Nov 26, 2026, 11:16 PM
Reserved
Nov 12, 2026, 4:02 PM
Status
Deferred
Published
Nov 27, 2026, 12:16 AM
Modified
Nov 27, 2026, 12:16 AM