IncusApplication · Linuxcontainers

CVE-2026-33897

CRITICAL · 9.9 CVSS v3.1 Published 2026-03-26
Fix available
A fix is available. Upgrade to 6.23.0 or later.
See remediation →
100/100
Remediation priority · Urgent
Remotely reachable Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

Incus prior to 6.23.0 contains a critical vulnerability where pongo2 template engine, intended to be chroot-isolated to the instance filesystem, completely bypasses this isolation mechanism. This allows any user with template access to read or write arbitrary files on the host filesystem with root privileges.

MitigationUpgrade Incus to version 6.23.0 or later to patch the pongo2 chroot bypass. If immediate upgrade is not possible, restrict or disable instance templates until the patch can be applied.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
IncusApplication
Affected:< 6.23.0

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Determine installed Incus version
    Run 'incus version' or 'incusd --version' to retrieve the installed Incus version number
    Affected if The version displayed is earlier than 6.23.0 (e.g., 6.22.0, 6.21.0, etc.)
  2. Identify configured instance templates
    Run 'incus config template list <instance-name>' for each instance, or check for template files in /var/lib/incus/storage-pools/*/containers/*/templates/ or similar template directories
    Affected if One or more instance templates exist, particularly those using pongo2 syntax
  3. Check template file permissions and ownership
    Examine template files for ownership by root and verify which Incus users or groups have read access to the templates directory
    Affected if Templates are readable by non-root Incus users or the incus-user group, indicating template access is granted to authenticated users
  4. Verify if template processing is invoked
    Review Incus logs (journalctl -u incus or /var/log/incus/) for template-related operations such as 'incus config edit' triggering template generation, or check if instances use custom templates for cloud-init or similar
    Affected if Template processing has been executed on any instance, suggesting the vulnerable code path was reached
  5. Audit recent template-related operations
    Search Incus audit logs or system logs for file operations originating from template contexts that may indicate exploitation, such as unusual file reads/writes outside expected container paths
    Affected if Template operations have accessed paths outside the expected container filesystem (e.g., /hostfs/ or absolute paths on the host)

The environment is affected if Incus version is earlier than 6.23.0 AND instance templates configured with pongo2 processing are accessible to authenticated users, allowing potential chroot bypass exploitation.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 6.23.0 or later
Fixed in 6.23.0
Interim mitigation

Upgrade Incus to version 6.23.0 or later to patch the pongo2 chroot bypass. If immediate upgrade is not possible, restrict or disable instance templates until the patch can be applied.

Recommended fix High confidence

6.23.0

  1. Check the current Incus version using 'incus version' or 'incus admin info'
  2. Consult the official Incus 6.23.0 release notes at github.com for specific upgrade instructions
  3. Use the appropriate package manager to upgrade Incus (e.g., 'apt update && apt install incus' for Debian/Ubuntu, or 'snap refresh incus' for snap installations)
  4. After upgrade, verify the new version is 6.23.0 or later using 'incus version'
  5. Test that container and VM operations still function correctly after the upgrade
Caveat Review the 6.23.0 release notes for any potential breaking changes before upgrading production systems

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Incus Scoped from the published advisory
  • Consultation4.0 h
  • Implementation2.0 h
  • Testing6.0 h
  • Review / QA3.0 h
15.0 hours of engineering $2,600
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,160.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-33897 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-33897 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data