Description
Coder allows organizations to provision remote development environments via Terraform. Starting in version 2.30.0 and prior to versions 2.32.7, 2.33.8, and 2.34.2, AI Bridge proxy endpoints authenticate via `Server.IsAuthorized` in `coderd/aibridgedserver`, which validates key format, expiry, secret and deleted or system users but does not check whether the account is suspended. Because suspension does not revoke existing API keys, a suspended user's unexpired token keeps working. Practical impact is limited to already-issued API keys of suspended users until those keys are deleted. Versions 2.32.7, 2.33.8, and 2.34.2 patch the issue. As a workaround, on suspension, delete the user's API keys via `DELETE /api/v2/users/{user}/keys`.
Problem types
CWE-863: Incorrect Authorization
Product status
>= 2.33.0, < 2.33.8
>= 2.30.0, < 2.32.7
References
github.com/.../coder/security/advisories/GHSA-wqxv-w64v-5wh6
github.com/coder/coder/pull/26164
github.com/coder/coder/pull/26173
github.com/...ommit/0d2c9f904a8b75b888140fcc8fbf4633660cc787
github.com/coder/coder/releases/tag/v2.32.7
github.com/coder/coder/releases/tag/v2.33.8
github.com/coder/coder/releases/tag/v2.34.2