Summary
Incus has an authorization bypass that may let a restricted project user create resources in the unrestricted default project when targeting projects without certain feature flags. Depending on the resource and configuration, this could enable root-level script execution or access to host files.
Affected context
The issue concerns Incus project resource creation and authorization checks. It may arise when a restricted user targets a project that lacks features.* flags, allowing resource operations to reach the unrestricted default project without the intended authorization boundary.
Exploit preconditions
- Attack surface: Incus project resource creation
- Required access: An account restricted to a project that can create or request resources
- Trigger point: A resource creation request targeting a project without relevant
features.*flags - Why exploitation is possible: Authorization may not be correctly enforced across the project boundary, allowing operations to affect the unrestricted default project
- Potentially affected resource paths: Bridge network configuration and custom volume creation
Why this happens
The underlying issue is an authorization check that does not consistently enforce project boundaries for resource creation. When project feature flags are absent, a restricted user's request may be handled in the context of the unrestricted default project. This is an authorization enforcement failure mapped to CWE-863: Incorrect Authorization.
Potential impact
- An attacker may create resources outside their permitted project
- A crafted bridge network configuration could enable scripts to run with root privileges
- Custom volume options could be abused to read host files
- The host or other workloads may be exposed to compromise
General mitigation guidance
Mitigation generally focuses on enforcing authorization at every resource operation and preserving project isolation by default.
- Apply consistent project-scope checks to resource creation and configuration
- Treat missing or unset project feature flags as restricted, not as permission to use a broader project context
- Validate resource options against strict allowlists and avoid passing untrusted values to privileged utilities or scripts
- Run host-side helpers with the least privileges required and limit their access to host data
- Review project permissions and restrict who can create or modify networks and volumes
How teams detect issues like this
- Review authorization code paths for resource creation, especially fallback behavior when project feature flags are absent
- Use static analysis and code review checks to identify operations that resolve resources in a different project context from the requesting user's authorization
- Audit project and resource creation events for unexpected operations in the default project by restricted accounts
- Enforce policy checks that prevent untrusted configuration from reaching privileged scripts or host utilities

