---
id: CVE-2026-28384
title: >-
  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
summary: >-
  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
  iss…
severity: critical
cvss: 9.9
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'
cwe:
  - CWE-78
vendor: canonical
product: lxd
affected:
  - 'lxd >= 4.12, < 5.0.6'
  - 'lxd >= 5.21.0, < 5.21.4'
  - 'lxd >= 6.0, < 6.7'
patched:
  - lxd 6.7
published: '2026-03-12'
updated: '2026-09-18'
sourceUpdated: '2026-09-18T14:08:53.590'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-28384'
references:
  - url: >-
      https://discourse.ubuntu.com/t/lxd-authenticated-remote-code-execution-fixes-available/78365
    label: security@ubuntu.com
  - url: >-
      https://github.com/canonical/lxd/commit/043696a13171ace7dd4c2b32d34ce039ab629052
    label: security@ubuntu.com
  - url: >-
      https://github.com/canonical/lxd/commit/7046979645c2ce1b63b2f9e60ddf6cbc4c4b78f9
    label: security@ubuntu.com
  - url: >-
      https://github.com/canonical/lxd/commit/b7b411caf5c4971bfe2386c72128f44d7e2aaf4f
    label: security@ubuntu.com
  - url: 'https://github.com/canonical/lxd/security/advisories/GHSA-4rmf-rcp8-2r9g'
    label: security@ubuntu.com
  - url: 'https://github.com/canonical/lxd/security/advisories/GHSA-4rmf-rcp8-2r9g'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
epss: 0.00653
epssPercentile: 0.49886
ingestedAt: '2026-09-11T16:45:47.842Z'
---

## Overview

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.

## Affected

- `lxd >= 4.12, < 5.0.6`
- `lxd >= 5.21.0, < 5.21.4`
- `lxd >= 6.0, < 6.7`

## Remediation

Upgrade past the affected range:

- `lxd 6.7`
