---
title: "GHSA-fmc8-p6q7-75cc: LXD has argument injection in backup compression algorithm leading to AFW and ACE"
url: https://erroneo.us/security/ghsa/GHSA-fmc8-p6q7-75cc/
description: "GHSA-fmc8-p6q7-75cc (critical, Go): LXD has argument injection in backup compression algorithm leading to AFW and ACE. Reported from…"
type: advisory
section: "Security Digest"
date_published: 2026-11-06
date_modified: 2026-11-06
publisher: erroneo.us
author: erroneo.us Security Desk
ghsa: "GHSA-fmc8-p6q7-75cc"
license: All rights reserved. Quote with attribution and a link.
---

# GHSA-fmc8-p6q7-75cc: LXD has argument injection in backup compression algorithm leading to AFW and ACE

## Affected packages

- Go `github.com/canonical/lxd` < 0.0.0-20260630083100-c5184be310b1 → fixed: 0.0.0-20260630083100-c5184be310b1

## Details

Reported from https://github.com/lxc/incus/security/advisories/GHSA-v6mj-8pf4-hhw4 Summary 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. Details Incus validates compressionalgorithm 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: PoC The following was generated by an LLM model. Impact Improperly validated compression algorithm argument leads to argument injection leading to arbitrary file write with zstd and possibly arbitrary command execution.

## Sources

- [GitHub Advisory GHSA-fmc8-p6q7-75cc](https://github.com/advisories/GHSA-fmc8-p6q7-75cc)
- [github.com](https://github.com/canonical/lxd/security/advisories/GHSA-fmc8-p6q7-75cc)
- [github.com](https://github.com/lxc/incus/security/advisories/GHSA-v6mj-8pf4-hhw4)
- [nvd.nist.gov](https://nvd.nist.gov/vuln/detail/CVE-2026-48755)
- [github.com](https://github.com/canonical/lxd/commit/0915bb88cbb0baed5ac1aef8e62079c57ac877da)
- [github.com](https://github.com/canonical/lxd/commit/0ab30d1bbe398ef6359fb8116d6852790a1f151d)
- [github.com](https://github.com/canonical/lxd/commit/1887e3da0f33af250d941e4e9ffafc8fd0911a89)
- [github.com](https://github.com/canonical/lxd/commit/32fd88560ddfc10b0a808c9f176d93faf0e0069a)
- [github.com](https://github.com/canonical/lxd/commit/932592daa790ddd1c0d074daee9c0522d8e268fe)
- [github.com](https://github.com/canonical/lxd/commit/9b09906b3b4c27ba4416e522644bd1d5191cdf5f)
- [github.com](https://github.com/canonical/lxd/commit/a2808429c2506d6fa5bf506e4790909c5bd3aac9)
- [github.com](https://github.com/canonical/lxd/commit/afc0e7ff003b81fa00f3aff147b99838a610f796)
- [github.com](https://github.com/canonical/lxd/commit/b3e8cedb39838e5effe7b9d0ae3a3ad3ce85f9ec)
- [github.com](https://github.com/canonical/lxd/commit/c6c999561ccf0024337e9f3746087c7f9c5f096f)
- [github.com](https://github.com/canonical/lxd/commit/e1e6018c509f52db0fb531c7c20fa7aac59858de)
- [github.com](https://github.com/canonical/lxd/commit/e224d6f8230a2da7ed7e60ab2aee44c788f9dba8)

---
Source page: https://erroneo.us/security/ghsa/GHSA-fmc8-p6q7-75cc/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
