Skip to content
Heist/ feed
Back to feed
Critical

incus — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-33945

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.

Products
incus
Affected versions
0.4-1ubuntu1, 0.5.1-1, 0.5.1-3, 0.6-1, 6.0.0-1, 6.0.0-1ubuntu0.1, 6.0.0-1ubuntu0.2, 6.0.0-1ubuntu0.2+esm1, 6.0.0-1ubuntu0.3, 6.0.0-1ubuntu0.3+esm1, 6.0.0-1ubuntu0.3+esm2, 6.0.0-1ubuntu0.3+esm3, 6.0.3-4, 6.0.4-2, 6.0.5-8, 6.0.5-8ubuntu0.26.04.1~esm1, 7.0.1-5
Fixed versions
Not specified
CVEs
CVE-2026-33945
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:43 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-33945

core-osv · Original source

Published 27 Mar 2026, 00:16 UTC

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.

osv:UBUNTU-CVE-2026-33945

incus

Fixed versions: Not specified

incus

Fixed versions: Not specified

incus

Fixed versions: Not specified

incus

Fixed versions: Not specified

Complete source record
{
  "id": "bd10298de1f63a12d48d32408ef175ce6c32167142d76144d0466af486446635",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-33945",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-33945",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-33945",
    "products": [
      {
        "name": {
          "value": "incus",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.4-1ubuntu1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.5.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.5.1-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.6-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.0.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.0.0-1ubuntu0.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.0.0-1ubuntu0.2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.0.0-1ubuntu0.2+esm1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.0.0-1ubuntu0.3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.0.0-1ubuntu0.3+esm1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.0.0-1ubuntu0.3+esm2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.0.0-1ubuntu0.3+esm3",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "incus",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.0.3-4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.0.4-2",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "incus",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.0.5-8",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "7.0.1-5",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "incus",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.0.4-2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.0.5-8",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.0.5-8ubuntu0.26.04.1~esm1",
            "evidence": "/affected/3/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "UBUNTU-CVE-2026-33945",
      "aliases": [
        "UBUNTU-CVE-2026-33945"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "high"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "incus",
            "purl": "pkg:deb/ubuntu/incus?arch=source&distro=esm-apps%2Fnoble",
            "ecosystem": "Ubuntu:Pro:24.04:LTS"
          },
          "versions": [
            "0.4-1ubuntu1",
            "0.5.1-1",
            "0.5.1-3",
            "0.6-1",
            "6.0.0-1",
            "6.0.0-1ubuntu0.1",
            "6.0.0-1ubuntu0.2",
            "6.0.0-1ubuntu0.2+esm1",
            "6.0.0-1ubuntu0.3",
            "6.0.0-1ubuntu0.3+esm1",
            "6.0.0-1ubuntu0.3+esm2",
            "6.0.0-1ubuntu0.3+esm3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-33945.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-lxc-incus-dev",
                "binary_version": "6.0.0-1ubuntu0.3+esm3"
              },
              {
                "binary_name": "incus",
                "binary_version": "6.0.0-1ubuntu0.3+esm3"
              },
              {
                "binary_name": "incus-agent",
                "binary_version": "6.0.0-1ubuntu0.3+esm3"
              },
              {
                "binary_name": "incus-client",
                "binary_version": "6.0.0-1ubuntu0.3+esm3"
              },
              {
                "binary_name": "incus-migrate",
                "binary_version": "6.0.0-1ubuntu0.3+esm3"
              },
              {
                "binary_name": "incus-tools",
                "binary_version": "6.0.0-1ubuntu0.3+esm3"
              }
            ],
            "priority_reason": "priviledge escalation"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "incus",
            "purl": "pkg:deb/ubuntu/incus?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "6.0.3-4",
            "6.0.4-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-33945.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-lxc-incus-dev",
                "binary_version": "6.0.4-2"
              },
              {
                "binary_name": "incus",
                "binary_version": "6.0.4-2"
              },
              {
                "binary_name": "incus-agent",
                "binary_version": "6.0.4-2"
              },
              {
                "binary_name": "incus-base",
                "binary_version": "6.0.4-2"
              },
              {
                "binary_name": "incus-client",
                "binary_version": "6.0.4-2"
              },
              {
                "binary_name": "incus-extra",
                "binary_version": "6.0.4-2"
              }
            ],
            "priority_reason": "priviledge escalation"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "incus",
            "purl": "pkg:deb/ubuntu/incus?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "6.0.5-8",
            "7.0.1-5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-33945.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-lxc-incus-dev",
                "binary_version": "7.0.1-5"
              },
              {
                "binary_name": "incus",
                "binary_version": "7.0.1-5"
              },
              {
                "binary_name": "incus-agent",
                "binary_version": "7.0.1-5"
              },
              {
                "binary_name": "incus-base",
                "binary_version": "7.0.1-5"
              },
              {
                "binary_name": "incus-client",
                "binary_version": "7.0.1-5"
              },
              {
                "binary_name": "incus-extra",
                "binary_version": "7.0.1-5"
              }
            ],
            "priority_reason": "priviledge escalation"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "incus",
            "purl": "pkg:deb/ubuntu/incus?arch=source&distro=esm-apps%2Fresolute",
            "ecosystem": "Ubuntu:Pro:26.04:LTS"
          },
          "versions": [
            "6.0.4-2",
            "6.0.5-8",
            "6.0.5-8ubuntu0.26.04.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-33945.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-lxc-incus-dev",
                "binary_version": "6.0.5-8ubuntu0.26.04.1~esm1"
              },
              {
                "binary_name": "incus",
                "binary_version": "6.0.5-8ubuntu0.26.04.1~esm1"
              },
              {
                "binary_name": "incus-agent",
                "binary_version": "6.0.5-8ubuntu0.26.04.1~esm1"
              },
              {
                "binary_name": "incus-base",
                "binary_version": "6.0.5-8ubuntu0.26.04.1~esm1"
              },
              {
                "binary_name": "incus-client",
                "binary_version": "6.0.5-8ubuntu0.26.04.1~esm1"
              },
              {
                "binary_name": "incus-extra",
                "binary_version": "6.0.5-8ubuntu0.26.04.1~esm1"
              }
            ],
            "priority_reason": "priviledge escalation"
          }
        }
      ],
      "modified": "2026-10-17T12:58:51.654238894Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-33945"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-33945",
        "https://www.cve.org/CVERecord?id=CVE-2026-33945",
        "https://github.com/lxc/incus/pull/3092",
        "https://github.com/lxc/incus/security/advisories/GHSA-q4q8-7f2j-9h9f"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-33945",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 359120,
  "published_at": "2026-03-27T00:16:00+00:00"
}