{"answers":{"affected":"3 open source packages ship an affected version, including github.com/canonical/lxd. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-34177 exists.","fix":"Apply the vendor's patch.","what":"CVE-2026-34177 is a critical vulnerability in Canonical lxd, published on 9 Apr 2026. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-34177 and fix it if it is affected.\n\nWhat it is: CVE-2026-34177 is a critical vulnerability in Canonical lxd, published on 9 Apr 2026. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-34177 exists.\n\nAffected packages and fixed versions:\n- github.com/canonical/lxd (Go): affected from 0.0.0-20210305023314-538ac3df036e; no fix listed\n- github.com/canonical/lxd (Go): affected from 0.0.0-20210305023314-538ac3df036e up to 0.0.0-20260226085519-736f34afb267; no fix listed\n- github.com/canonical/lxd (Go): affected from 0.0.0-20210305023314-538ac3df036e up to 0.0.0-20260226085519-736f34afb267; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-34177/ (Markdown: https://insights.sbomify.com/CVE-2026-34177/index.md)","id":"CVE-2026-34177","markdown":"https://insights.sbomify.com/CVE-2026-34177/index.md","name":"CVE-2026-34177","record":{"aliases":["DEBIAN-CVE-2026-34177","GHSA-fm2x-c5qw-4h6f","GO-2026-5368","UBUNTU-CVE-2026-34177"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"patch","impacts":["privilege_escalation","code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"LXD container manager","requires_auth":"high_privilege","summary":"Attackers with edit permissions can bypass VM restrictions to escalate privileges to host root via AppArmor and QEMU config injection.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"canonical","cpe":[{"product":"lxd","vendor":"canonical"}],"cvss":{"score":9.1,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-184","name":"Incomplete List of Disallowed Inputs"}],"description":"Canonical LXD versions 4.12 through 6.7 contain an incomplete denylist in isVMLowLevelOptionForbidden (lxd/project/limits/permissions.go), which omits raw.apparmor and raw.qemu.conf from the set of keys blocked under the restricted.virtual-machines.lowlevel=block project restriction. A remote attacker with can_edit permission on a VM instance in a restricted project can inject an AppArmor rule and a QEMU chardev configuration that bridges the LXD Unix socket into the guest VM, enabling privilege escalation to LXD cluster administrator and subsequently to host root.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"VM lowlevel restriction bypass via raw.apparmor and raw.qemu.conf","id":"CVE-2026-34177","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"security_feature_bypass","year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"Importing a crafted backup leads to project restriction bypass","id":"CVE-2026-34178"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0.0.0-20210305023314-538ac3df036e"],"last_affected":[],"package":"github.com/canonical/lxd","purl":"pkg:golang/github.com/canonical/lxd","source":"GO-2026-5368"},{"ecosystem":"Go","fixed":[],"introduced":["0.0.0-20210305023314-538ac3df036e"],"last_affected":["0.0.0-20260226085519-736f34afb267"],"package":"github.com/canonical/lxd","purl":null,"source":"GHSA-fm2x-c5qw-4h6f"},{"ecosystem":"Go","fixed":[],"introduced":["0.0.0-20210305023314-538ac3df036e"],"last_affected":["0.0.0-20260226085519-736f34afb267"],"package":"github.com/canonical/lxd","purl":"pkg:golang/github.com/canonical/lxd","source":"GHSA-fm2x-c5qw-4h6f"}],"prev":{"headline":"Knowledge Appliance mode iControl REST vulnerability","id":"CVE-2026-34176"},"products":["lxd"],"published":"2026-04-09","related":[{"cvss_score":9.9,"headline":"Instance template path traversal allows arbitrary host file write as root","id":"CVE-2026-66897","kev_date_added":null,"published":"2026-08-24"},{"cvss_score":9.9,"headline":"Cross-project cluster migration bypasses project restrictions via cluster notification flag","id":"CVE-2026-62420","kev_date_added":null,"published":"2026-08-12"},{"cvss_score":9.9,"headline":"Arbitrary File Read/Write: metadata.yaml symlink in image allows host filesystem access as root","id":"CVE-2026-63293","kev_date_added":null,"published":"2026-08-12"},{"cvss_score":9.9,"headline":"Root RCE via image backup.yaml symlink","id":"CVE-2026-63294","kev_date_added":null,"published":"2026-08-12"},{"cvss_score":9.9,"headline":"Project restriction bypass via instance migration config override","id":"CVE-2026-63296","kev_date_added":null,"published":"2026-08-12"},{"cvss_score":9.9,"headline":"Cross-project instance copy bypasses target project restrictions via TOCTOU in config merge","id":"CVE-2026-63297","kev_date_added":null,"published":"2026-08-12"},{"cvss_score":9.9,"headline":"Cross-project instance move bypasses all project restrictions allowing host command execution","id":"CVE-2026-63300","kev_date_added":null,"published":"2026-08-12"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-09","vendors":["Canonical"]},"summary":"Attackers with edit permissions can bypass VM restrictions to escalate privileges to host root via AppArmor and QEMU config injection.","url":"https://insights.sbomify.com/CVE-2026-34177/"}