Privilege Escalation via WebSocket Connection Hijacking in LXD Operations API
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Passive
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
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
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Canonical | LXD | 6 to before 6.5; 5.21 to before 5.21.4 | 6.5, 5.21.4 | Patch available | CNA |
| — | github.com/canonical/lxd (Go) | 4.0 to before 5.21.4 | 5.21.4 | Patch available | GHSA-3g72-chj4-2228 |
| — | github.com/canonical/lxd (Go) | 6.0 to before 6.5 | 6.5 | Patch available | GHSA-3g72-chj4-2228 |
| — | github.com/canonical/lxd (Go) | 0.0.0-20200331193331-03aab09f5b5c to before 0.0.0-20250827065555-0494f5d47e41 | 0.0.0-20250827065555-0494f5d47e41 | Patch available | GHSA-3g72-chj4-2228 |
- LXD VendorCanonical Affected 6 to before 6.5; 5.21 to before 5.21.4 Fixed in 6.5, 5.21.4 Patch available CNA
- github.com/canonical/lxd (Go) Vendor— Affected 4.0 to before 5.21.4 Fixed in 5.21.4 Patch available GHSA-3g72-chj4-2228
- github.com/canonical/lxd (Go) Vendor— Affected 6.0 to before 6.5 Fixed in 6.5 Patch available GHSA-3g72-chj4-2228
- github.com/canonical/lxd (Go) Vendor— Affected 0.0.0-20200331193331-03aab09f5b5c to before 0.0.0-20250827065555-0494f5d47e41 Fixed in 0.0.0-20250827065555-0494f5d47e41 Patch available GHSA-3g72-chj4-2228
Remediation
- Fix · CNA LXD (Canonical) Fixed in 6.5, 5.21.4
- Fix · GHSA-3g72-chj4-2228 github.com/canonical/lxd (Go) Fixed in 5.21.4 Advisory →
- Fix · GHSA-3g72-chj4-2228 github.com/canonical/lxd (Go) Fixed in 6.5 Advisory →
- Fix · GHSA-3g72-chj4-2228 github.com/canonical/lxd (Go) Fixed in 0.0.0-20250827065555-0494f5d47e41 Advisory →
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
Canonical LXD 5.21.4, 6.5
7 records Highest priority Priority HIGH 2 HIGH, 4 MEDIUM, 1 LOW
Other records, highest priority first
- TI-2025-34116 Arbitrary File Read via Template Injection in Snapshot PatternsPriority HIGH 70
- TI-2025-34119 Project Existence Disclosure via Error Handling in LXD Image ExportPriority HIGH 66
- TI-2025-34122 Path Traversal in LXD Instance Log File RetrievalPriority MEDIUM 64
Timeline
- 2026-10-02 Threatist record created from CVE-2025-54289
- 2026-10-03 Alias added: GHSA-3g72-chj4-2228
References
More Canonical Lxd vulnerabilities
- TI-2026-22659 Authenticated RCE via unsanitized compression_algorithm CVSS 4.0CRITICAL 9.4
- TI-2026-47475 Path traversal via unvalidated instance name in backup tarball restore enables root file write / RCE CVSS 3.1CRITICAL 9.9
- TI-2026-45146 Cross-project instance move bypasses all project restrictions allowing host command execution CVSS 3.1CRITICAL 9.9
- TI-2026-45143 Cross-project instance copy bypasses target project restrictions via TOCTOU in config merge CVSS 3.1CRITICAL 9.9
- TI-2026-45142 Project restriction bypass via instance migration config override CVSS 3.1CRITICAL 9.9
- TI-2026-45140 Root RCE via image backup.yaml symlink CVSS 3.1CRITICAL 9.9
Sources
- CVE-2025-54289 · CVE Program
- CVE-2025-54289 · NVD
- FIRST EPSS
- GHSA-3g72-chj4-2228 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences