CVE-2026-33945

Abitrary file write through systemd-creds option

Published Mar 26, 2026 CVSS 3.1 · 10 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Incus, a system container and virtual machine manager, contains a configuration flaw that allows an attacker to supply a specially crafted credential key such as systemd.credential.XYZ to write outside the allowed credentials directory. By steering the key name to contain path-traversal fragments, the software opens the opportunity to write arbitrary files as root, leading to privilege escalation or denial of service. The vulnerability is a directory traversal/file write problem classified as CWE-22.

Affected Systems

Affected systems are deployments using the Linux Containers Incus container manager from the LXC project. Versions older than 6.23.0 are impacted; this includes all releases where the systemd credential syntax has been implemented without proper sanitization, such as 6.22.x and earlier. Any container or VM running under those versions is vulnerable if credentials are exposed.

Risk and Exploitability

This issue has a CVSS score of 10 and an EPSS score of less than 1%, indicating a high severity but a very low probability of exploitation in the wild. The vulnerability is not listed in the CISA KEV catalog. Based on the description, the likely attack vector involves the attacker having the ability to set or modify configuration for a container or virtual machine, for example via the Incus API or control interface, in order to inject a malicious credential key that traverses directories and writes to arbitrary files as root. No complete remote exploit path is disclosed, but the flaw provides local root-escapable write capabilities.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Incus to version 6.23.0 or later, where the directory traversal check is fixed.
  • If an upgrade is not feasible, disable the systemd credential feature or ensure that no credentials are supplied for containers.
  • Restrict configuration changes to trusted administrators only to prevent malicious key injection.
  • Verify that file write attempts outside the credentials directory are blocked by monitoring Incus logs.

Generated by OpenCVE AI on April 2, 2026 at 04:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-q4q8-7f2j-9h9f Incus has an abitrary file write through its systemd-creds options
History
Type Values Removed Values Added
First Time appeared Linuxcontainers
Linuxcontainers incus
CPEs cpe:2.3:a:linuxcontainers:incus:*:*:*:*:*:*:*:*
Vendors & Products Linuxcontainers
Linuxcontainers incus
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Lxc
Lxc incus
Vendors & Products Lxc
Lxc incus
Type Values Removed Values Added
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.
Title Abitrary file write through systemd-creds option
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 10, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 27, 2026, 8:00 PM
Reserved
Mar 24, 2026, 7:50 PM
Status
Analyzed
Published
Mar 27, 2026, 12:16 AM
Modified
Jun 17, 2026, 10:38 AM
Severity
Critical
Public date
Mar 26, 2026, 11:27 PM