Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/lxc/incus/v6
  4. ›
  5. CVE-2026-23953

CVE-2026-23953: Incus container environment configuration newline injection

January 22, 2026 (updated January 23, 2026)

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 the newline injection. This can allow adding arbitrary lifecycle hooks, ultimately resulting in arbitrary command execution on the host.

References

  • github.com/advisories/GHSA-x6jc-phwx-hp32
  • github.com/lxc/incus
  • github.com/lxc/incus/blob/HEAD/internal/server/instance/drivers/driver_lxc.go
  • github.com/lxc/incus/security/advisories/GHSA-x6jc-phwx-hp32
  • github.com/user-attachments/files/24473682/environment_newline_injection.sh
  • github.com/user-attachments/files/24473685/environment_newline_injection.patch
  • nvd.nist.gov/vuln/detail/CVE-2026-23953

Code Behaviors & Features

Detect and mitigate CVE-2026-23953 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 6.0.5, all versions starting from 6.1.0 up to 6.20.0

Solution

Unfortunately, there is no solution available yet.

Impact 8.7 HIGH

CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection')

Source file

go/github.com/lxc/incus/v6/CVE-2026-23953.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 04 Feb 2026 00:35:12 +0000.