CVE-2026-33945 — Vulnerability in github.com/lxc/incus/v6
Incus has an abitrary file write through its systemd-creds options
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.61%). Schedule for your next planned update.
Does your project use an affected github.com/lxc/incus/v6 version?
Paste your go.sum to check it for CVE-2026-33945 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
Incus instances have an option to provide credentials to systemd in the guest. For containers, this is handled through a shared directory. An attacker can use the name of a systemd credential to escape that directory and overwrite arbitrary files on the host system.
This can in turn be used to perform local privilege escalation or cause a DoS.
Details
An attacker can set a configuration key named something like systemd.credential.../../../../../../root/.bashrc to cause Incus to write outside of the credentials directory associated with the container. This makes use of the fact that the Incus syntax for such credentials is systemd.credential.XYZ where XYZ can itself contain more periods.
While it's not possible to read any data this way, it's possible to write to arbitrary files as root, enabling both privilege escalation and denial of service attacks.
Credit
This issue was discovered and reported by the team at 7asecurity
Advisory Timeline
- First published March 27, 2026 (244 days ago).
- Last revised April 7, 2026 — 11 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/lxc/incus/v6@v6.23.0
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Go (1).
| Package | Fixed In |
|---|---|
| github.com/lxc/incus/v6 Go · Affected: All versions | 6.23.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-22Path TraversalMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.9 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
References
Frequently Asked Questions
- What is CVE-2026-33945?
- Incus has an abitrary file write through its systemd-creds options. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.9/10).
- How do I check if my project is affected by CVE-2026-33945?
- CVE-2026-33945 affects github.com/lxc/incus/v6. It has a 0.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-33945 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is a below-median EPSS score — only 43.5% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-48749CRITICAL
Incus has an arbitrary file read+write on host via rootfs/ symlink in malicious image
- CVE-2026-48751CRITICAL
Incus has a restricted project bypass leading to arbitrary command execution
- CVE-2026-48750CRITICAL
Incus has an arbitrary file write on host via `exec-output` symlink in crafted image
- CVE-2026-33897CRITICAL
Incus vulnerable to arbitrary file read and write through pongo templates
- CVE-2026-33898HIGH
Local Incus UI web server vulnerable to nuthentication bypass
- CVE-2025-64507HIGH
Incus vulnerable to local privilege escalation through custom storage volumes
- CVE-2026-23954HIGH
Incus container image templating arbitrary host file read and write
- CVE-2026-23953HIGH
Incus container environment configuration newline injection