{"answers":{"affected":"4 open source packages ship an affected version, including github.com/lxc/incus/v6/cmd/incusd, github.com/lxc/incus and github.com/lxc/incus/v6. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-23954 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2026-23954 is a high-severity path traversal vulnerability in lxc incus, published on 22 Jan 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-23954 and fix it if it is affected.\n\nWhat it is: CVE-2026-23954 is a high-severity path traversal vulnerability in lxc incus, published on 22 Jan 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-23954 exists.\n\nAffected packages and fixed versions:\n- github.com/lxc/incus/v6/cmd/incusd (Go): affected all versions; no fix listed\n- github.com/lxc/incus/v6/cmd/incusd (Go): affected all versions; no fix listed\n- github.com/lxc/incus (Go): affected all versions; no fix listed\n- github.com/lxc/incus/v6 (Go): affected from 6.1.0; no fix listed\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-23954/ (Markdown: https://insights.sbomify.com/CVE-2026-23954/index.md)","id":"CVE-2026-23954","markdown":"https://insights.sbomify.com/CVE-2026-23954/index.md","name":"CVE-2026-23954","record":{"aliases":["DEBIAN-CVE-2026-23954","GHSA-7f67-crqm-jgh7","GO-2026-4357","UBUNTU-CVE-2026-23954"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["code_execution","data_read","data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Incus container manager","requires_auth":"low_privilege","summary":"Attackers with container launch privileges can exploit path traversal in image templating to read/write host files and execute arbitrary commands.","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":8.7,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Incus is a system container and virtual machine manager. Versions 6.21.0 and below allow a user with the ability to launch a container with a custom image (e.g a member of the ‘incus’ group) to use directory traversal or symbolic links in the templating functionality to achieve host arbitrary file read, and host arbitrary file write. This ultimately results in arbitrary command execution on the host. When using an image with a metadata.yaml containing templates, both the source and target paths are not checked for symbolic links or directory traversal. This can also be exploited in IncusOS. A fix is planned for versions 6.0.6 and 6.21.0, but they have not been released at the time of publication.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Incus container image templating arbitrary host file read and write","id":"CVE-2026-23954","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":4,"n_references":5,"next":{"headline":"EVerest vulnerable to concatenation of strings literal and integers","id":"CVE-2026-23955"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/lxc/incus","purl":"pkg:golang/github.com/lxc/incus","source":"GO-2026-4357"},{"ecosystem":"Go","fixed":[],"introduced":["6.1.0"],"last_affected":[],"package":"github.com/lxc/incus/v6","purl":"pkg:golang/github.com/lxc/incus/v6","source":"GO-2026-4357"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/lxc/incus/v6/cmd/incusd","purl":null,"source":"GHSA-7f67-crqm-jgh7"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/lxc/incus/v6/cmd/incusd","purl":"pkg:golang/github.com/lxc/incus/v6/cmd/incusd","source":"GHSA-7f67-crqm-jgh7"}],"prev":{"headline":"Incus container environment configuration newline injection","id":"CVE-2026-23953"},"products":["incus"],"published":"2026-01-22","related":[{"cvss_score":10,"headline":"Incus vulnerable to arbitrary file read and write through pongo templates","id":"CVE-2026-33897","kev_date_added":null,"published":"2026-03-26"},{"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.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":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-01-26","vendors":["lxc"]},"summary":"Attackers with container launch privileges can exploit path traversal in image templating to read/write host files and execute arbitrary commands.","url":"https://insights.sbomify.com/CVE-2026-23954/"}