{"cve":"CVE-2026-23953","nvd":{"published":"2026-01-22T22:16:20.673","modified":"2026-06-17T10:22:20.643","status":"Analyzed","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\nand 6.21.0, but they have not been released at the time of publication.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N","score":8.7},"cwes":["CWE-93"],"references":["https://github.com/lxc/incus/blob/HEAD/internal/server/instance/drivers/driver_lxc.go#L1081","https://github.com/lxc/incus/security/advisories/GHSA-x6jc-phwx-hp32","https://github.com/user-attachments/files/24473682/environment_newline_injection.sh","https://github.com/user-attachments/files/24473685/environment_newline_injection.patch"],"products":["linuxcontainers:incus"],"source":"nvd","synced_at":"2026-10-19T22:21:16.563232421+00:00"},"epss":{"cve":"CVE-2026-23953","score":0.0049,"percentile":0.42192,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-x6jc-phwx-hp32","url":"https://osv.dev/vulnerability/GHSA-x6jc-phwx-hp32","summary":"Incus container environment configuration newline injection","modified":"2026-03-27T22:34:09.180340Z","packages":[{"ecosystem":"Go","name":"github.com/lxc/incus/v6","purl":"pkg:golang/github.com/lxc/incus/v6","ranges":["<6.21.0"],"fixed":["6.21.0"]}]},{"id":"GO-2026-4359","url":"https://osv.dev/vulnerability/GO-2026-4359","summary":"Incus container environment configuration newline injection in github.com/lxc/incus","modified":"2026-02-05T04:41:05.958448Z","packages":[{"ecosystem":"Go","name":"github.com/lxc/incus","purl":"pkg:golang/github.com/lxc/incus","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/lxc/incus/v6","purl":"pkg:golang/github.com/lxc/incus/v6","ranges":[">=6.1.0"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}