GHSA-56mx-8g9f-5crf

Suggest an improvement
Source
https://github.com/advisories/GHSA-56mx-8g9f-5crf
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/11/GHSA-56mx-8g9f-5crf/GHSA-56mx-8g9f-5crf.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-56mx-8g9f-5crf
Aliases
  • CVE-2025-64507
Published
2025-11-13T16:04:55Z
Modified
2025-11-13T16:27:47.857382Z
Severity
  • 8.6 (High) CVSS_V4 - 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 CVSS Calculator
Summary
Incus vulnerable to local privilege escalation through custom storage volumes
Details

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: https://github.com/lxc/incus/issues/2641

Database specific
{
    "github_reviewed": true,
    "severity": "HIGH",
    "cwe_ids": [
        "CWE-269"
    ],
    "nvd_published_at": "2025-11-10T22:15:39Z",
    "github_reviewed_at": "2025-11-13T16:04:55Z"
}
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
6.1.0
Last affected
6.18.0

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
0Unknown introduced version / All previous versions are affected
Last affected
6.0.6

Go / github.com/lxc/incus

Package

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

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
0.7.0