{"answers":{"affected":"5 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-40251 exists.","fix":"Upgrade github.com/lxc/incus/v6/cmd/incusd to 7.0.0 or later.","what":"CVE-2026-40251 is a high-severity denial of service vulnerability in lxc incus, published on 6 May 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-40251 and fix it if it is affected.\n\nWhat it is: CVE-2026-40251 is a high-severity denial of service vulnerability in lxc incus, published on 6 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40251 exists.\n\nAffected packages and fixed versions:\n- github.com/lxc/incus/v6/cmd/incusd (Go): affected all versions; fixed in 7.0.0\n- github.com/lxc/incus/v6/cmd/incusd (Go): affected all versions; fixed in 7.0.0\n- github.com/lxc/incus (Go): affected all versions; no fix listed\n- github.com/lxc/incus/v6 (Go): affected all versions; no fix listed\n- github.com/lxc/incus/v7 (Go): affected all versions; fixed in 7.0.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-40251/ (Markdown: https://insights.sbomify.com/CVE-2026-40251/index.md)","id":"CVE-2026-40251","markdown":"https://insights.sbomify.com/CVE-2026-40251/index.md","name":"CVE-2026-40251","record":{"aliases":["DEBIAN-CVE-2026-40251","GHSA-4m88-wxj4-9qj6","GO-2026-5127","UBUNTU-CVE-2026-40251"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Incus container manager","requires_auth":"low_privilege","summary":"An authenticated user can crash the Incus daemon by submitting a malformed backup archive, causing a denial of service.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"incus","vendor":"linuxcontainers"}],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-129","name":"Improper Validation of Array Index"}],"description":"Incus is a system container and virtual machine manager. In versions before 7.0.0, missing validation logic in the storage volume import logic allows an authenticated user with access to the storage volume feature to cause the Incus daemon to crash. The backup restore subsystem contains an out-of-bounds panic vulnerability caused by an invalid bounds check when indexing snapshot metadata arrays, and the same flawed pattern also appears in the migration path. When iterating through physical snapshots provided in a backup archive, the loop uses the index to look up corresponding metadata in the parsed `Config.Snapshots` and `Config.VolumeSnapshots` slices. The guard condition `len(slice) \u003e= i-1` is incorrect because it can still evaluate to true when the subsequent slice[i] access is out of bounds.\n\nAn attacker can submit a backup archive that contains physical snapshot directories while supplying a tampered `index.yaml` with an empty or truncated snapshot metadata array, causing the daemon to index beyond the end of the metadata slice and crash. Repeated use of this issue can be used to keep Incus offline, causing a denial of service. This issue is fixed in version 7.0.0.","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 out-of-bounds panic in snapshot metadata handling allows denial of service","id":"CVE-2026-40251","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":5,"n_references":2,"next":{"headline":"Broken Access Control (IDOR) Leading to Cross-Tenant Application Access in FastGPT","id":"CVE-2026-40252"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/lxc/incus","purl":"pkg:golang/github.com/lxc/incus","source":"GO-2026-5127"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/lxc/incus/v6","purl":"pkg:golang/github.com/lxc/incus/v6","source":"GO-2026-5127"},{"ecosystem":"Go","fixed":["7.0.0"],"introduced":["0"],"last_affected":[],"package":"github.com/lxc/incus/v6/cmd/incusd","purl":null,"source":"GHSA-4m88-wxj4-9qj6"},{"ecosystem":"Go","fixed":["7.0.0"],"introduced":["0"],"last_affected":[],"package":"github.com/lxc/incus/v6/cmd/incusd","purl":"pkg:golang/github.com/lxc/incus/v6/cmd/incusd","source":"GHSA-4m88-wxj4-9qj6"},{"ecosystem":"Go","fixed":["7.0.0"],"introduced":["0"],"last_affected":[],"package":"github.com/lxc/incus/v7","purl":"pkg:golang/github.com/lxc/incus/v7","source":"GO-2026-5127"}],"prev":{"headline":"OpenEXR has integer overflow in DWA decoder outBufferEnd pointer arithmetic (missed variant of CVE-2026-34589)","id":"CVE-2026-40250"},"products":["incus"],"published":"2026-05-06","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.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":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-07","vendors":["lxc"]},"summary":"An authenticated user can crash the Incus daemon by submitting a malformed backup archive, causing a denial of service.","url":"https://insights.sbomify.com/CVE-2026-40251/"}