Summary
Incus contains an authentication bypass that may let a remote attacker be treated as a trusted certificate identity by appending a trusted public certificate to the presented TLS client certificate chain. Depending on the certificate used and deployment, this could grant cluster-level access, bypass authorization, and affect trust or scriptlet-based authorization decisions.
Affected context
The issue affects Incus deployments with the vulnerable TLS client certificate authentication behavior. It is described in Incus versions before 7.6.0, where a certificate appended to a presented client chain may influence which trusted identity the server accepts.
Exploit preconditions
- Attack surface: Remote TLS client authentication to an Incus service
- Required access: Network reachability to the relevant service; the description does not indicate that prior authentication is required
- Trigger point: Validation of a client certificate chain containing an appended trusted certificate
- Why exploitation is possible: The authentication process may accept the trusted certificate in the presented chain as proof of the corresponding identity
Why this happens
The underlying issue is an authentication-validation flaw mapped to CWE-287: Improper Authentication. The certificate-chain handling does not sufficiently ensure that the presented client identity is authenticated according to the intended trust and identity rules, allowing a trusted certificate to be appended to influence the authentication result.
Potential impact
- An attacker could authenticate as a trusted certificate identity
- An attacker may gain cluster-level access or bypass authorization
- Trust store entries could be modified
- Scriptlet-based authorization decisions could be influenced
General mitigation guidance
Defensive patterns include validating the client certificate identity and chain according to strict, explicit trust rules, and ensuring that additional certificates cannot substitute for the identity being authenticated. Keep trust-store changes tightly controlled, minimize the privileges available to authenticated identities, and review scriptlet-based authorization logic so it does not rely on ambiguous certificate-chain results.
How teams detect issues like this
Review TLS client authentication code and configuration for logic that derives identity from any certificate in a presented chain rather than the intended client certificate. Examine trust-store modification events, unexpected certificate-chain structures, and authorization decisions that differ from established identity records. Static analysis, code review, and policy checks can help identify ambiguous certificate validation and overly broad trust rules.

