{"id":"UBUNTU-CVE-2026-33897","details":"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.","modified":"2026-07-02T18:02:57.205423779Z","published":"2026-03-26T23:16:00Z","upstream":["CVE-2026-33897"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-33897"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-33897"},{"type":"REPORT","url":"https://github.com/lxc/incus/pull/3092"},{"type":"REPORT","url":"https://github.com/lxc/incus/security/advisories/GHSA-83xr-5xxr-mh92"}],"affected":[{"package":{"name":"lxd","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/lxd?arch=source&distro=esm-infra-legacy%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.20-0ubuntu4","0.21-0ubuntu3","0.21-0ubuntu5","0.22-0ubuntu1","0.22-0ubuntu2","0.23-0ubuntu1","0.23-0ubuntu2","0.23-0ubuntu3","0.24-0ubuntu2","0.24-0ubuntu3","0.24-0ubuntu4","0.25-0ubuntu1","0.26-0ubuntu2","0.26-0ubuntu3","0.27-0ubuntu1","0.27-0ubuntu2","2.0.0~beta1-0ubuntu3","2.0.0~beta1-0ubuntu4","2.0.0~beta2-0ubuntu1","2.0.0~beta2-0ubuntu2","2.0.0~beta3-0ubuntu1","2.0.0~beta3-0ubuntu2","2.0.0~beta3-0ubuntu3","2.0.0~beta3-0ubuntu4","2.0.0~beta4-0ubuntu1","2.0.0~beta4-0ubuntu2","2.0.0~beta4-0ubuntu3","2.0.0~beta4-0ubuntu4","2.0.0~beta4-0ubuntu5","2.0.0~beta4-0ubuntu6","2.0.0~beta4-0ubuntu7","2.0.0~rc1-0ubuntu1","2.0.0~rc1-0ubuntu2","2.0.0~rc1-0ubuntu3","2.0.0~rc2-0ubuntu2","2.0.0~rc2-0ubuntu3","2.0.0~rc3-0ubuntu1","2.0.0~rc3-0ubuntu2","2.0.0~rc3-0ubuntu3","2.0.0~rc3-0ubuntu4","2.0.0~rc4-0ubuntu1","2.0.0~rc5-0ubuntu1","2.0.0~rc6-0ubuntu1","2.0.0~rc6-0ubuntu2","2.0.0~rc7-0ubuntu1","2.0.0~rc7-0ubuntu2","2.0.0~rc8-0ubuntu1","2.0.0~rc8-0ubuntu2","2.0.0~rc8-0ubuntu3","2.0.0~rc8-0ubuntu5","2.0.0~rc8-0ubuntu6","2.0.0~rc8-0ubuntu7","2.0.0~rc9-0ubuntu2","2.0.0~rc9-0ubuntu3","2.0.0~rc9-0ubuntu4","2.0.0~rc9-0ubuntu5","2.0.0-0ubuntu1","2.0.0-0ubuntu2","2.0.0-0ubuntu3","2.0.0-0ubuntu4","2.0.1-0ubuntu1~16.04.1","2.0.2-0ubuntu1~16.04.1","2.0.3-0ubuntu1~ubuntu16.04.2","2.0.4-0ubuntu1~ubuntu16.04.1","2.0.5-0ubuntu1~ubuntu16.04.1","2.0.8-0ubuntu1~ubuntu16.04.1","2.0.8-0ubuntu1~ubuntu16.04.2","2.0.9-0ubuntu1~16.04.1","2.0.9-0ubuntu1~16.04.2","2.0.10-0ubuntu1~16.04.1","2.0.10-0ubuntu1~16.04.2","2.0.11-0ubuntu1~16.04.2","2.0.11-0ubuntu1~16.04.4","2.0.11-0ubuntu1~16.04.4+esm1","2.0.11-0ubuntu1~16.04.4+esm2","2.0.11-0ubuntu1~16.04.4+esm3"],"ecosystem_specific":{"binaries":[{"binary_name":"golang-github-lxc-lxd-dev","binary_version":"2.0.11-0ubuntu1~16.04.4+esm3"},{"binary_version":"2.0.11-0ubuntu1~16.04.4+esm3","binary_name":"lxc2"},{"binary_name":"lxd","binary_version":"2.0.11-0ubuntu1~16.04.4+esm3"},{"binary_version":"2.0.11-0ubuntu1~16.04.4+esm3","binary_name":"lxd-client"},{"binary_name":"lxd-tools","binary_version":"2.0.11-0ubuntu1~16.04.4+esm3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-33897.json"}},{"package":{"name":"lxd","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/lxd?arch=source&distro=esm-infra%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.18-0ubuntu6","2.19-0ubuntu1","2.20-0ubuntu3","2.20-0ubuntu4","2.21-0ubuntu1","2.21-0ubuntu2","2.21-0ubuntu3","2.21-0ubuntu4","3.0.0~beta2-0ubuntu3","3.0.0~beta3-0ubuntu3","3.0.0~beta5-0ubuntu2","3.0.0~beta7-0ubuntu1","3.0.0-0ubuntu1","3.0.0-0ubuntu2","3.0.0-0ubuntu3","3.0.0-0ubuntu4","3.0.1-0ubuntu1~18.04.1","3.0.2-0ubuntu1~18.04.1","3.0.3-0ubuntu1~18.04.1","3.0.3-0ubuntu1~18.04.2","3.0.3-0ubuntu1~18.04.2+esm1","3.0.3-0ubuntu1~18.04.2+esm2","3.0.3-0ubuntu1~18.04.2+esm3"],"ecosystem_specific":{"binaries":[{"binary_name":"lxd","binary_version":"3.0.3-0ubuntu1~18.04.2+esm3"},{"binary_name":"lxd-client","binary_version":"3.0.3-0ubuntu1~18.04.2+esm3"},{"binary_version":"3.0.3-0ubuntu1~18.04.2+esm3","binary_name":"lxd-tools"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-33897.json"}},{"package":{"name":"lxd","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/lxd?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:0.7","1:0.8","1:0.9","1:0.10"],"ecosystem_specific":{"binaries":[{"binary_version":"1:0.10","binary_name":"lxd"},{"binary_name":"lxd-client","binary_version":"1:0.10"},{"binary_name":"lxd-tools","binary_version":"1:0.10"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-33897.json"}},{"package":{"name":"incus","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/incus?arch=source&distro=esm-apps%2Fnoble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4-1ubuntu1","0.5.1-1","0.5.1-3","0.6-1","6.0.0-1","6.0.0-1ubuntu0.1","6.0.0-1ubuntu0.2","6.0.0-1ubuntu0.2+esm1","6.0.0-1ubuntu0.3","6.0.0-1ubuntu0.3+esm1","6.0.0-1ubuntu0.3+esm2","6.0.0-1ubuntu0.3+esm3"],"ecosystem_specific":{"binaries":[{"binary_version":"6.0.0-1ubuntu0.3+esm3","binary_name":"golang-github-lxc-incus-dev"},{"binary_version":"6.0.0-1ubuntu0.3+esm3","binary_name":"incus"},{"binary_version":"6.0.0-1ubuntu0.3+esm3","binary_name":"incus-agent"},{"binary_name":"incus-client","binary_version":"6.0.0-1ubuntu0.3+esm3"},{"binary_name":"incus-migrate","binary_version":"6.0.0-1ubuntu0.3+esm3"},{"binary_name":"incus-tools","binary_version":"6.0.0-1ubuntu0.3+esm3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-33897.json"}},{"package":{"name":"incus","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/incus?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.0.3-4","6.0.4-2"],"ecosystem_specific":{"binaries":[{"binary_name":"golang-github-lxc-incus-dev","binary_version":"6.0.4-2"},{"binary_version":"6.0.4-2","binary_name":"incus"},{"binary_name":"incus-agent","binary_version":"6.0.4-2"},{"binary_name":"incus-base","binary_version":"6.0.4-2"},{"binary_name":"incus-client","binary_version":"6.0.4-2"},{"binary_name":"incus-extra","binary_version":"6.0.4-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-33897.json"}},{"package":{"name":"incus","ecosystem":"Ubuntu:Pro:26.04:LTS","purl":"pkg:deb/ubuntu/incus?arch=source&distro=esm-apps%2Fresolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.0.4-2","6.0.5-8","6.0.5-8ubuntu0.26.04.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"6.0.5-8ubuntu0.26.04.1~esm1","binary_name":"golang-github-lxc-incus-dev"},{"binary_name":"incus","binary_version":"6.0.5-8ubuntu0.26.04.1~esm1"},{"binary_version":"6.0.5-8ubuntu0.26.04.1~esm1","binary_name":"incus-agent"},{"binary_version":"6.0.5-8ubuntu0.26.04.1~esm1","binary_name":"incus-base"},{"binary_name":"incus-client","binary_version":"6.0.5-8ubuntu0.26.04.1~esm1"},{"binary_name":"incus-extra","binary_version":"6.0.5-8ubuntu0.26.04.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-33897.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}