All vulnerabilities

Servers and applications

GHSA-6g98-m9m8-cggj

Restricted project users can write into other projects' instances and delete host files through a symlink in a btrfs optimized backup

Severity
High 8.1
Published
27 Nov 2026
Last changed
27 Nov 2026
Added to UpHeron
27 Nov 2026
Fixed in
7.7.0
Weakness
Path traversal (CWE-22)Link following (CWE-59)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Sources
Project advisories (GitHub)

Description

When an optimized btrfs backup is imported, Incus moves each received subvolume to its location inside the new volume, as root. That location comes from the header inside the backup and was only checked lexically, following the fix for GHSA-h85r-gjgx-g2rv and GHSA-27q7-qwhm-c34p. The root subvolume is moved into place first, so a symlink it contains is followed when the location of a later subvolume is resolved. A backup whose root subvolume holds a symlink to an arbitrary path, and whose header places a nested subvolume below that symlink, makes Incus remove the target path and move the attacker's subvolume there.

Restricted projects block the creation of backups by default, but not the creation of an instance from a backup file, so a client restricted to its own project can use this.

The same destination handling is used when receiving a btrfs optimized migration.

A client restricted to one project can:

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

Affected software

SoftwareAffected versions
IncusServers and applications · github:lxc/incus
  • Every version before 7.7.0

About Incus

container manager for system containers

From Wikidata, CC0 1.0.
GitHub stars
6,771GitHub, 29 Nov 2026
Forks
535GitHub, 29 Nov 2026
Latest release
v7.7.0GitHub, 29 Nov 2026
Released
27 Nov 2026GitHub
Developer
Linux ContainersWikidata
License
Apache License 2.0Wikidata
Written in
GoWikidata
First released
7 Aug 2023Wikidata
First published on GitHub
22 Jul 2023GitHub

References