All vulnerabilities

Go

GHSA-vghh-5rfx-xhq8

LXD has arbitrary file read+write on host via rootfs/ symlink in malicious image

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
CWE-73
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-2q3f-q5pq-g8wv

A specially crafted image can be used to read or create/write arbitrary files on the host; possibly leading to arbitrary command execution.

Incus validates an image as soon as it sees a normal metadata.yaml and a rootfs/ entry, but full extraction can later process a duplicate top-level rootfs symlink. Later, the stopped-container file API opens d.RootfsPath() and passes that file descriptor to forkfile, which chroots to it.

In practice, this allows a malicious actor to access the host's filesystem with root privileges.

Arbitrary file read and write on the host via unsanitized symlink; possibly leading to 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