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

High 7.5 Published Updated

Attackers can create and start LXD containers without consent via CSRF when client certificate authentication is enabled.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-54286?

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.

Official 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.

Weakness: CWE-352

Which versions are affected by CVE-2025-54286?

9 open source packages ship an affected version, including github.com/canonical/lxd. It affects 1 product.

PackageAffectedFixed in
github.com/canonical/lxd GoAll versionsNone
github.com/canonical/lxd GoFrom 0.0.0-20220401034332-1e1349e3cbf30.0.0-20250827065555-0494f5d47e41
github.com/canonical/lxd GoFrom 0.0.0-20220401034332-1e1349e3cbf30.0.0-20250827065555-0494f5d47e41
github.com/canonical/lxd GoFrom 5.05.0.5
github.com/canonical/lxd GoFrom 5.05.0.5
github.com/canonical/lxd GoFrom 5.15.21.4
3 more packages
github.com/canonical/lxd GoFrom 5.15.21.4
github.com/canonical/lxd GoFrom 6.06.5
github.com/canonical/lxd GoFrom 6.06.5

Products include Canonical Lxd.

How do I fix CVE-2025-54286?

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.

Is CVE-2025-54286 being exploited?

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

Sources

Also known as DEBIAN-CVE-2025-54286, GHSA-p8hw-rfjg-689h, GO-2025-4003.

Is CVE-2025-54286 in your software?

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

Check your SBOMs for free