NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Go

CVE-2026-33897: Incus vulnerable to arbitrary file read and write through pongo templates

criticalCVSS 3.1 9.9GHSA-83xr-5xxr-mh92

Summary Instance template files can be used to cause arbitrary read or writes as root on the host server. Details 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.

Published Mar 27, 2026

Affected packages

github.com/lxc/incus/v6

Ecosystem
Go
Affected
< 6.23.0
Fixed in
6.23.0
Check
go list -m github.com/lxc/incus/v6

github.com/lxc/incus

Ecosystem
Go
Affected
<= 0.7.0
Fixed in
No patched version yet
Check
go list -m github.com/lxc/incus

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Summary

Instance template files can be used to cause arbitrary read or writes as root on the host server.

Details

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.

Credit

This issue was discovered and reported by the team at 7asecurity

Credited to grmpyninja, stgraber.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Go vulnerabilities

All Go entries