Canonical lxd
Update of type field in restricted TLS certificate allows privilege escalation to cluster admin
In Canonical LXD versions 4.12 through 6.7, the doCertificateUpdate function in lxd/certificates.go does not validate the Type field when handling PUT/PATCH requests to /1.0/certificates/{fingerprint} for restricted TLS certificate users, allowing a remote authenticated attacker to escalate privileges to cluster admin.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS9.1critical · scored by CNA · CWE-915
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
Canonical lxd
- >= 4.12.0, < 5.0.7
- >= 5.1.0, < 5.21.5
- >= 6.0.0, < 6.8.0
Fixed in 5.0.7, 5.21.5, 6.8.0
Mitigation
Upgrade lxd to 5.0.7 or 5.21.5 or 6.8.0 or later.
References
- Vendor advisory github.com/canonical/lxd/security/advisories/G…
- Patch github.com/canonical/lxd/pull/17936
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.