Summary
Incus can incorrectly authorize restricted clients when entitlement checks use the requested project rather than the project context of the resource being accessed. Depending on access and configuration, this may let a client create or access default-project resources, manipulate inherited resources, or execute code as root on the host through bridge network configuration.
Affected context
The issue affects Incus deployments with vulnerable project authorization behavior, described for versions before 7.6.0. It becomes a risk when restricted clients can make project-scoped resource requests and authorization checks do not account for the effective project or inherited-resource context.
Exploit preconditions
- Attack surface: Incus client or API operations involving project-scoped resources
- Required access: A restricted client account able to make relevant requests
- Trigger point: An operation that creates, accesses, or manipulates a resource using project selection or inheritance
- Why exploitation is possible: Entitlement checks against the requested project can fail to reflect the authorization context of the resource; affected bridge network configuration may also allow host-level command execution
Why this happens
The authorization logic evaluates entitlements against the requested project without correctly binding the check to the effective project and resource context. This is an authorization enforcement failure mapped to CWE-863: Incorrect Authorization. The insecure pattern is trusting a caller-selected scope when deciding whether the caller may access a resource, including resources available through defaults or inheritance.
Potential impact
- Restricted clients may gain access to resources in the default project
- Clients may create or manipulate resources beyond their intended permissions
- Bridge network configuration may enable code execution with root privileges on the host
- Host or service integrity may be compromised, with possible follow-on effects for workloads and data
General mitigation guidance
Defensive designs should authorize each operation against the resolved resource and its effective project context, including inherited and default-project resources.
- Apply deny-by-default authorization and verify permissions at the point of resource use
- Treat client-supplied project identifiers as untrusted input and resolve them before authorization
- Validate network configuration directives against a strict allowlist
- Limit client entitlements and run host-facing components with the least privilege practical
- Keep authorization checks consistent across resource creation, access, and inheritance paths
How teams detect issues like this
- Review authorization code for checks based only on caller-supplied project parameters
- Use static analysis and code review to trace project resolution, inheritance, and entitlement checks together
- Test that restricted clients cannot access default-project or inherited resources through alternate project contexts
- Monitor audit logs for unexpected cross-project resource operations and bridge network configuration changes
- Enforce policy checks that require authorization against the resolved resource context

