CVE-2026-33897Incus vulnerable to arbitrary file read and write through pongo templates
Incus is a system container and virtual machine manager. Prior to version 6.23.0, instance template files can be used to cause arbitrary read or writes as root on the host server. Incus allows for pongo2 templates within instances which can be used at various times in the instance lifecycle to template files inside of the instance. This particular implementation of pongo2 within Incus allowed for file read/write but with the expectation that the pongo2 chroot feature would isolate all such access to the instance's filesystem. This was allowed such that a template could theoretically read a file and then generate a new version of said file. Unfortunately the chroot isolation mechanism is entirely skipped by pongo2 leading to easy access to the entire system's filesystem with root privileges. Version 6.23.0 patches the issue.
What to do
Fixed builds are available from Debian, Go: see the table below for the fixed version per release.
Debian, Go, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | incus | Fix pending | UBUNTU-CVE-2026-33897 | |
| Ubuntu 26.04 | incus | Fix pending | UBUNTU-CVE-2026-33897 | |
| Ubuntu 25.10 | incus | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-33897 | |
| Ubuntu 24.04 | incus | Fix pending | UBUNTU-CVE-2026-33897 | |
| Ubuntu 20.04 | lxd | Fix pending | UBUNTU-CVE-2026-33897 | |
| Ubuntu 18.04 | lxd | Fix pending | UBUNTU-CVE-2026-33897 | |
| Ubuntu 16.04 | lxd | Fix pending | UBUNTU-CVE-2026-33897 | |
| Debian 14 | incus | Fixed | 6.0.6-2 | DEBIAN-CVE-2026-33897 |
| Debian 13 | incus | Fixed | 6.0.4-2+deb13u5 | DEBIAN-CVE-2026-33897 |
| Debian 13 | lxd | Fixed | 5.0.2+git20231211.1364ae4-9+deb13u4 | DEBIAN-CVE-2026-33897 |
| Debian 12 | lxd | Fix pending | DEBIAN-CVE-2026-33897 | |
| Go library | github.com/lxc/incus | Fix pending | GHSA-83xr-5xxr-mh92 | |
| Go library | github.com/lxc/incus/v6 | Fixed | 6.23.0 | GHSA-83xr-5xxr-mh92 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- lxc incus: affected: < 6.23.0
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.