All vulnerabilities

Servers and applications

GHSA-hw96-p258-g4jg

Instance and image environment variables reach the root container start helper

Severity
Critical 9.9
Published
27 Nov 2026
Last changed
27 Nov 2026
Added to UpHeron
27 Nov 2026
Fixed in
7.7.0
Weakness
CWE-426
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Sources
Project advisories (GitHub)

Description

Every variable from an instance's environment.* configuration keys, and from an OCI image's Env, is merged into the process environment of the privileged helper that starts a container, not only into the container's own environment. Only variables that influence the dynamic loader are withheld.

PATH is among those passed through, and an instance- or image-supplied value takes precedence over the daemon's own. The helper's container start path resolves its privileged id-mapping helpers through PATH and accepts the first match carrying the setuid bit, without checking its owner, so a caller that owns a file on a directory it names obtains execution as root on the host. Where the host's /bin/sh is bash, a shell function exported through the environment achieves the same with no file at all.

environment.* is not treated as a low-level configuration option, so it can be set by a restricted client in a restricted project, and by a local user of incus-user, on a container they own.

From lxc/incus's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
IncusServers and applications · github:lxc/incus
  • Every version before 7.7.0

About Incus

container manager for system containers

From Wikidata, CC0 1.0.
GitHub stars
6,771GitHub, 29 Nov 2026
Forks
535GitHub, 29 Nov 2026
Latest release
v7.7.0GitHub, 29 Nov 2026
Released
27 Nov 2026GitHub
Developer
Linux ContainersWikidata
License
Apache License 2.0Wikidata
Written in
GoWikidata
First released
7 Aug 2023Wikidata
First published on GitHub
22 Jul 2023GitHub

References