
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-23953 is a newline injection vulnerability in Incus, a system container and virtual machine manager, that allows authenticated local users to inject arbitrary lifecycle hooks into container configurations, resulting in arbitrary command execution on the host. It affects Incus versions up to and including 6.0.5 (LTS branch) and versions 6.1.0 through 6.20.0. The vulnerability was published on January 22, 2026, with fixes planned for versions 6.0.6 and 6.21.0. It carries a CVSS v3.1 base score of 8.7 (High) (GitHub Advisory, Red Hat Bugzilla).
The root cause is improper neutralization of CRLF sequences (CWE-93) in the initLXC function within internal/server/instance/drivers/driver_lxc.go (around line 1081). When environment variables are passed in a container's config block, their values are not checked for embedded newline characters before being written into the container's lxc.conf file. An attacker can craft a multiline YAML string as an environment variable value (e.g., environment.FOO) that injects additional LXC configuration directives — such as lxc.hook.pre-start — into the generated config file. The fix adds a check that rejects any environment variable key or value containing \n characters before the config item is set (GitHub Advisory, Patch File).
Successful exploitation allows a member of the incus group to break container isolation and execute arbitrary commands as root on the host system, effectively achieving full host compromise. Both confidentiality and integrity of the host are rated High, as an attacker can read sensitive host data and modify the host filesystem or running processes. Availability is not directly impacted. On IncusOS, exploitation requires a minor payload adjustment to use a writable directory such as /tmp for the validation step (GitHub Advisory, Red Hat Bugzilla).
A public proof-of-concept exploit script (environment_newline_injection.sh) is available and was published alongside the advisory, demonstrating arbitrary command execution that writes a file to the host root filesystem (/newline_injection_command_exec_poc) (GitHub Advisory). Exploitation requires low privileges (membership in the incus group) and no user interaction, but is limited to adjacent network access. There is no evidence of in-the-wild exploitation at this time, and the vulnerability is not listed in the CISA KEV catalog. The EPSS score is approximately 0.012–0.032%, indicating a low near-term exploitation probability (GitHub Advisory). The vulnerability was discovered and reported by rmcnamara-snyk (Snyk).
incus group.config:
environment.FOO: |-
abc
lxc.hook.pre-start = /bin/sh -c "id > /newline_injection_command_exec_poc"incus launch images:alpine/edge --ephemeral poc << EOF with the malicious config block, causing Incus to write the injected lxc.hook.pre-start directive into the container's lxc.conf.lxc.hook.pre-start entry and executes the specified command as root on the host./newline_injection_command_exec_poc) was created on the host filesystem with root-owned content, proving arbitrary command execution outside the container (GitHub Advisory)./newline_injection_command_exec_poc) or other host paths by the Incus daemon process; new scripts or binaries placed in /tmp or other writable directories on the host.lxc.hook.pre-start entries in generated lxc.conf files located under /run/incus/./bin/sh, bash, curl, wget) at container start time; processes running as root that are children of the LXC hook execution path.Upgrade Incus to version 6.0.6 (for the 6.0.x LTS branch) or 6.21.0 or later (for the 6.1.x+ branch) as soon as these releases are available. As an interim workaround, restrict membership in the incus group to only fully trusted users, since exploitation requires group membership. Monitor container launch configurations for environment variable values containing newline characters. The patch adds a validation check in driver_lxc.go that returns an error if any environment variable key or value contains \n before writing to lxc.conf (GitHub Advisory, Patch File).
The vulnerability was discovered by rmcnamara-snyk from Snyk and disclosed responsibly to the Incus maintainer stgraber, who published the advisory on January 22, 2026. Snyk published a technical blog post covering this and related Incus vulnerabilities (Snyk Labs). The Hacker Wire covered the disclosure on social media platforms including Mastodon and Bluesky. Downstream distributions including Debian and Fedora have issued security updates for their packaged versions of Incus (Linux Security).
Fix availability across major Linux distributions and their releases.
bookworm
lxd
sid
incus: 6.0.5-8
trixie
lxd: 5.0.2+git20231211.1364ae4-9+deb13u3
bionic (esm-infra)
lxd
devel
incus
focal (esm-apps)
lxd
noble
incus
noble (esm-apps)
incus
resolute
incus
resolute (esm-apps)
incus
xenial (esm-infra-legacy)
lxd
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."