🛡️ GHSA-3g2j-vm47-x4mj — lxd

🟠 CVSS 8.0 — High ✅ No Known Exploit CWE-269 OSV
8.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

LXD vulnerable to a local privilege escalation through custom storage volumes

Impact

This affects any LXD user in an environment where an unprivileged user may have root access to a container with an attached custom storage volume that has the security.shifted property set to true as well as access to the host as an unprivileged user.

The most common case for this would be systems using lxd-user with the less privileged lxd group to provide unprivileged users with an isolated restricted access to LXD. Such users may be able to create a custom storage volume with the necessary property (depending on kernel and filesystem support) and can then write a setuid binary from within the container which can be executed as an unprivileged user on the host to gain root privileges.

Patches

Patches for this issue are available:

  • LXD 6 series: https://github.com/canonical/lxd/pull/16904
  • LXD 5.21 LTS series: https://github.com/canonical/lxd/pull/16922
  • LXD 5.0 LTS series: https://github.com/canonical/lxd/pull/16923
  • LXD 4.0 LTS series: https://github.com/canonical/lxd/pull/16924

The first commit changes the permissions for any new storage pool, the later commit adds a patch that applies it on startup to all existing storage pools.

These fixes are also available in the associated candidate snap channels for each LTS series:

  • 5.21/candidate (5.21.4-8a3cf61)
  • 5.0/candidate (5.0.5-5c60378)
  • 4.0/candidate (4.0.10-35a8127)

We will be preparing intermediate releases to the associated stable snap channels shortly.

Workarounds

Permissions can be manually restricted until a patched version of LXD is deployed.

This is done with:

```

sudo nsenter --mount=/run/snapd/ns/lxd.mnt -- chmod 0700 /var/snap/lxd/common/lxd/storage-pools/*/{custom*,virtual-machines*,images}

sudo nsenter --mount=/run/snapd/ns/lxd.mnt -- chmod 0711 /var/snap/lxd/common/lxd/storage-pools/*/{containers*,buckets*}

```

Those are the same permissions which will be applied by the patched LXD for both new and existing storage pools.

References

This was reported to Incus publicly on Github here:

  • https://github.com/lxc/incus/security/advisories/GHSA-56mx-8g9f-5crf
  • https://github.com/lxc/incus/issues/2641

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. Rated impact: confidentiality high, integrity high, availability high.

Weakness class

GHSA-3g2j-vm47-x4mj is classified as CWE-269: Improper Privilege Management. Privileges are assigned, dropped or restored incorrectly, leaving an actor with more access than intended.

Affected software

GHSA-3g2j-vm47-x4mj is recorded against 1 package.

  • github.com/canonical/lxd

Timeline and source

Published on 13 November 2025 and last revised on 18 November 2025. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

github.com (Web)
github.com (Web)
github.com (Web)
github.com (Web)
github.com (Web)
github.com (Web)
github.com (Web)
github.com (Package)

Details

Severity HIGH
CVSS Score 8.0
CVSS Vector CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CWE CWE-269
Public Exploit ✅ No
Source OSV
Published 2025-11-13
Updated 2026-08-20
Modified 2025-11-18
Fix URL N/A

Affected Packages

Software From version Fixed in
github.com/canonical/lxd

Similar Threats

Site Security Check

Is lxd part of your stack?

GHSA-3g2j-vm47-x4mj is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesGitHub AdvisoryGitHub Advisory Undated