CVE-2026-33711

Incus vulnerable to local privilege escalation through VM screenshot path

Published Mar 26, 2026 CVSS 4.0 · 4.7 Medium EPSS < 1% KEV · Not listed
Description
Incus is a system container and virtual machine manager. Incus provides an API to retrieve VM screenshots. That API relies on the use of a temporary file for QEMU to write the screenshot to which is then picked up and sent to the user prior to deletion. As versions prior to 6.23.0 use predictable paths under /tmp for this, an attacker with local access to the system can abuse this mechanism by creating their own symlinks ahead of time. On the vast majority of Linux systems, this will result in a "Permission denied" error when requesting a screenshot. That's because the Linux kernel has a security feature designed to block such attacks, `protected_symlinks`. On the rare systems with this purposefully disabled, it's then possible to trick Incus intro truncating and altering the mode and permissions of arbitrary files on the filesystem, leading to a potential denial of service or possible local privilege escalation. Version 6.23.0 fixes the issue.

Analysis

AI-generated

Technical impact

Incus, a system container and virtual machine manager, exposes an API that retrieves virtual machine screenshots. The API writes the image to a temporary file in a predictable location under /tmp before sending it back to the requester and deleting the file. When Incus versions prior to 6.23.0 are used, an attacker who can run commands locally can create a symlink in /tmp pointing to a file of the attacker’s choice. If the kernel’s protected_symlinks feature is disabled, Incus will follow the symlink, allowing the attacker to truncate the target file and alter its mode and ownership. This can lead to denial of service or local privilege escalation, as the attacker may gain unauthorized write access to arbitrary filesystem objects. The vulnerability involves path traversal weaknesses (CWE‑59 and CWE‑61).

Affected Systems

The affected product is Incus from the Linux Containers project. Versions earlier than 6.23.0 are vulnerable to this exploit. The changelog for 6.23.0 and later mitigates the issue by using non‑predictable temporary file paths.

Risk and Exploitability

The CVSS score of 4.7 indicates a moderate severity, and the EPSS score of less than 1% suggests that the likelihood of exploitation is low under current conditions. The vulnerability is not listed in the CISA KEV catalog. The attack requires local system access and the ability to create symlinks in the /tmp directory. It is inferred that the most probable attack vector is an authenticated local user who has write permissions in the Incus environment or the /tmp filesystem.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Incus to version 6.23.0 or later
  • Ensure the kernel’s protected_symlinks feature is enabled to mitigate symlink attacks
  • Restrict local user privileges that allow write access to Incus-specified temporary directories
  • Monitor Incus logs for unexpected screenshot requests or permission errors

Generated by OpenCVE AI on March 30, 2026 at 21:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-q9vp-3wcg-8p4x Incus vulnerable to local privilege escalation through VM screenshot path
History
Type Values Removed Values Added
First Time appeared Linuxcontainers
Linuxcontainers incus
CPEs cpe:2.3:a:linuxcontainers:incus:*:*:*:*:*:*:*:*
Vendors & Products Linuxcontainers
Linuxcontainers incus
Metrics cvssV3_1

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

cvssV3_1

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

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-59
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Important

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 provides an API to retrieve VM screenshots. That API relies on the use of a temporary file for QEMU to write the screenshot to which is then picked up and sent to the user prior to deletion. As versions prior to 6.23.0 use predictable paths under /tmp for this, an attacker with local access to the system can abuse this mechanism by creating their own symlinks ahead of time. On the vast majority of Linux systems, this will result in a "Permission denied" error when requesting a screenshot. That's because the Linux kernel has a security feature designed to block such attacks, `protected_symlinks`. On the rare systems with this purposefully disabled, it's then possible to trick Incus intro truncating and altering the mode and permissions of arbitrary files on the filesystem, leading to a potential denial of service or possible local privilege escalation. Version 6.23.0 fixes the issue.
Title Incus vulnerable to local privilege escalation through VM screenshot path
Weaknesses CWE-61
References
Metrics cvssV4_0

{'score': 4.7, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P'}

Weaknesses
  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')

  • CWE-61

    UNIX Symbolic Link (Symlink) Following

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 27, 2026, 8:00 PM
Reserved
Mar 23, 2026, 5:06 PM
Status
Analyzed
Published
Mar 26, 2026, 11:16 PM
Modified
Jun 17, 2026, 10:37 AM
Severity
Important
Public date
Mar 26, 2026, 10:37 PM