{"answers":{"affected":"6 open source packages ship an affected version, including github.com/lxc/incus and github.com/lxc/incus/v6. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-33897 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2026-33897 is a critical path traversal vulnerability in lxc incus, published on 26 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-33897 and fix it if it is affected.\n\nWhat it is: CVE-2026-33897 is a critical path traversal vulnerability in lxc incus, published on 26 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-33897 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/lxc/incus (Go): affected all versions; no fix listed\n- github.com/lxc/incus (Go): affected all versions up to 0.7.0; no fix listed\n- github.com/lxc/incus (Go): affected all versions up to 0.7.0; no fix listed\n- github.com/lxc/incus/v6 (Go): affected all versions; fixed in 6.23.0\n- github.com/lxc/incus/v6 (Go): affected all versions; fixed in 6.23.0\n- github.com/lxc/incus/v6 (Go): affected all versions; fixed in 6.23.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-33897/ (Markdown: https://insights.sbomify.com/CVE-2026-33897/index.md)","id":"CVE-2026-33897","markdown":"https://insights.sbomify.com/CVE-2026-33897/index.md","name":"CVE-2026-33897","record":{"aliases":["DEBIAN-CVE-2026-33897","GHSA-83xr-5xxr-mh92","GO-2026-4881","UBUNTU-CVE-2026-33897"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Incus container manager","requires_auth":"low_privilege","summary":"Attackers can exploit pongo2 templates to bypass chroot isolation, enabling arbitrary file read and write as root on the host system.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"incus","vendor":"linuxcontainers"}],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"description":"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Incus vulnerable to arbitrary file read and write through pongo templates","id":"CVE-2026-33897","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":6,"n_references":1,"next":{"headline":"Local Incus UI web server vulnerable to nuthentication bypass","id":"CVE-2026-33898"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/lxc/incus","purl":"pkg:golang/github.com/lxc/incus","source":"GO-2026-4881"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["0.7.0"],"package":"github.com/lxc/incus","purl":null,"source":"GHSA-83xr-5xxr-mh92"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["0.7.0"],"package":"github.com/lxc/incus","purl":"pkg:golang/github.com/lxc/incus","source":"GHSA-83xr-5xxr-mh92"},{"ecosystem":"Go","fixed":["6.23.0"],"introduced":["0"],"last_affected":[],"package":"github.com/lxc/incus/v6","purl":null,"source":"GHSA-83xr-5xxr-mh92"},{"ecosystem":"Go","fixed":["6.23.0"],"introduced":["0"],"last_affected":[],"package":"github.com/lxc/incus/v6","purl":"pkg:golang/github.com/lxc/incus/v6","source":"GHSA-83xr-5xxr-mh92"},{"ecosystem":"Go","fixed":["6.23.0"],"introduced":["0"],"last_affected":[],"package":"github.com/lxc/incus/v6","purl":"pkg:golang/github.com/lxc/incus/v6","source":"GO-2026-4881"}],"prev":{"headline":"Forge has a basicConstraints bypass in its certificate chain verification (RFC 5280 violation)","id":"CVE-2026-33896"},"products":["incus"],"published":"2026-03-26","related":[{"cvss_score":10,"headline":"Abitrary file write through systemd-creds option","id":"CVE-2026-33945","kev_date_added":null,"published":"2026-03-26"},{"cvss_score":8.8,"headline":"Local Incus UI web server vulnerable to nuthentication bypass","id":"CVE-2026-33898","kev_date_added":null,"published":"2026-03-26"},{"cvss_score":8.7,"headline":"Incus container environment configuration newline injection","id":"CVE-2026-23953","kev_date_added":null,"published":"2026-01-22"},{"cvss_score":8.7,"headline":"Incus container image templating arbitrary host file read and write","id":"CVE-2026-23954","kev_date_added":null,"published":"2026-01-22"},{"cvss_score":8.6,"headline":"Incus vulnerable to local privilege escalation through custom storage volumes","id":"CVE-2025-64507","kev_date_added":null,"published":"2025-11-10"},{"cvss_score":7.1,"headline":"Incus nil-pointer dereference in storage bucket import allows denial of service","id":"CVE-2026-40195","kev_date_added":null,"published":"2026-05-06"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-03-27","vendors":["lxc"]},"summary":"Attackers can exploit pongo2 templates to bypass chroot isolation, enabling arbitrary file read and write as root on the host system.","url":"https://insights.sbomify.com/CVE-2026-33897/"}