CVE-2026-23954 Incus container image templating arbitrary host file read and write
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
- Technology
- UbuntuDebian
Description
Incus is a system container and virtual machine manager. Versions 6.21.0 and below allow a user with the ability to launch a container with a custom image (e.g a member of the ‘incus’ group) to use directory traversal or symbolic links in the templating functionality to achieve host arbitrary file read, and host arbitrary file write. This ultimately results in arbitrary command execution on the host. When using an image with a metadata.yaml containing templates, both the source and target paths are not checked for symbolic links or directory traversal. This can also be exploited in IncusOS. A fix is planned for versions 6.0.6 and 6.21.0, but they have not been released at the time of publication.
Upgrade path
14 packages: 8 fixed, 1 partially fixed, 4 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/lxd(Debian 12) | = 5.0.2+git20231211.1364ae4-1; = 5.0.2+git20231211.1364ae4-2; = 5.0.2+git20231211.1364ae4-3; = 5.0.2+git20231211.1364ae4-4 +14 more | No fix listed | No fix yet |
| lxc incus(Go) | >= 6.1.0; All versions | No fix listed | No fix yet |
| ubuntu/incus(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/incus(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| lxc github.com/lxc/incus/v7/cmd/incusd(Go) | < 6.21.0; All versions | 6.21.0 | Partially fixed |
| alpine/incus(Alpine v3.23) | < 6.0.5-r6 | 6.0.5-r6 | Fixed |
| alpine/incus(Alpine v3.24) | < 6.0.5-r6 | 6.0.5-r6 | Fixed |
| alpine/incus-feature(Alpine v3.23) | < 6.21.0-r0 | 6.21.0-r0 | Fixed |
| alpine/incus-feature(Alpine v3.24) | < 6.21.0-r0 | 6.21.0-r0 | Fixed |
| debian/incus(Debian 13) | < 6.0.4-2+deb13u4; = 6.0.4-2; = 6.0.4-2+deb13u1; = 6.0.4-2+deb13u1~bpo12+1 +5 more | 6.0.4-2+deb13u4 | Fixed |
| debian/incus(Debian 14) | < 6.0.5-8; = 6.0.4-2; = 6.0.4-3; = 6.0.5-1 +6 more | 6.0.5-8 | Fixed |
| debian/lxd(Debian 13) | < 5.0.2+git20231211.1364ae4-9+deb13u3; = 5.0.2+git20231211.1364ae4-9; = 5.0.2+git20231211.1364ae4-9+deb13u1; = 5.0.2+git20231211.1364ae4-9+deb13u2 | 5.0.2+git20231211.1364ae4-9+deb13u3 | Fixed |
| linuxcontainers incus | <= 6.0.5; >= 6.1.0, < 6.21.0 | 6.21.0 | Fixed |
| lxc incus | = <= 6.0.5; = >= 6.1.0, <= 6.20.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| lxc github.com/lxc/incus/v7/cmd/incusd(Go) | All versions | No fix listed |
| lxc incus(Go) | All versions | No fix listed |
| lxc incus(Go) | >= 6.1.0 | No fix listed |
| lxc incus | = >= 6.1.0, <= 6.20.0 | No fix listed |
| lxc incus | = <= 6.0.5 | No fix listed |
| lxc github.com/lxc/incus/v7/cmd/incusd(Go) | < 6.21.0 | 6.21.0 |
| debian/incus(Debian:13) | < 6.0.4-2+deb13u4 | 6.0.4-2+deb13u4 |
| debian/incus(Debian:13) | = 6.0.4-2 | No fix listed |
| debian/incus(Debian:13) | = 6.0.4-2+deb13u1 | No fix listed |
| debian/incus(Debian:13) | = 6.0.4-2+deb13u1~bpo12+1 | No fix listed |
| debian/incus(Debian:13) | = 6.0.4-2+deb13u2 | No fix listed |
| debian/incus(Debian:13) | = 6.0.4-2+deb13u2~bpo12+1 | No fix listed |
| debian/incus(Debian:13) | = 6.0.4-2+deb13u3 | No fix listed |
| debian/incus(Debian:13) | = 6.0.4-2+deb13u3~bpo12+1 | No fix listed |
| debian/incus(Debian:13) | = 6.0.4-2+deb13u4~bpo12+1 | No fix listed |
| debian/incus(Debian:14) | < 6.0.5-8 | 6.0.5-8 |
| debian/incus(Debian:14) | = 6.0.4-2 | No fix listed |
| debian/incus(Debian:14) | = 6.0.4-3 | No fix listed |
| debian/incus(Debian:14) | = 6.0.5-1 | No fix listed |
| debian/incus(Debian:14) | = 6.0.5-2 | No fix listed |
| debian/incus(Debian:14) | = 6.0.5-3 | No fix listed |
| debian/incus(Debian:14) | = 6.0.5-4 | No fix listed |
| debian/incus(Debian:14) | = 6.0.5-5 | No fix listed |
| debian/incus(Debian:14) | = 6.0.5-6 | No fix listed |
| debian/incus(Debian:14) | = 6.0.5-7 | No fix listed |
Show 30 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/lxd(Debian:12) | All versions | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2+git20231211.1364ae4-1 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2+git20231211.1364ae4-2 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2+git20231211.1364ae4-3 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2+git20231211.1364ae4-4 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2+git20231211.1364ae4-5 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2+git20231211.1364ae4-6 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2+git20231211.1364ae4-7 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2+git20231211.1364ae4-8 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2+git20231211.1364ae4-9 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2-5 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2-5+deb12u1 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2-5+deb12u2 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2-5+deb12u3 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2-5+deb12u4 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2-5+deb12u5 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2-5+deb12u6 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2-6 | No fix listed |
| debian/lxd(Debian:13) | < 5.0.2+git20231211.1364ae4-9+deb13u3 | 5.0.2+git20231211.1364ae4-9+deb13u3 |
| debian/lxd(Debian:13) | = 5.0.2+git20231211.1364ae4-9 | No fix listed |
| debian/lxd(Debian:13) | = 5.0.2+git20231211.1364ae4-9+deb13u1 | No fix listed |
| debian/lxd(Debian:13) | = 5.0.2+git20231211.1364ae4-9+deb13u2 | No fix listed |
| ubuntu/incus(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/incus(Ubuntu:26.04) | All versions | No fix listed |
| linuxcontainers incus | <= 6.0.5 | No fix listed |
| linuxcontainers incus | >= 6.1.0, < 6.21.0 | 6.21.0 |
| alpine/incus(Alpine:v3.23) | < 6.0.5-r6 | 6.0.5-r6 |
| alpine/incus(Alpine:v3.24) | < 6.0.5-r6 | 6.0.5-r6 |
| alpine/incus-feature(Alpine:v3.23) | < 6.21.0-r0 | 6.21.0-r0 |
| alpine/incus-feature(Alpine:v3.24) | < 6.21.0-r0 | 6.21.0-r0 |
References
- https://github.com/lxc/incus/security/advisories/GHSA-7f67-crqm-jgh7 exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- https://github.com/lxc/incus/blob/HEAD/internal/server/instance/drivers/driver_lxc.go#L7215 product
- https://github.com/user-attachments/files/24473599/template_arbitrary_write.sh exploit
- https://github.com/user-attachments/files/24473601/templates_arbitrary_write.patch patch
- github.com
- Debian Security Tracker CVE-2026-23954 vendor-advisory
- security.alpinelinux.org vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org