{"answers":{"affected":"9 open source packages ship an affected version, including github.com/canonical/lxd. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-54286 in the wild and no public exploit code.","fix":"Upgrade github.com/canonical/lxd to a fixed version for your release line: 0.0.0-20250827065555-0494f5d47e41, 5.0.5, 5.21.4 or 6.5.","what":"CVE-2025-54286 is a high-severity vulnerability in Canonical LXD, published on 2 Oct 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-54286 and fix it if it is affected.\n\nWhat it is: CVE-2025-54286 is a high-severity vulnerability in Canonical LXD, published on 2 Oct 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2025-54286 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/canonical/lxd (Go): affected all versions; no fix listed\n- github.com/canonical/lxd (Go): affected from 0.0.0-20220401034332-1e1349e3cbf3; fixed in 0.0.0-20250827065555-0494f5d47e41\n- github.com/canonical/lxd (Go): affected from 0.0.0-20220401034332-1e1349e3cbf3; fixed in 0.0.0-20250827065555-0494f5d47e41\n- github.com/canonical/lxd (Go): affected from 5.0; fixed in 5.0.5\n- github.com/canonical/lxd (Go): affected from 5.0; fixed in 5.0.5\n- github.com/canonical/lxd (Go): affected from 5.1; fixed in 5.21.4\n- github.com/canonical/lxd (Go): affected from 5.1; fixed in 5.21.4\n- github.com/canonical/lxd (Go): affected from 6.0; fixed in 6.5\n- github.com/canonical/lxd (Go): affected from 6.0; fixed in 6.5\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-2025-54286/ (Markdown: https://insights.sbomify.com/CVE-2025-54286/index.md)","id":"CVE-2025-54286","markdown":"https://insights.sbomify.com/CVE-2025-54286/index.md","name":"CVE-2025-54286","record":{"aliases":["DEBIAN-CVE-2025-54286","GHSA-p8hw-rfjg-689h","GO-2025-4003"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["data_modify","security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"LXD container manager","requires_auth":"none","summary":"Attackers can create and start LXD containers without consent via CSRF when client certificate authentication is enabled.","user_interaction":"required","vuln_class":"csrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"canonical","cpe":[{"product":"lxd","vendor":"canonical"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:L/SI:L/SA:L","version":"4.0"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"description":"Cross-Site Request Forgery (CSRF) in LXD-UI in Canonical LXD versions \u003e= 5.0 on Linux allows an attacker to create and start container instances without user consent via crafted HTML form submissions exploiting client certificate authentication.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"CSRF Vulnerability When Using Client Certificate Authentication with the LXD-UI","id":"CVE-2025-54286","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"csrf","year":"2025"},"n_packages":9,"n_references":1,"next":{"headline":"Arbitrary File Read via Template Injection in Snapshot Patterns","id":"CVE-2025-54287"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/canonical/lxd","purl":"pkg:golang/github.com/canonical/lxd","source":"GO-2025-4003"},{"ecosystem":"Go","fixed":["0.0.0-20250827065555-0494f5d47e41"],"introduced":["0.0.0-20220401034332-1e1349e3cbf3"],"last_affected":[],"package":"github.com/canonical/lxd","purl":null,"source":"GHSA-p8hw-rfjg-689h"},{"ecosystem":"Go","fixed":["0.0.0-20250827065555-0494f5d47e41"],"introduced":["0.0.0-20220401034332-1e1349e3cbf3"],"last_affected":[],"package":"github.com/canonical/lxd","purl":"pkg:golang/github.com/canonical/lxd","source":"GHSA-p8hw-rfjg-689h"},{"ecosystem":"Go","fixed":["5.0.5"],"introduced":["5.0"],"last_affected":[],"package":"github.com/canonical/lxd","purl":null,"source":"GHSA-p8hw-rfjg-689h"},{"ecosystem":"Go","fixed":["5.0.5"],"introduced":["5.0"],"last_affected":[],"package":"github.com/canonical/lxd","purl":"pkg:golang/github.com/canonical/lxd","source":"GHSA-p8hw-rfjg-689h"},{"ecosystem":"Go","fixed":["5.21.4"],"introduced":["5.1"],"last_affected":[],"package":"github.com/canonical/lxd","purl":null,"source":"GHSA-p8hw-rfjg-689h"},{"ecosystem":"Go","fixed":["5.21.4"],"introduced":["5.1"],"last_affected":[],"package":"github.com/canonical/lxd","purl":"pkg:golang/github.com/canonical/lxd","source":"GHSA-p8hw-rfjg-689h"},{"ecosystem":"Go","fixed":["6.5"],"introduced":["6.0"],"last_affected":[],"package":"github.com/canonical/lxd","purl":null,"source":"GHSA-p8hw-rfjg-689h"},{"ecosystem":"Go","fixed":["6.5"],"introduced":["6.0"],"last_affected":[],"package":"github.com/canonical/lxd","purl":"pkg:golang/github.com/canonical/lxd","source":"GHSA-p8hw-rfjg-689h"}],"prev":{"headline":"Illustrator | Out-of-bounds Write (CWE-787)","id":"CVE-2025-54284"},"products":["LXD"],"published":"2025-10-02","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":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-02-26","vendors":["Canonical"]},"summary":"Attackers can create and start LXD containers without consent via CSRF when client certificate authentication is enabled.","url":"https://insights.sbomify.com/CVE-2025-54286/"}