Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-23953

Incus container environment configuration newline injection
Back to all
CVE

CVE-2026-23953

Incus container environment configuration newline injection

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.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
8.7
-
3.1
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
C
H
U
0
-
3.1
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
C
H
U
-

Related Resources

No items found.

References

https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23953.json, https://github.com/lxc/incus/blob/HEAD/internal/server/instance/drivers/driverlxc.go#L1081, https://github.com/lxc/incus/security/advisories/GHSA-x6jc-phwx-hp32, https://github.com/user-attachments/files/24473682/environmentnewlineinjection.sh, https://github.com/user-attachments/files/24473685/environmentnewline_injection.patch, https://nvd.nist.gov/vuln/detail/CVE-2026-23953

Severity

8.7

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
8.7
EPSS Probability
0.00019%
EPSS Percentile
0.04672%
Introduced Version
38d0bc57d4ae8926b0adfad475f2d4ca70a1c734,0
Fix Available
5.0.2-5+deb12u3,6.0.4-2+deb13u4,5.0.2+git20231211.1364ae4-9+deb13u3,6.21.0-r0,6.0.5-r6

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading