# CVE-2026-33945: Abitrary file write through systemd-creds option

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 43% of CVEs (2026-12-01)
- Published: 2026-03-26T23:27:45.711Z
- Modified: 2026-06-17T10:38:20.773Z
- Also known as: GHSA-q4q8-7f2j-9h9f, GO-2026-4884
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Incus is a system container and virtual machine manager. Incus instances have an option to provide credentials to systemd in the guest. For containers, this is handled through a shared directory. Prior to version 6.23.0, 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. Version 6.23.0 fixes the issue.

(As written by CVE List.)

## Affected

- lxc incus: < 6.23.0
- github.com/lxc/incus/v6 (Go): before 6.23.0
- github.com/lxc/incus (Go): all versions
- linuxcontainers incus: before 6.23.0

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:H`

## References

- <https://github.com/lxc/incus/security/advisories/GHSA-q4q8-7f2j-9h9f> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33945> (advisory)
- <https://github.com/lxc/incus/commit/f74199f9983e2ce78f2b78b6d765c6635b229c82> (fix, web)
- <https://github.com/lxc/incus> (package)

## Sources

- CVE List: [CVE-2026-33945](https://www.cve.org/CVERecord?id=CVE-2026-33945), CVE Terms of Use, modified 2026-03-27
- GitHub Advisory Database: [GHSA-q4q8-7f2j-9h9f](https://github.com/advisories/GHSA-q4q8-7f2j-9h9f), CC-BY-4.0, modified 2026-04-07
- Go Vulnerability Database: [GO-2026-4884](https://pkg.go.dev/vuln/GO-2026-4884), CC-BY-4.0, modified 2026-04-07
- NVD: [CVE-2026-33945](https://nvd.nist.gov/vuln/detail/CVE-2026-33945), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-33945 · Whole record: https://cve.day/CVE-2026-33945.json · Rebuilt by cve.day 2026-11-25T22:59:17.351Z
