CyberSecBulletin
CVE-2025-54289NVD status: Analyzed

LXD: Missing Origin Validation in WebSockets

CVE-2025-54289 is a high-severity missing origin validation in websockets vulnerability in LXD from Canonical, with a CVSS 3.1 base score of 8.1 out of 10. It can be exploited remotely over the network by an attacker with a low-privileged account, without any action from a user. The record lists versions 6.5, 5.21.4 as the first without the flaw, so updating LXD to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.21% chance of exploitation within 30 days, which is low compared with other CVEs.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Update LXD to 6.5 or 5.21.4, whichever matches your release line, or a later version.
  2. Read the advisory on github.com for workarounds and exact fixed builds.

Affected products and versions

VendorProductAffected versionsFixed in
CanonicalLXD6 up to, but not including, 6.5; 5.21 up to, but not including, 5.21.46.5, 5.21.4

Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
NetworkCan be exploited remotely over a network, including the internet.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
LowA basic user account is enough.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
HighAll data handled by the component can be read.
Integrity
HighData or code can be modified at will.
Availability
NoneAvailability is not affected.

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N. Scored by NVD.

Scoring systemScoreSeverityScored by
CVSS 4.07.4HighCNA (ubuntu.com)
CVSS 3.18.1HighNVD

Official description

Privilege Escalation in operations API in Canonical LXD <6.5 on multiple platforms allows attacker with read permissions to hijack terminal or console sessions and execute arbitrary commands via WebSocket connection hijacking format

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Missing Origin Validation in WebSockets

The product uses a WebSocket, but it does not properly verify that the source of data or communication is valid.

How developers prevent this class of flaw

  • Enable CORS-like access restrictions by verifying the 'Origin' header during the WebSocket handshake.
  • Use a randomized CSRF token to verify requests.
  • Use TLS to securely communicate using 'wss' (WebSocket Secure) instead of 'ws'.

More Missing Origin Validation in WebSockets vulnerabilities (CWE-1385)

Timeline

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
  3. Record last changed materially (score, affected products, status or references).

References

Other vulnerabilities in LXD

All LXD vulnerabilities

Recent Missing Origin Validation in WebSockets vulnerabilities

Spotted an error? Tell us.