{"id":"CVE-2026-23953","published":"2026-01-22T21:39:41Z","modified":"2026-01-26T21:00:46Z","title":"Incus container environment configuration newline injection","vendor":"lxc","product":"incus","tier":"tail","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\nand 6.21.0, but they have not been released at the time of publication.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00508,"percentile":0.36641,"provenance":"source"},"cwes":[{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"}],"references":[{"url":"https://github.com/lxc/incus/security/advisories/GHSA-x6jc-phwx-hp32","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/lxc/incus/blob/HEAD/internal/server/instance/drivers/driver_lxc.go#L1081","tags":["x_refsource_MISC"]},{"url":"https://github.com/user-attachments/files/24473682/environment_newline_injection.sh","tags":["x_refsource_MISC"]},{"url":"https://github.com/user-attachments/files/24473685/environment_newline_injection.patch","tags":["x_refsource_MISC"]}],"priority":{"score":13.4,"factors":[{"name":"EPSS percentile","points":7.33},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"lxc","affectedVersions":[{"vendor":"lxc","product":"incus","versions":[">= 6.1.0, <= 6.20.0","<= 6.0.5"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-01-26T21:00:32.625486Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/lxc/incus/v6","vulnerableRanges":["<6.21.0",">=6.1.0"],"patched":["6.21.0"],"from":["GHSA-x6jc-phwx-hp32","GO-2026-4359"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/lxc/incus","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2026-4359"],"provenance":"source"}],"summary":{"text":"A flaw in Incus, the system container and virtual machine manager from lxc, lets a newline-injection bug in the handling of container environment variables added through custom YAML configuration insert extra entries into the container's lxc.conf. An attacker who can launch a container with that custom configuration, such as a user in the incus group, needs only local low-privilege access with no user interaction and can use it to add arbitrary lifecycle hooks that run commands on the host.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:10Z"},"euvd":{"id":"EUVD-2026-3804","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-52889","published":"2025-06-25","fixed":"6.14.0","kev":false},{"cve":"CVE-2025-52890","published":"2025-06-25","fixed":"6.14.0","kev":false},{"cve":"CVE-2025-64507","published":"2025-11-10","fixed":"6.19.0","kev":false,"link":{"from":"CVE-2025-64507","to":"CVE-2026-23953","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/lxc/incus/v6","fromFixed":"6.19.0","toFixed":"6.21.0","daysApart":73}]}},{"cve":"CVE-2026-23953","published":"2026-01-22","fixed":"6.21.0","kev":false},{"cve":"CVE-2026-33542","published":"2026-03-26","fixed":"6.23.0","kev":false},{"cve":"CVE-2026-33711","published":"2026-03-26","fixed":"6.23.0","kev":false},{"cve":"CVE-2026-33743","published":"2026-03-26","fixed":"6.23.0","kev":false}],"package":"Go:github.com/lxc/incus/v6"}}