CVE-2025-64507 — Vulnerability in github.com/lxc/incus/v6
Incus vulnerable to local privilege escalation through custom storage volumes
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.22%). Schedule for your next planned update.
Does your project use an affected github.com/lxc/incus/v6 version?
Paste your go.sum to check it for CVE-2025-64507 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
This affects any Incus user in an environment where an unprivileged user may have root access to a container with an attached custom storage volume that has the security.shifted property set to true as well as access to the host as an unprivileged user.
The most common case for this would be systems using incus-user with the less privileged incus group to provide unprivileged users with an isolated restricted access to Incus. Such users may be able to create a custom storage volume with the necessary property (depending on kernel and filesystem support) and can then write a setuid binary from within the container which can be executed as an unpriivleged user on the host to gain root privileges.
Patches
A patch for this issue is available here: https://github.com/lxc/incus/pull/2642
The first commit changes the permissions for any new storage pool, the second commit applies it on startup to all existing storage pools.
Workarounds
Permissions can be manually restricted until a patched version of Incus is deployed.
This is done with:
chmod 0700 /var/lib/incus/storage-pools/*/*
chmod 0711 /var/lib/incus/storage-pools/*/buckets*
chmod 0711 /var/lib/incus/storage-pools/*/container*
Those are the same permissions which will be applied by the patched Incus for both new and existing storage pools.
References
This was reported publicly on Github by here: https://github.com/lxc/incus/issues/2641
Advisory Timeline
- First published November 13, 2025 (378 days ago).
- Last revised March 30, 2026 — 137 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/lxc/incus/v6@v6.19.0
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Go (1).
| Package | Fixed In |
|---|---|
| github.com/lxc/incus/v6 Go · Affected: All versions | 6.19.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-269Improper Privilege ManagementMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.4 score means for each attack dimension.
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
References
Frequently Asked Questions
- What is CVE-2025-64507?
- Incus vulnerable to local privilege escalation through custom storage volumes. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.4/10).
- How do I check if my project is affected by CVE-2025-64507?
- CVE-2025-64507 affects github.com/lxc/incus/v6. It has a 0.2% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-64507 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 6.9% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-48749CRITICAL
Incus has an arbitrary file read+write on host via rootfs/ symlink in malicious image
- CVE-2026-48751CRITICAL
Incus has a restricted project bypass leading to arbitrary command execution
- CVE-2026-48750CRITICAL
Incus has an arbitrary file write on host via `exec-output` symlink in crafted image
- CVE-2026-33897CRITICAL
Incus vulnerable to arbitrary file read and write through pongo templates
- CVE-2026-33945CRITICAL
Incus has an abitrary file write through its systemd-creds options
- CVE-2026-33898HIGH
Local Incus UI web server vulnerable to nuthentication bypass
- CVE-2026-23954HIGH
Incus container image templating arbitrary host file read and write
- CVE-2026-23953HIGH
Incus container environment configuration newline injection