Coder
Coder before 2.29.21, 2.34.12, 2.35.9, 2.36.7, and 2.37.4 Missing Audience Validation in GCP Instance-Identity Authentication
Coder before 2.29.21, 2.30.0 before 2.34.12, 2.35.0 before 2.35.9, 2.36.0 before 2.36.7, and 2.37.0 before 2.37.4 does not validate the audience claim of GCE instance-identity JWTs at the POST /api/v2/workspaceagents/google-instance-identity endpoint. Attackers who obtain an unexpired format=full identity token minted for another relying party can replay it to obtain that workspace agent's session token, which remains valid until the workspace's next build.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 2.37.0, < 2.37.4
Fixed in 2.37.4
- >= 2.36.0, < 2.36.7
Fixed in 2.36.7
- >= 2.35.0, < 2.35.9
Fixed in 2.35.9
- >= 2.30.0, < 2.34.12
Fixed in 2.34.12
- < 2.29.21
Fixed in 2.29.21
Mitigation
Upgrade coder to 2.37.4 or later.
Upgrade coder to 2.36.7 or later.
Upgrade coder to 2.35.9 or later.
Upgrade coder to 2.34.12 or later.
Upgrade coder to 2.29.21 or later.
References
- Vendor advisory github.com/coder/coder/security/advisories/GHS…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.