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

CVE-2026-23954: Incus container image templating arbitrary host file read and write

January 22, 2026 (updated January 23, 2026)

A user with the ability to launch a container with a custom image (e.g a member of the ‘incus’ group) can use directory traversal or symbolic links in the templating functionality to achieve host arbitrary file read, and host arbitrary file write, ultimately resulting in arbitrary command execution on the host. This can also be exploited in IncusOS.

References

  • github.com/advisories/GHSA-7f67-crqm-jgh7
  • github.com/lxc/incus
  • github.com/lxc/incus/blob/HEAD/internal/server/instance/drivers/driver_lxc.go
  • github.com/lxc/incus/blob/HEAD/internal/server/instance/drivers/driver_lxc.go
  • github.com/lxc/incus/security/advisories/GHSA-7f67-crqm-jgh7
  • github.com/user-attachments/files/24473599/template_arbitrary_write.sh
  • github.com/user-attachments/files/24473601/templates_arbitrary_write.patch
  • nvd.nist.gov/vuln/detail/CVE-2026-23954

Code Behaviors & Features

Detect and mitigate CVE-2026-23954 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-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

go/github.com/lxc/incus/v6/cmd/incusd/CVE-2026-23954.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:51 +0000.