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

- 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.49%, higher than 43% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2026-01-22T20:21:17.000Z
- Modified: 2026-06-17T10:22:20.643Z
- Also known as: GHSA-x6jc-phwx-hp32, GO-2026-4359
- Weaknesses: CWE-93
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- lxc incus: >= 6.1.0, <= 6.20.0; <= 6.0.5
- github.com/lxc/incus/v6 (Go): before 6.21.0; from 6.1.0
- github.com/lxc/incus (Go): all versions
- 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-x6jc-phwx-hp32> (exploit, advisory, vendor-advisory, web)
- <https://github.com/user-attachments/files/24473682/environment_newline_injection.sh> (exploit, web)
- <https://github.com/lxc/incus/blob/HEAD/internal/server/instance/drivers/driver_lxc.go#L1081> (product, web)
- <https://github.com/user-attachments/files/24473685/environment_newline_injection.patch> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-23953> (advisory)
- <https://github.com/lxc/incus> (package)

## Sources

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

---

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