/

CVE-2026-130780

Severity:

CRITICAL RISK

(9.9)

Path Traversal (CWE-22) in Incus Migration Handler

CVE-2026-130780

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Unauthorized writes to host paths, potential host compromise, access-control bypass, or daemon denial of service

Severity:

CRITICAL RISK

(9.9)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Incus contains a path traversal vulnerability in migration handling: a malicious migration peer can provide unvalidated dependent volume or snapshot names in a migration offer. If Incus processes such an offer, the names may direct writes outside intended directories, potentially compromising the host or disrupting the daemon.

Affected context

The issue concerns Incus migration handling, including deployments before 7.6.0. It arises when a migration offer contains dependent volume or snapshot names that are not adequately validated before being used to construct filesystem paths. The described host-path impact is particularly relevant to deployments using directory-backed storage pools.

Exploit preconditions

  • Attack surface: Incus migration processing
  • Required access: Ability to act as or control a migration source accepted by the target
  • Trigger point: Processing a migration offer header containing dependent volume or snapshot names
  • Why exploitation is possible: Unvalidated names may influence destination paths, allowing writes outside the intended storage directories

Why this happens

The underlying bug is improper validation of path components derived from peer-controlled migration metadata. When names are incorporated into filesystem paths without reliably preventing traversal beyond the intended directory, attacker-controlled input can redirect file operations. This maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').

Potential impact

  • Attacker-controlled content could be written to unintended host paths, potentially as root-owned files.
  • Hosts using directory-backed storage pools could be compromised.
  • The issue could bypass the intended restrictions of restricted.storage-pools.access.
  • Malformed or malicious migration data could crash the Incus daemon and disrupt service.

General mitigation guidance

Defensive patterns focus on treating migration metadata as untrusted and confining filesystem operations to explicitly authorized storage locations.

  • Validate volume and snapshot names against a strict schema and reject path separators or traversal components.
  • Resolve and verify destination paths remain within the intended storage root before performing writes.
  • Prefer APIs or abstractions that operate on authorized storage objects rather than constructing paths directly from peer-provided names.
  • Apply least privilege to daemon and storage operations, and keep migration access limited to trusted peers.
  • Enforce storage-pool authorization consistently, including for dependent volumes and snapshots.

How teams detect issues like this

  • Use static analysis to identify filesystem paths constructed from migration metadata or other peer-controlled names.
  • Review path-handling code for canonicalization, containment checks, and validation performed before file creation.
  • Add tests and policy checks that reject traversal-like names and verify writes cannot escape the configured storage root.
  • Monitor migration failures, unexpected files in host directories, and daemon crashes associated with migration processing.

Sources

SourceLink
github.comgithub.com/lxc/incus/security/advisories/GHSA-q9fc-p923-6vp7

Frequently asked

questions

Exploitation depends on whether an attacker can act as a migration source whose offer is processed by the target. It is not an unauthenticated attack in every deployment.

The attacker needs the ability to control a migration peer or source accepted by the Incus instance. The exact access requirements depend on the deployment's migration and authorization controls.

Validate peer-provided names and ensure every resolved destination remains within its authorized storage directory before writing.

Treat migration metadata as untrusted, use path-safe storage abstractions, enforce authorization at each operation, and test that filesystem writes cannot escape designated roots.

Find out what's already
exploitable in your codebase.