# CVE-2026-23953: Incus container environment configuration newline injection

- 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-23953, DEBIAN-CVE-2026-23953, GHSA-x6jc-phwx-hp32, GO-2026-4359, ALPINE-CVE-2026-23953
- Record: https://cvemate.com/vulnerability/CVE-2026-23953 · JSON: https://cvemate.com/vulnerability/CVE-2026-23953/json

## Description

```text
Incus is a system container and virtual machine manager. In versions 6.20.0 and below, a user with the ability to launch a container with a custom YAML configuration (e.g a member of the ‘incus’ group) can create an environment variable containing newlines, which can be used to add additional configuration items in the container’s lxc.conf due to newline injection. This can allow adding arbitrary lifecycle hooks, ultimately resulting in arbitrary command execution on the host. Exploiting this issue on IncusOS requires a slight modification of the payload to change to a different writable directory for the validation step (e.g /tmp). This can be confirmed with a second container with /tmp mounted from the host (A privileged action for validation only). 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.49%, percentile 43.783%, 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.21.0 \| ≥ 6.1.0 (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-x6jc-phwx-hp32>
- <https://github.com/lxc/incus/blob/HEAD/internal/server/instance/drivers/driver_lxc.go#L1081>
- <https://github.com/user-attachments/files/24473682/environment_newline_injection.sh>
- <https://github.com/user-attachments/files/24473685/environment_newline_injection.patch>
- <https://ubuntu.com/security/CVE-2026-23953>
- <https://www.cve.org/CVERecord?id=CVE-2026-23953>
- <https://security-tracker.debian.org/tracker/CVE-2026-23953>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-23953>
- <https://github.com/lxc/incus>
- <https://security.alpinelinux.org/vuln/CVE-2026-23953>

---

Data as of 2026-12-05T05:32:20.823Z. 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
