Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/canonical/lxd
  4. ›
  5. GHSA-9j25-mm2h-2f76

GHSA-9j25-mm2h-2f76: LXD has arbitrary file write on host via `exec-output` symlink in crafted image

November 6, 2026

The record-output parameter of the /instances/$name/exec endpoint stores the output of the command in the exec-output directory of the instance. If exec-output is a symlink, file named exec_UUID.stdout and exec_UUID.stderr can be written to an arbitrary location where the .stdout file will contain arbitrary content. This behavior can be abused for arbitrary command execution.

References

  • github.com/advisories/GHSA-9j25-mm2h-2f76
  • github.com/canonical/lxd/commit/124f901006400f634d54d908911c9ea93bae9a70
  • github.com/canonical/lxd/commit/254b85c9301397e25304116b63da9154093199da
  • github.com/canonical/lxd/commit/4cd63344f8a523acf39fdc02a80fd64b2e3b584f
  • github.com/canonical/lxd/commit/937b761393af48fe4f5ff7e610ebfc1c9144e953
  • github.com/canonical/lxd/commit/bb0f2521a59edacff2a0cb2e9532fdfbe68cf764
  • github.com/canonical/lxd/releases/tag/lxd-5.21.5
  • github.com/canonical/lxd/security/advisories/GHSA-9j25-mm2h-2f76
  • github.com/lxc/incus/security/advisories/GHSA-73hr-m85f-64v9
  • manpages.debian.org/bookworm/cron/cron.8.en.html
  • nvd.nist.gov/vuln/detail/CVE-2026-48750

Code Behaviors & Features

Detect and mitigate GHSA-9j25-mm2h-2f76 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.0.0-20260626085134-124f90100640

Fixed versions

  • 0.0.0-20260626085134-124f90100640

Solution

Upgrade to version 0.0.0-20260626085134-124f90100640 or above.

Impact 9.9 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-73: External Control of File Name or Path

Source file

go/github.com/canonical/lxd/GHSA-9j25-mm2h-2f76.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:27 +0000.