Description
Incus before 6.0.7, 6.1.0 before 7.0.2, and 7.1.0 before 7.5.0 contains an arbitrary file write vulnerability in sftpRecursivePullFile that allows a malicious incus-agent to escape the target directory during incus file pull -r. Attackers with root in a virtual machine can return duplicate entries reported first as symlinks then as files or directories, writing attacker-controlled files such as /etc/shadow on the operator's host.
Published: 2026-10-22
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Privilege escalation via arbitrary file write on the host
Action: Immediate Patch
AI Analysis

Impact

Incus contains an arbitrary file write flaw in the sftpRecursivePullFile routine that permits a malicious incus-agent to escape the designated target directory during a recursive pull. An attacker with root privileges inside a virtual machine can exploit duplicate path entries reported as symlinks, then files or directories, to write arbitrary data such as /etc/shadow onto the operator's host system. The weakness is a classic filesystem traversal error (CWE-59) that can lead to unauthorized modification of critical host files, enabling further compromise.

Affected Systems

The vulnerability is present in Incus versions prior to 6.0.7, 6.1.0 before 7.0.2, and 7.1.0 before 7.5.0. Affected deployments use the lxc:incus product line.

Risk and Exploitability

With a CVSS score of 6.9 the flaw is considered moderate. No EPSS data is available and the existence of the vulnerability is not yet listed in the CISA KEV catalog, suggesting no publicly documented exploits. However, the required conditions—root access within a virtual machine and the ability to issue a recursive file pull—may be met in small to medium environments where VMs are trusted. If an attacker can meet these prerequisites, they can gain arbitrary host file write permissions, silently undermining system integrity and potentially achieving full control of the host.

Generated by OpenCVE AI on October 23, 2026 at 03:49 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Incus update that fixes the arbitrary file write in sftpRecursivePullFile
  • Restrict incus-agent capabilities by disabling recursive file pull or limiting it to non-root VMs
  • Enable host filesystem integrity monitoring to detect unauthorized writes

Generated by OpenCVE AI on October 23, 2026 at 03:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 23 Oct 2026 00:45:00 +0000

Type Values Removed Values Added
Description Incus before 6.0.7, 6.1.0 before 7.0.2, and 7.1.0 before 7.5.0 contains an arbitrary file write vulnerability in sftpRecursivePullFile that allows a malicious incus-agent to escape the target directory during incus file pull -r. Attackers with root in a virtual machine can return duplicate entries reported first as symlinks then as files or directories, writing attacker-controlled files such as /etc/shadow on the operator's host.
Title Incus before 6.0.7, 6.1.0 before 7.0.2, and 7.1.0 before 7.5.0 Arbitrary File Write via Recursive File Pull
First Time appeared Linuxcontainers
Linuxcontainers incus
Weaknesses CWE-59
CPEs cpe:2.3:a:linuxcontainers:incus:*:*:*:*:*:*:*:*
Vendors & Products Linuxcontainers
Linuxcontainers incus
References
Metrics cvssV3_1

{'score': 5.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:N'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N'}


Subscriptions

Linuxcontainers Incus
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-22T19:13:47.035Z

Reserved: 2026-10-22T11:24:28.627Z

Link: CVE-2026-115378

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-22T19:17:44.600

Modified: 2026-10-22T19:17:44.600

Link: CVE-2026-115378

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T05:00:13Z

Weaknesses
  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')