Canonical lxd
Authenticated RCE via unsanitized compression_algorithm
An improper sanitization of the compression_algorithm parameter in Canonical LXD allows an authenticated, unprivileged user to execute commands as the LXD daemon on the LXD server via API calls to the image and backup endpoints. This issue affected LXD from 4.12 through 6.6 and was fixed in the snap versions 5.0.6-e49d9f4 (channel 5.0/stable), 5.21.4-1374f39 (channel 5.21/stable), and 6.7-1f11451 (channel 6.0 stable). The channel 4.0/stable is not affected as it contains version 4.0.10.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS9.9critical · scored by NVD · CWE-78
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
Canonical lxd
- >= 6.0, < 6.7
- >= 5.21.0, < 5.21.4
- >= 5.0.0, < 5.0.6
- 4.12
Fixed in 6.7, 5.21.4, 5.0.6
Mitigation
Upgrade lxd to 6.7 or 5.21.4 or 5.0.6 or later.
References
- Vendor advisory github.com/canonical/lxd/security/advisories/G…
- Patch github.com/canonical/lxd/commit/043696a13171ac…
- Patch github.com/canonical/lxd/commit/7046979645c2ce…
1 more
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.