CVE-2025-58437
published 2025-09-06CVE-2025-58437: 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…
PriorityP346high8.1CVSS 3.1
AVNACLPRLUINSUCHIHAN
EPSS
0.37%
31.1th percentile
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.
Affected
6 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| coder | coder | — | — |
| coder | coder | — | — |
| coder | coder | >= 2.22 < 2.24.4 | 2.24.4 |
| coder | coder | >= 2.25.0 < 2.25.2 | 2.25.2 |
| github.com | coder_coder_v2 | >= 2.22.0 < 2.24.4 | 2.24.4 |
| github.com | coder_coder_v2 | >= 2.25.0 < 2.25.2 | 2.25.2 |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Coder vulnerable to privilege escalation could lead to a cross workspace compromise in github.com/coder/coder
osv·2025-09-17
CVE-2025-58437 Coder vulnerable to privilege escalation could lead to a cross workspace compromise in github.com/coder/coder
Coder vulnerable to privilege escalation could lead to a cross workspace compromise in github.com/coder/coder
Coder vulnerable to privilege escalation could lead to a cross workspace compromise in github.com/coder/coder
GHSA
Coder vulnerable to privilege escalation could lead to a cross workspace compromise
ghsa·2025-09-05
CVE-2025-58437 [HIGH] CWE-269 Coder vulnerable to privilege escalation could lead to a cross workspace compromise
Coder vulnerable to privilege escalation could lead to a cross workspace compromise
## Summary
Insecure session handling opened room for a privilege escalation scenario in which [prebuilt workspaces](https://coder.com/docs/admin/templates/extending-templates/prebuilt-workspaces) could be compromised by abusing a shared system identity.
## Details
Coder automatically generates a session token for a user when a workspace is started. It is automatically exposed via [`coder_workspace_owner.session_token`](https://registry.terraform.io/providers/coder/coder/latest/docs/data-sources/workspace_owner#session_token-1). 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 t
OSV
Coder vulnerable to privilege escalation could lead to a cross workspace compromise
osv·2025-09-05
CVE-2025-58437 [HIGH] Coder vulnerable to privilege escalation could lead to a cross workspace compromise
Coder vulnerable to privilege escalation could lead to a cross workspace compromise
## Summary
Insecure session handling opened room for a privilege escalation scenario in which [prebuilt workspaces](https://coder.com/docs/admin/templates/extending-templates/prebuilt-workspaces) could be compromised by abusing a shared system identity.
## Details
Coder automatically generates a session token for a user when a workspace is started. It is automatically exposed via [`coder_workspace_owner.session_token`](https://registry.terraform.io/providers/coder/coder/latest/docs/data-sources/workspace_owner#session_token-1). 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 t
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/coder/coder/commit/06cbb2890f453cd522bb2158a6549afa3419c276https://github.com/coder/coder/commit/20d67d7d7191a4fd5d36a61c6fc1e23ab59befc0https://github.com/coder/coder/commit/ec660907faa0b0eae20fa2ba58ce1733f5f4b35ahttps://github.com/coder/coder/pull/19667https://github.com/coder/coder/pull/19668https://github.com/coder/coder/pull/19669https://github.com/coder/coder/security/advisories/GHSA-j6xf-jwrj-v5qp
2025-09-06
Published