Coder's privilege escalation vulnerability could lead to a cross workspace compromise
Description
Coder allows organizations to provision remote development environments via Terraform. In versions 2.22.0 through 2.24.3, 2.25.0 and 2.25.1, Coder can be compromised through insecure session handling in prebuilt workspaces. Coder automatically generates a session token for a user when a workspace is started. It is automatically exposed via coder_workspace_owner.session_token. Prebuilt workspaces are initially owned by a built-in prebuilds system user. When a prebuilt workspace is claimed, a new session token is generated for the user that claimed the workspace, but the previous session token for the prebuilds user was not expired. Any Coder workspace templates that persist this automatically generated session token are potentially impacted. This is fixed in versions 2.24.4 and 2.25.2.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/coder/coder/v2Go | >= 2.22.0, < 2.24.4 | 2.24.4 |
github.com/coder/coder/v2Go | >= 2.25.0, < 2.25.2 | 2.25.2 |
Affected products
5- ghsa-coords4 versionspkg:golang/github.com/coder/coder/v2pkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Tumbleweedpkg:rpm/suse/govulncheck-vulndb&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP6
>= 2.22.0, < 2.24.4+ 3 more
- (no CPE)range: >= 2.22.0, < 2.24.4
- (no CPE)range: < 0.0.20250918T182144-150000.1.107.1
- (no CPE)range: < 0.0.20250917T170349-1.1
- (no CPE)range: < 0.0.20250918T182144-150000.1.107.1
Patches
Vulnerability mechanics
References
9- github.com/advisories/GHSA-j6xf-jwrj-v5qpghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-58437ghsaADVISORY
- github.com/coder/coder/commit/06cbb2890f453cd522bb2158a6549afa3419c276ghsax_refsource_MISCWEB
- github.com/coder/coder/commit/20d67d7d7191a4fd5d36a61c6fc1e23ab59befc0ghsax_refsource_MISCWEB
- github.com/coder/coder/commit/ec660907faa0b0eae20fa2ba58ce1733f5f4b35aghsax_refsource_MISCWEB
- github.com/coder/coder/pull/19667ghsax_refsource_MISCWEB
- github.com/coder/coder/pull/19668ghsax_refsource_MISCWEB
- github.com/coder/coder/pull/19669ghsax_refsource_MISCWEB
- github.com/coder/coder/security/advisories/GHSA-j6xf-jwrj-v5qpghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.