Incus OVN TLS verification accepts peer-supplied roots and permits endpoint impersonation
lxc incus
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/lxc/incus/v6/cmd/incusd Go |
|
|
| github.com/lxc/incus Go |
| No fix yet |
| github.com/lxc/incus/v6 Go |
|
lxc incus
| Product | Affected | Fixed in |
|---|---|---|
| github.com/lxc/incus/v6/cmd/incusd Go |
|
|
| github.com/lxc/incus Go |
| No fix yet |
| github.com/lxc/incus/v6 Go |
|
| No fix yet |
| github.com/lxc/incus/v7 Go |
|
|
Incus is a system container and virtual machine manager. In versions before 7.0.0, broken TLS validation logic in the OVN database connection logic can allow connections to an attacker's OVN database. The OVN client implementations disable Go standard TLS server verification and replace it with custom peer-certificate verification logic. That replacement verifier does not anchor trust in the configured CA certificate. Instead, it constructs the verification root set from certificates supplied by the peer during the handshake, so the configured CA is parsed but not used as the trust anchor for the final verification decision.
In OVN-enabled deployments that use these SSL database connection paths, an attacker able to impersonate or intercept the OVN endpoint on the management network can present a rogue self-signed certificate chain, and Incus will accept this certificate as valid. This issue defeats the intended CA-based trust model for OVN database connections and permits endpoint impersonation by an active attacker in a suitable network position. This issue is fixed in version 7.0.0.
From the CVE record · GitHub_M
In Incus before 7.0.0, the OVN database connection logic does not use the configured CA certificate as its trust anchor. In OVN-enabled deployments using SSL database connections, an attacker who can impersonate or intercept the OVN endpoint on the management network can present a rogue certificate that Incus accepts.
Operators of OVN-enabled Incus deployments should check installations before 7.0.0, including Go packages github.com/lxc/incus/v6/cmd/incusd and github.com/lxc/incus/v7; the listed github.com/lxc/incus and github.com/lxc/incus/v6 packages have no fixed version.