All vulnerabilities

Go

GHSA-fmc8-p6q7-75cc

LXD has argument injection in backup compression algorithm leading to AFW and ACE

Severity
Critical 9.9
Published
6 Nov 2026
Last changed
6 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
0.0.0-20260630083100-c5184be310b1
Weakness
Improper input validation (CWE-20)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Sources
OSV.dev and GitHub

Description

Reported from https://github.com/lxc/incus/security/advisories/GHSA-v6mj-8pf4-hhw4

Improper validation of user-provided backup compression algorithm leads to argument injection in the constructed command line. This leads to an arbitrary file write on the host, possibly leading to arbitrary command execution.

Incus validates compression_algorithm by parsing it into fields and checking only the first token against an allowlist:

Extra arguments are not rejected. compressFile() then prepends -c and passes the remaining user-supplied fields to the compressor:

With a value like:

the daemon executes the equivalent of:

Improperly validated compression algorithm argument leads to argument injection leading to arbitrary file write with zstd and possibly arbitrary command execution.

From the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
github.com/canonical/lxdGo · osv:Go:github.com/canonical/lxd
  • Every version before 0.0.0-20260630083100-c5184be310b1

About github.com/canonical/lxd

References