# CVE-2025-58437: Coder's privilege escalation vulnerability could lead to a cross workspace compromise

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 39% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-09-05T20:19:58.000Z
- Modified: 2026-10-19T17:10:00.173Z
- Also known as: GHSA-j6xf-jwrj-v5qp, GO-2025-3938
- Weaknesses: CWE-269, CWE-277, CWE-279, CWE-613
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- coder coder: >= 2.22.0, < 2.24.4; >= 2.25.0, < 2.25.2; from 2.22 before 2.24.4; from 2.25.0 before 2.25.2
- github.com/coder/coder/v2 (Go): from 2.22.0 before 2.24.4; from 2.25.0 before 2.25.2
- github.com/coder/coder (Go): all versions

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/coder/coder/security/advisories/GHSA-j6xf-jwrj-v5qp> (exploit, advisory, mitigation, vendor-advisory, web)
- <https://github.com/coder/coder/pull/19667> (fix, issue-tracking, web)
- <https://github.com/coder/coder/pull/19668> (fix, issue-tracking, web)
- <https://github.com/coder/coder/pull/19669> (fix, issue-tracking, web)
- <https://github.com/coder/coder/commit/06cbb2890f453cd522bb2158a6549afa3419c276> (fix, patch, web)
- <https://github.com/coder/coder/commit/20d67d7d7191a4fd5d36a61c6fc1e23ab59befc0> (fix, patch, web)
- <https://github.com/coder/coder/commit/ec660907faa0b0eae20fa2ba58ce1733f5f4b35a> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-58437> (advisory)
- <https://github.com/coder/coder> (package)

## Sources

- CVE List: [CVE-2025-58437](https://www.cve.org/CVERecord?id=CVE-2025-58437), CVE Terms of Use, modified 2025-09-08
- GitHub Advisory Database: [GHSA-j6xf-jwrj-v5qp](https://github.com/advisories/GHSA-j6xf-jwrj-v5qp), CC-BY-4.0, modified 2025-09-17
- Go Vulnerability Database: [GO-2025-3938](https://pkg.go.dev/vuln/GO-2025-3938), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2025-58437](https://nvd.nist.gov/vuln/detail/CVE-2025-58437), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-58437 · Whole record: https://cve.day/CVE-2025-58437.json · Rebuilt by cve.day 2026-11-25T22:59:04.297Z
