CVE-2026-33897
Incus vulnerable to arbitrary file read and write through pongo templates
Also known as GHSA-83xr-5xxr-mh92, GO-2026-4881
Mitigation
- Upgrade github.com/lxc/incus/v6 to 6.23.0 or later.
Who should check
- Projects that depend on Go package github.com/lxc/incus/v6 (< 6.23.0)
- Projects that depend on Go package github.com/lxc/incus (<= 0.7.0)
- Anyone running lxc incus < 6.23.0
Vulnerability facts
- Affected
- github.com/lxc/incus/v6 < 6.23.0; github.com/lxc/incus <= 0.7.0
- Fixed in
- 6.23.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 10.0 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.61% chance of exploitation in 30 days (percentile 44, 2026-11-26)
- CWE
- CWE-1336
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/lxc/incus/v6 | < 6.23.0 | 6.23.0 | osv |
| Go github.com/lxc/incus | <= 0.7.0 | — | osv |
| lxc incus | < 6.23.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-33897. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-33897.md Affected: github.com/lxc/incus/v6 < 6.23.0; github.com/lxc/incus <= 0.7.0 Fixed in: 6.23.0 Steps: 1. Search this machine and project for github.com/lxc/incus/v6 (Go), github.com/lxc/incus (Go), lxc incus: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2026-33897 being exploited?
There is no confirmed exploitation: CVE-2026-33897 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.61% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-33897?
Critical: CVSS 10.0 (v3.1, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2026-33897?
github.com/lxc/incus/v6 < 6.23.0; github.com/lxc/incus <= 0.7.0.
Is there a fix for CVE-2026-33897?
Yes. Fixed in 6.23.0. Upgrade github.com/lxc/incus/v6 to 6.23.0 or later.
How do I check if I'm affected by CVE-2026-33897?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.