CVE-2026-135379 lxd: Improper control of code generation in container configuration and restriction checks

Published Updated

Authenticated LXD users with restricted project access can run root commands on the host, crash the daemon, and alter DHCP assignments via crafted LXC configuration.

CVSS score

Medium

6.5/10

CVSS 4.0 · Scored by Canonical Breakdown
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
Available
4.0.16, 5.0.12, 5.21.10 +1
Attack path
Over the internet
Any signed-in user, no user action

What is CVE-2026-135379?

CVE-2026-135379 is a medium-severity code injection vulnerability in Canonical LXD, published on 26 Nov 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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.

Weakness: CWE-94

How severe is CVE-2026-135379?

CVE-2026-135379 scores 6.5 out of 10 under CVSS 4.0, which is medium severity. It was scored by Canonical.

Attack vector
Network
Attack complexity
Low
Attack requirements
None
Privileges required
Low
User interaction
None
Confidentiality
None
Integrity
None
Availability
None

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

Which versions are affected by CVE-2026-135379?

An affected version is exposed as installed. No special setting or call is needed.

How do I fix CVE-2026-135379?

Upgrade Canonical LXD to the fixed version for your release line. The advisory names 4.0.16, 5.0.12, 5.21.10 and 6.10.2.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-135379 being exploited?

There is no known exploitation of CVE-2026-135379 in the wild and no public exploit code.

Sources

Is CVE-2026-135379 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free