Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-34178: CWE-20 Improper input validation in Canonical lxd

0
Critical
VulnerabilityCVE-2026-34178cvecve-2026-34178cwe-20
Published: Thu Apr 09 2026 (04/09/2026, 09:18:58 UTC)
Source: CVE Database V5
Vendor/Project: Canonical
Product: lxd

Description

CVE-2026-34178 is a critical vulnerability in Canonical LXD before version 6. 8 where improper input validation allows an authenticated attacker with instance-creation permissions in a restricted project to bypass project restrictions. The vulnerability arises because the backup import process validates project restrictions against one file in the backup archive but creates instances from a separate file that is not checked. This flaw can be exploited to set restricted security settings, potentially leading to full host compromise.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/16/2026, 12:25:36 UTC

Technical Analysis

This vulnerability in Canonical LXD (versions prior to 6.8) involves improper input validation (CWE-20) during the backup import process. Specifically, while the backup import path validates project restrictions against the backup/index.yaml file in the supplied tar archive, it creates the instance from backup/container/backup.yaml, which is not validated against project restrictions. An authenticated remote attacker with instance-creation permission in a restricted project can craft a malicious backup archive where backup.yaml contains restricted settings such as security.privileged=true or raw.lxc directives. This bypasses all project restriction enforcement and can lead to full host compromise. The CVSS v3.1 score is 9.1 (critical), reflecting network attack vector, low attack complexity, high privileges required, no user interaction, scope change, and high impact on confidentiality, integrity, and availability.

Potential Impact

An attacker with authenticated instance-creation permissions in a restricted project can exploit this vulnerability to bypass project restrictions and apply privileged or otherwise restricted settings to container instances. This can lead to full host compromise, including complete control over the host system running LXD. The vulnerability affects LXD versions 4.12.0, 5.1.0, and 6.0.0. There are no known exploits in the wild at this time.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are currently provided. Until a patch is available, restrict instance-creation permissions carefully and monitor for updates from Canonical regarding fixes or workarounds. Avoid importing backups from untrusted sources.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
canonical
Date Reserved
2026-03-26T09:24:08.449Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 69d773081cc7ad14da8bdc1f

Added to database: 4/9/2026, 9:36:08 AM

Last enriched: 4/16/2026, 12:25:36 PM

Last updated: 5/24/2026, 11:18:50 AM

Views: 86

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses