# CVE-2026-41684: Incus: Nil Dereferences on Restore via Malformed YAML

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 33% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-04T19:45:23.000Z
- Modified: 2026-10-26T20:10:00.160Z
- Also known as: GHSA-x5r6-jr56-89pv, GO-2026-5742
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Incus is a system container and virtual machine manager. Prior to version 7.0.0, backup.GetInfo() trusts the inline backup/index.yaml config when present and only falls back to parsing the legacy backup/container/backup.yaml file if result.Config == nil. As a result, an archive can carry a valid inline config that passes the initial import preflight while also carrying a malformed legacy backup/container/backup.yaml file that is reparsed later from the restored file system. ParseConfigYamlFile() accepts YAML documents with no container section, and multiple downstream consumers then dereference. Container without checking for nil. Confirmed examples in the instance restore and import flow include backup.UpdateInstanceConfig() and internalImportFromBackup(). An authenticated user with permission to import instance backups may be able to crash the Incus daemon with a crafted backup archive whose inline backup/index.yaml is valid but whose extracted legacy backup.yaml omits container. The crash occurs in the restore path after archive extraction has begun. This issue has been patched in version 7.0.0.

(As written by CVE List.)

## Affected

- lxc incus: < 7.0.0
- github.com/lxc/incus/v6/cmd/incusd (Go): up to 6.23.0
- github.com/lxc/incus (Go): all versions
- github.com/lxc/incus/v6 (Go): all versions
- linuxcontainers incus: before 7.0.0

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/lxc/incus/security/advisories/GHSA-x5r6-jr56-89pv> (exploit, advisory, mitigation, vendor-advisory, web)
- <https://github.com/lxc/incus/releases/tag/v7.0.0> (patch, product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41684> (advisory)
- <https://github.com/lxc/incus> (package)

## Sources

- CVE List: [CVE-2026-41684](https://www.cve.org/CVERecord?id=CVE-2026-41684), CVE Terms of Use, modified 2026-05-07
- GitHub Advisory Database: [GHSA-x5r6-jr56-89pv](https://github.com/advisories/GHSA-x5r6-jr56-89pv), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5742](https://pkg.go.dev/vuln/GO-2026-5742), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-41684](https://nvd.nist.gov/vuln/detail/CVE-2026-41684), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-41684 · Whole record: https://cve.day/CVE-2026-41684.json · Rebuilt by cve.day 2026-11-25T22:59:20.883Z
