Security Digest · Critical advisory (no CVE assigned)

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

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.

CVSS 9.9 Critical GitHub-reviewed · critical

Should you act?

  • Only if you depend on one of the packages below, directly or transitively, in a vulnerable version. Check your lockfile with govulncheck ./....
  • No CVE has been assigned, so it will not appear in CVE-based scanners that ignore GitHub advisories. npm audit, pip-audit and Dependabot do read GitHub advisories.

Affected packages

EcosystemPackageVulnerableFirst fixed
Gogithub.com/canonical/lxd< 0.0.0-20260630083100-c5184be310b10.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:

CVSS: 9.9 (v3.1) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Sources and references

  1. GitHub Advisory GHSA-fmc8-p6q7-75cc github.com
  2. github.com github.com
  3. github.com github.com
  4. nvd.nist.gov nvd.nist.gov
  5. github.com github.com
  6. github.com github.com
  7. github.com github.com
  8. github.com github.com
  9. github.com github.com
  10. github.com github.com
  11. github.com github.com
  12. github.com github.com
  13. github.com github.com
  14. github.com github.com
  15. github.com github.com
  16. github.com github.com

Critical Go advisories · Today’s Security Digest