GHSA-q4q8-7f2j-9h9f

Suggest an improvement
Source
https://github.com/advisories/GHSA-q4q8-7f2j-9h9f
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-q4q8-7f2j-9h9f/GHSA-q4q8-7f2j-9h9f.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-q4q8-7f2j-9h9f
Aliases
Published
2026-03-27T17:22:32Z
Modified
2026-04-07T15:26:03Z
Severity
  • 9.9 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
Incus has an abitrary file write through its systemd-creds options
Details

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

Database specific
{
    "cwe_ids":  [
        "CWE-22"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-03-27T17:22:32Z",
    "nvd_published_at":  "2026-03-27T00:16:23Z",
    "severity":  "CRITICAL"
}
References

Affected packages

Go / github.com/lxc/incus/v6

Package

Name
github.com/lxc/incus/v6
View open source insights on deps.dev
Purl
pkg:golang/github.com/lxc/incus/v6

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
6.23.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-q4q8-7f2j-9h9f/GHSA-q4q8-7f2j-9h9f.json"