Loading...
Skip to main content

CVE-2026-33945 — Vulnerability in github.com/lxc/incus/v6 — CVE...

CRITICAL

Incus has an abitrary file write through its systemd-creds options

Published March 27, 2026Updated April 7, 2026Source: osv

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](https://7asecurity.com/)

Advisory Timeline

  • First published March 27, 2026 (199 days ago).
  • Last revised April 7, 2026 — 11 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/lxc/incus/v6 to 6.23.0 or later
go get github.com/lxc/incus/v6@v6.23.0

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: go (1).

PackageEcosystemAffectedFixed In
github.com/lxc/incus/v6
go
All versions6.23.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.9 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

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

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. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-33945 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.9

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-q4q8-7f2j-9h9f
GO-2026-4884

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies