All vulnerabilities

Servers and applications

CVE-2026-115378

Incus CLI arbitrary file write via malicious incus-agent during recursive file pull

Severity
Medium 6.9
Published
25 Sept 2026
Last changed
26 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
6.0.7, 7.0.2, 7.5.0
Exploit chance
0.3% in the next 30 daysHigher than 21% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Link following (CWE-59)
Attack
Over the network · Only under certain conditions · Needs a user account · Needs someone to view a page or file
Attacker can
Change data
CVSS 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
Also known as
GHSA-wfvq-qh87-gm4j
Sources
CVE Program, Project advisories (GitHub)

Description

incus file pull -r copies a directory tree out of a virtual machine over SFTP, served by incus-agent running inside the guest. The client trusted the agent's directory listing and Lstat results without accounting for the fact that a compromised agent can make them inconsistent. A malicious agent can return the same entry name twice, report it as a symlink on the first visit and as a directory or regular file on the second. The client creates the symlink on the first visit and, on the second, recurses into or writes through it, escaping the local target directory.

An attacker with root inside a virtual machine, running a modified incus-agent, can make an operator who runs incus file pull -r from that virtual machine write attacker-controlled files, or whole directory trees, to arbitrary paths on the machine running the incus CLI, with the operator's privileges. When run as root this allows overwriting files such as /etc/shadow or /root/.ssh/authorized_keys.

From lxc/incus's security advisory. Shortened; the full text is there.

Workarounds

Avoid incus file pull -r from untrusted virtual machines, or run it as an unprivileged user into a dedicated directory.

Workarounds as given by lxc/incus's security advisory.

Affected software

SoftwareAffected versions
IncusServers and applications · cna:lxc|incus
  • Every version before 6.0.7
  • From 6.1.0 before 7.0.2
  • From 7.1.0 before 7.5.0
IncusServers and applications · github:lxc/incus
  • Every version before 7.5.0

About Incus

container manager for system containers

From Wikidata, CC0 1.0.
GitHub stars
6,644GitHub, 15 Nov 2026
Forks
522GitHub, 15 Nov 2026
Latest release
v7.6.0GitHub, 15 Nov 2026
Released
30 Oct 2026GitHub
Developer
Linux ContainersWikidata
License
Apache Software License 2.0Wikidata
Written in
GoWikidata
First released
7 Aug 2023Wikidata
First published on GitHub
22 Jul 2023GitHub

References