# CVE-2026-23954: Incus container image templating arbitrary host file read and write

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 6.21.0 (CNA); fix release not confirmed
- Status: published
- Published: 2026-01-22 · Modified: 2026-01-26
- Aliases: UBUNTU-CVE-2026-23954, DEBIAN-CVE-2026-23954, GHSA-7f67-crqm-jgh7, GO-2026-4357, ALPINE-CVE-2026-23954
- Record: https://cvemate.com/vulnerability/CVE-2026-23954 · JSON: https://cvemate.com/vulnerability/CVE-2026-23954/json

## Description

```text
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.
```

## Signals

- CVSS: 8.7 high (v3.1, CVE.org) CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
- EPSS: 0.781%, percentile 57.309%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 2 (github)

## Affected

- alpine incus (Alpine Linux): ≥ 6.1.0, \< 6.0.5-r6 \| \< 6.0.5-r6
- alpine incus-feature (Alpine Linux): \< 6.21.0-r0
- debian incus (Debian): \< 6.0.4-2+deb13u4 \| \< 6.0.5-8
- debian lxd (Debian): All versions (No fix recorded) \| \< 5.0.2+git20231211.1364ae4-9+deb13u3
- ubuntu incus (Ubuntu): All versions (No fix recorded)
- ubuntu lxd (Ubuntu): All versions (No fix recorded)
- github.com/lxc incus (Go): All versions (No fix recorded)
- github.com/lxc/incus v6 (Go): ≥ 6.1.0 (No fix recorded)
- github.com/lxc/incus/v6/cmd incusd (Go): All versions (No fix recorded)
- linuxcontainers incus: ≤ 6.0.5 \| ≥ 6.1.0, \< 6.21.0
- lxc incus: ≥ 6.1.0, ≤ 6.20.0 \| ≤ 6.0.5

## References

- <https://github.com/lxc/incus/security/advisories/GHSA-7f67-crqm-jgh7>
- <https://github.com/lxc/incus/blob/HEAD/internal/server/instance/drivers/driver_lxc.go#L7215>
- <https://github.com/lxc/incus/blob/HEAD/internal/server/instance/drivers/driver_lxc.go#L7294>
- <https://github.com/user-attachments/files/24473599/template_arbitrary_write.sh>
- <https://github.com/user-attachments/files/24473601/templates_arbitrary_write.patch>
- <https://ubuntu.com/security/CVE-2026-23954>
- <https://www.cve.org/CVERecord?id=CVE-2026-23954>
- <https://security-tracker.debian.org/tracker/CVE-2026-23954>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-23954>
- <https://github.com/lxc/incus>
- <https://security.alpinelinux.org/vuln/CVE-2026-23954>

---

Data as of 2026-12-05T06:22:18.739Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
