CVE-2026-33945
Description
Incus is a system container and virtual machine manager. Incus instances have an option to provide credentials to systemd in the guest. For containers, this is handled through a shared directory. Prior to version 6.23.0, 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. Version 6.23.0 fixes the issue.
How to fix
- linuxcontainers incus6.23.0 or later
- github.com/lxc/incus/v66.23.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| linuxcontainers incus | v < 6.23.0 | 6.23.0 |
| github.com/lxc/incus/v6Go | v < 6.23.0 | 6.23.0 |
| github.com/lxc/incusGo | No range specified | — |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.