Coder
Coder 2.38.0 before 2.38.4 Authorization Bypass via External Agent Credentials Endpoint
Coder 2.26.0 before 2.29.24, 2.30.0 before 2.34.16, 2.35.0 before 2.36.11, 2.37.0 before 2.37.8, and 2.38.0 before 2.38.4 contains an improper authorization flaw in the external agent credentials endpoint, which returns the workspace agent token to users with only workspace read access rather than ssh permission. Authenticated users with roles such as Template Admin or Organization Admin can use the token to read the owner's private Git SSH key and Git provider OAuth tokens, and impersonate the agent to receive the owner's sessions.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 2.38.0, < 2.38.4
Fixed in 2.38.4
- >= 2.37.0, < 2.37.8
Fixed in 2.37.8
- >= 2.36.0, < 2.36.11
Fixed in 2.36.11
- >= 2.30.0, < 2.34.16
Fixed in 2.34.16
- >= 2.26.0, < 2.29.24
Fixed in 2.29.24
- >= 2.35.0, < 2.36.0
Fixed in 2.36.0
Mitigation
Upgrade coder to 2.38.4 or later.
Upgrade coder to 2.37.8 or later.
Upgrade coder to 2.36.11 or later.
Upgrade coder to 2.34.16 or later.
Upgrade coder to 2.29.24 or later.
Upgrade coder to 2.36.0 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.