Summary
Incus versions before 7.6.0 allow LXC directives to be injected through OCI image configuration values. The source assigns a CVSS 4.0 score of 9.4 and critical severity.
What happened
Incus before 7.6.0 contains a configuration injection vulnerability (CWE-74). Users who can launch instances from controlled images can inject LXC directives by embedding line breaks in OCI config.json values or in the oci.entrypoint and oci.cwd keys. According to the description, this allows adding liblxc hooks or crafted tmpfs lxc.mount.entry fields, which can be used to run commands as root on the host or bind-mount host paths, even from restricted projects.
Why it matters
The description states the flaw allows running commands as root on the host and accessing host paths from restricted projects, going beyond the intended isolation boundaries. The source assigns a CVSS 4.0 score of 9.4 (CNA: VulnCheck; vector CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H) and critical severity. CISA's KEV catalog does not list it as actively exploited.
Affected products and versions
incus (vendor: lxc): versions before 7.6.0 affected (< 7.6.0). Version 7.6.0 is listed as unaffected.
| Product | Versions | Fixed in |
|---|---|---|
| lxc incus | < 7.6.0 | — |
| lxc incus | 7.6.0 | 7.6.0 |
Action recommended by the source
The source lists version 7.6.0 as unaffected, so the vendor presents it as the fixed version. No other mitigations are stated. More details in the vendor advisory: https://github.com/lxc/incus/security/advisories/GHSA-3wxw-5gh2-j2x2
Fixed in: 7.6.0
Sources and references
Weaknesses (CWE): CWE-74
Relevant change history
Published
Advisory published.