All vulnerabilities

Servers and applications

CVE-2026-33897

Arbitrary file read and write through pongo templates

Severity
Critical 9.9
Published
26 Mar 2026
Last changed
17 Jun 2026
Added to UpHeron
1 Nov 2026
Fixed in
6.23.0
Exploit chance
0.5% in the next 30 daysHigher than 43% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Server-side template injection (CWE-1336)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Also known as
GHSA-83xr-5xxr-mh92
Sources
NVD, Project advisories (GitHub)

Description

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.

From lxc/incus's security advisory.

Affected software

SoftwareAffected versions
IncusServers and applications · cpe:a:linuxcontainers:incus
  • Every version before 6.23.0
IncusServers and applications · github:lxc/incus
  • Every version before 6.23.0

About Incus

container manager for system containers

From Wikidata, CC0 1.0.
GitHub stars
6,644GitHub, 15 Nov 2026
Forks
522GitHub, 15 Nov 2026
Latest release
v7.6.0GitHub, 15 Nov 2026
Released
30 Oct 2026GitHub
Developer
Linux ContainersWikidata
License
Apache Software License 2.0Wikidata
Written in
GoWikidata
First released
7 Aug 2023Wikidata
First published on GitHub
22 Jul 2023GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-33897
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-33897
  • GitHub Advisory Database https://github.com/advisories/GHSA-83xr-5xxr-mh92
  • github.com https://github.com/lxc/incus/security/advisories/GHSA-83xr-5xxr-mh92