Coder: Route hijacking through lack of validation of agent-supplied AllowedIPs in tailnet coordinator
coder
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/coder/coder/v2 Go |
|
|
coder
| Product | Affected | Fixed in |
|---|---|---|
| github.com/coder/coder/v2 Go |
|
|
| github.com/coder/coder Go |
| No fix yet |
Coder allows organizations to provision remote development environments via Terraform. Prior to versions 2.29.7, 2.32.7, 2.33.8, and 2.34.2, the tailnet coordinator validates that an agent's `Addresses` derive from its authenticated UUID but applies no equivalent check to `AllowedIPs`. The coordinator forwards agent-supplied `AllowedIPs` verbatim to tunnel peers which install them into the WireGuard peer configuration. The fix in versions 2.29.7, 2.32.7, 2.33.8, and 2.34.2 validates each `AllowedIPs` prefix against the authenticating agent's UUID just like `Addresses`. As a workaround, monitor coordinator logs for agents advertising unexpected `AllowedIPs` prefixes.
From the CVE record · GitHub_M
Coder's tailnet coordinator does not validate agent-supplied `AllowedIPs` against the agent's authenticated UUID. An authenticated agent can advertise unauthorized prefixes that the coordinator forwards to tunnel peers for installation in their WireGuard configurations. No user interaction is described.
Teams running affected versions of Go package `github.com/coder/coder/v2` or any version of the legacy `github.com/coder/coder` package should check their deployments.