CVE-2026-66897 Instance template path traversal allows arbitrary host file write as root
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- Debian
Description
A path traversal vulnerability in LXD's instance template processing allows an attacker with container edit permissions, or any user launching a crafted image, to overwrite arbitrary files on the host system as root. When processing target template paths specified in metadata.yaml, LXD validates the path against a confined os.Root directory handle but subsequently opens and creates the file using os.Create with an unconfined string path. This discrepancy between path resolution checks and file creation allows an attacker to escape directory confinement, overwrite root-owned host files, and achieve host root code execution.
Upgrade path
3 packages: 1 fixed, 2 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 |
| debian/lxd(Debian 13) | = 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 +5 more | No fix listed | No fix yet |
| Canonical LXD | < 4.0.13; >= 4.0.0, < 4.0.13; >= 5.0.0, < 5.0.9; >= 5.1, < 5.21.7 +3 more | 4.0.13, 5.0.9, 5.21.7, 6.10 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Canonical LXD | >= 4.0.0, < 4.0.13 | 4.0.13 |
| Canonical LXD | >= 5.0.0, < 5.0.9 | 5.0.9 |
| Canonical LXD | >= 5.21.0, < 5.21.7 | 5.21.7 |
| Canonical LXD | >= 6.0, < 6.10 | 6.10 |
| 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) | All versions | No fix listed |
| 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 |
Show 9 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/lxd(Debian:13) | = 5.0.2+git20231211.1364ae4-9+deb13u2 | No fix listed |
| debian/lxd(Debian:13) | = 5.0.2+git20231211.1364ae4-9+deb13u3 | No fix listed |
| debian/lxd(Debian:13) | = 5.0.2+git20231211.1364ae4-9+deb13u4 | No fix listed |
| debian/lxd(Debian:13) | = 5.0.2+git20231211.1364ae4-9+deb13u5 | No fix listed |
| debian/lxd(Debian:13) | = 5.0.2+git20231211.1364ae4-9+deb13u6 | No fix listed |
| debian/lxd(Debian:13) | = 5.0.2+git20231211.1364ae4-9+deb13u7 | No fix listed |
| Canonical LXD | < 4.0.13 | 4.0.13 |
| Canonical LXD | >= 5.1, < 5.21.7 | 5.21.7 |
| Canonical LXD | >= 6.0, <= 6.9 | No fix listed |
References
- github.com exploit vdb-entry vendor-advisory
- Debian Security Tracker CVE-2026-66897 vendor-advisory
- ENISA EUVD EUVD-2026-64757 third-party-advisory