Advisory

GHSA-83xr-5xxr-mh92

Also known as: CVE-2026-33897, GO-2026-4881

Summary

Incus vulnerable to arbitrary file read and write through pongo templates

Details

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

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-03-27 17:17 UTC
Modified
2026-04-07 15:26 UTC

Affected packages and fixes

github.com/lxc/incus/v6

Go · All systems

Affected

  • introduced 0, fixed 6.23.0 (semver)

Fixed versions

6.23.0

Fix

github.com/lxc/incus

Go · All systems

Affected

  • introduced 0, last affected 0.7.0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences