Skip to main content
← All vulnerabilities
CVE-2026-33897GHSA-83XR-5XXR-MH92GO-2026-4881

Incus vulnerable to arbitrary file read and write through pongo templates

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.23.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • lxc incus

    fixed in 6.23.0

  • github.com/lxc/incus/v6Go

    fixed in 6.23.0

  • github.com/lxc/incusGo

    through 0.7.0

  • github.com/lxc/incusGo

    All versions

References 1

GitHub · lxc/incus