Skip to content

CVE-2026-23953 Incus container environment configuration newline injection

HighCVSS 8.7 EPSS 0.49%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
UbuntuDebian

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.

Upgrade path

13 packages: 8 fixed, 1 partially fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
debian/lxd(Debian 12) = 5.0.2+git20231211.1364ae4-1; = 5.0.2+git20231211.1364ae4-2; = 5.0.2+git20231211.1364ae4-3; = 5.0.2+git20231211.1364ae4-4 +14 more No fix listed No fix yet
ubuntu/incus(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/incus(Ubuntu 26.04) All versions No fix listed No fix yet
lxc incus(Go) < 6.21.0; >= 6.1.0; All versions 6.21.0 Partially fixed
alpine/incus(Alpine v3.23) < 6.0.5-r6 6.0.5-r6 Fixed
alpine/incus(Alpine v3.24) < 6.0.5-r6 6.0.5-r6 Fixed
alpine/incus-feature(Alpine v3.23) < 6.21.0-r0 6.21.0-r0 Fixed
alpine/incus-feature(Alpine v3.24) < 6.21.0-r0 6.21.0-r0 Fixed
debian/incus(Debian 13) < 6.0.4-2+deb13u4; = 6.0.4-2; = 6.0.4-2+deb13u1; = 6.0.4-2+deb13u1~bpo12+1 +5 more 6.0.4-2+deb13u4 Fixed
debian/incus(Debian 14) < 6.0.5-8; = 6.0.4-2; = 6.0.4-3; = 6.0.5-1 +6 more 6.0.5-8 Fixed
debian/lxd(Debian 13) < 5.0.2+git20231211.1364ae4-9+deb13u3; = 5.0.2+git20231211.1364ae4-9; = 5.0.2+git20231211.1364ae4-9+deb13u1; = 5.0.2+git20231211.1364ae4-9+deb13u2 5.0.2+git20231211.1364ae4-9+deb13u3 Fixed
linuxcontainers incus <= 6.0.5; >= 6.1.0, < 6.21.0 6.21.0 Fixed
lxc incus = <= 6.0.5; = >= 6.1.0, <= 6.20.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
lxc incus(Go) < 6.21.0 6.21.0
lxc incus(Go) All versions No fix listed
lxc incus(Go) >= 6.1.0 No fix listed
lxc incus = >= 6.1.0, <= 6.20.0 No fix listed
lxc incus = <= 6.0.5 No fix listed
debian/incus(Debian:13) < 6.0.4-2+deb13u4 6.0.4-2+deb13u4
debian/incus(Debian:13) = 6.0.4-2 No fix listed
debian/incus(Debian:13) = 6.0.4-2+deb13u1 No fix listed
debian/incus(Debian:13) = 6.0.4-2+deb13u1~bpo12+1 No fix listed
debian/incus(Debian:13) = 6.0.4-2+deb13u2 No fix listed
debian/incus(Debian:13) = 6.0.4-2+deb13u2~bpo12+1 No fix listed
debian/incus(Debian:13) = 6.0.4-2+deb13u3 No fix listed
debian/incus(Debian:13) = 6.0.4-2+deb13u3~bpo12+1 No fix listed
debian/incus(Debian:13) = 6.0.4-2+deb13u4~bpo12+1 No fix listed
debian/incus(Debian:14) < 6.0.5-8 6.0.5-8
debian/incus(Debian:14) = 6.0.4-2 No fix listed
debian/incus(Debian:14) = 6.0.4-3 No fix listed
debian/incus(Debian:14) = 6.0.5-1 No fix listed
debian/incus(Debian:14) = 6.0.5-2 No fix listed
debian/incus(Debian:14) = 6.0.5-3 No fix listed
debian/incus(Debian:14) = 6.0.5-4 No fix listed
debian/incus(Debian:14) = 6.0.5-5 No fix listed
debian/incus(Debian:14) = 6.0.5-6 No fix listed
debian/incus(Debian:14) = 6.0.5-7 No fix listed
debian/lxd(Debian:12) All versions No fix listed
Show 29 more
ProductAffected versionsFixed in
debian/lxd(Debian:12) = 5.0.2+git20231211.1364ae4-1 No fix listed
debian/lxd(Debian:12) = 5.0.2+git20231211.1364ae4-2 No fix listed
debian/lxd(Debian:12) = 5.0.2+git20231211.1364ae4-3 No fix listed
debian/lxd(Debian:12) = 5.0.2+git20231211.1364ae4-4 No fix listed
debian/lxd(Debian:12) = 5.0.2+git20231211.1364ae4-5 No fix listed
debian/lxd(Debian:12) = 5.0.2+git20231211.1364ae4-6 No fix listed
debian/lxd(Debian:12) = 5.0.2+git20231211.1364ae4-7 No fix listed
debian/lxd(Debian:12) = 5.0.2+git20231211.1364ae4-8 No fix listed
debian/lxd(Debian:12) = 5.0.2+git20231211.1364ae4-9 No fix listed
debian/lxd(Debian:12) = 5.0.2-5 No fix listed
debian/lxd(Debian:12) = 5.0.2-5+deb12u1 No fix listed
debian/lxd(Debian:12) = 5.0.2-5+deb12u2 No fix listed
debian/lxd(Debian:12) = 5.0.2-5+deb12u3 No fix listed
debian/lxd(Debian:12) = 5.0.2-5+deb12u4 No fix listed
debian/lxd(Debian:12) = 5.0.2-5+deb12u5 No fix listed
debian/lxd(Debian:12) = 5.0.2-5+deb12u6 No fix listed
debian/lxd(Debian:12) = 5.0.2-6 No fix listed
debian/lxd(Debian:13) < 5.0.2+git20231211.1364ae4-9+deb13u3 5.0.2+git20231211.1364ae4-9+deb13u3
debian/lxd(Debian:13) = 5.0.2+git20231211.1364ae4-9 No fix listed
debian/lxd(Debian:13) = 5.0.2+git20231211.1364ae4-9+deb13u1 No fix listed
debian/lxd(Debian:13) = 5.0.2+git20231211.1364ae4-9+deb13u2 No fix listed
ubuntu/incus(Ubuntu:24.04) All versions No fix listed
ubuntu/incus(Ubuntu:26.04) All versions No fix listed
linuxcontainers incus <= 6.0.5 No fix listed
linuxcontainers incus >= 6.1.0, < 6.21.0 6.21.0
alpine/incus(Alpine:v3.23) < 6.0.5-r6 6.0.5-r6
alpine/incus(Alpine:v3.24) < 6.0.5-r6 6.0.5-r6
alpine/incus-feature(Alpine:v3.23) < 6.21.0-r0 6.21.0-r0
alpine/incus-feature(Alpine:v3.24) < 6.21.0-r0 6.21.0-r0

References