CVE-2025-58437 json
Coder's privilege escalation vulnerability could lead to a cross workspace compromise
published 2025-09-05 14 mo ago modified 2026-10-19 20 d ago also GHSA-j6xf-jwrj-v5qp , GO-2025-3938 , EUVD-2025-27069
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 35%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/coder/coder/v2 2.24.4, 2.25.2
- coder coder 2.24.4, 2.25.2
- govulncheck-vulndb SLE Module for Package Hub 15 SP6, openSUSE Leap 15.6 0.0.20250918T182144-150000.1.107.1
suse advisories SUSE-SU-2025:03289-1
- govulncheck-vulndb openSUSE Leap 16.0 0.0.20260723T184607-160000.1.1
- govulncheck-vulndb openSUSE Tumbleweed 0.0.20250917T170349-1.1
opensuse advisories openSUSE-SU-2026:21483-1openSUSE-SU-2025:15564-1
- github.com/coder/coder@06cbb28 commit
- github.com/coder/coder@20d67d7 commit
- github.com/coder/coder@ec66090 commit
- github.com/coder/coder#19667 pull request
- github.com/coder/coder#19668 pull request
- github.com/coder/coder#19669 pull request
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 14 mo ago
Exploit prediction
0.41% chance of exploitation in the next 30 days, higher than 35% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/coder/coder/security/advisories/GHSA-j6xf-jwrj-v5qp referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| NVD | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/coder/coder/v2 | >=2.22.0, <2.24.4 >=2.25.0, <2.25.2 |
2.24.4 2.25.2 |
| go | github.com/coder/coder | all versions |
no fix listed |
Affected products
- coder coder
Classification
References
-
github.com
/coder/coder/pull/19667
web, issue-tracking, patch
-
github.com
/coder/coder/pull/19668
web, issue-tracking, patch
-
github.com
/coder/coder/pull/19669
web, issue-tracking, patch
-
github.com
/coder/coder/commit/06cbb2890f453cd522bb2158a6549afa3419c276
web, patch
-
github.com
/coder/coder/commit/20d67d7d7191a4fd5d36a61c6fc1e23ab59befc0
web, patch
-
github.com
/coder/coder/commit/ec660907faa0b0eae20fa2ba58ce1733f5f4b35a
web, patch
-
github.com
/coder/coder/security/advisories/GHSA-j6xf-jwrj-v5qp
web, exploit, mitigation, vendor-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2025-58437
advisory
-
github.com
/coder/coder
package
Sources
- CVE List CVE-2025-58437
- GitHub Advisory GHSA-j6xf-jwrj-v5qp
- NVD CVE-2025-58437
- OSV GO-2025-3938
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.