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

- Severity: High 8.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N`
- 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.78%, higher than 57% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2026-01-22T20:26:10.000Z
- Modified: 2026-06-17T10:22:20.753Z
- Also known as: GHSA-7f67-crqm-jgh7, GO-2026-4357
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- lxc incus: >= 6.1.0, <= 6.20.0; <= 6.0.5
- github.com/lxc/incus/v6/cmd/incusd (Go): all versions
- github.com/lxc/incus (Go): all versions
- github.com/lxc/incus/v6 (Go): from 6.1.0
- linuxcontainers incus: up to 6.0.5; from 6.1.0 before 6.21.0

## Every score

- GitHub_M: CVSS:3.1 8.7 High `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.7 High `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N`

## References

- <https://github.com/lxc/incus/security/advisories/GHSA-7f67-crqm-jgh7> (exploit, advisory, vendor-advisory, web)
- <https://github.com/user-attachments/files/24473599/template_arbitrary_write.sh> (exploit, web)
- <https://github.com/lxc/incus/blob/HEAD/internal/server/instance/drivers/driver_lxc.go#L7215> (product, web)
- <https://github.com/lxc/incus/blob/HEAD/internal/server/instance/drivers/driver_lxc.go#L7294> (product, web)
- <https://github.com/user-attachments/files/24473601/templates_arbitrary_write.patch> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-23954> (advisory)
- <https://github.com/lxc/incus> (package)

## Sources

- CVE List: [CVE-2026-23954](https://www.cve.org/CVERecord?id=CVE-2026-23954), CVE Terms of Use, modified 2026-01-26
- GitHub Advisory Database: [GHSA-7f67-crqm-jgh7](https://github.com/advisories/GHSA-7f67-crqm-jgh7), CC-BY-4.0, modified 2026-03-27
- Go Vulnerability Database: [GO-2026-4357](https://pkg.go.dev/vuln/GO-2026-4357), CC-BY-4.0, modified 2026-02-05
- NVD: [CVE-2026-23954](https://nvd.nist.gov/vuln/detail/CVE-2026-23954), Public domain, modified 2026-06-17

---

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