GitHub Advisoryadvisory · Go
GHSA-q4q8-7f2j-9h9f Incus has an abitrary file write through its systemd-creds options
CRITICAL
Official page ↗
- Aliases
- CVE-2026-33945
- Ecosystem
- Go
- Packages
- github.com/lxc/incus/v6
- Severity
- Critical
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- Weaknesses
- CWE-22
- Reviewed
- 2026-03-27
Affected packages
• Go github.com/lxc/incus/v6: < 6.23.0 → fixed in 6.23.0
Description
Summary
Incus instances have an option to provide credentials to systemd in the guest. For containers, this is handled through a shared directory.
An attacker can use the name of a systemd credential to escape that directory and overwrite arbitrary files on the host system.
This can in turn be used to perform local privilege escalation or cause a DoS.
Details
An attacker can set a configuration key named something like `systemd.credential.../../../../../../root/.bashrc` to cause Incus to write outside of the `credentials` directory associated with the container. This makes use of the fact that the Incus syntax for such credentials is `systemd.credential.XYZ` where `XYZ` can itself contain more periods.
While it's not possible to read any data this way, it's possible to write to arbitrary files as root, enabling both privilege escalation and denial of service attacks.
Credit
This issue was discovered and reported by the team at 7asecurity
Related
Alias · CVE (1)
- CVE-2026-33945 Incus is a system container and virtual machine manager. vulnerability
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness