{"cve":"CVE-2025-58437","nvd":{"published":"2025-09-06T03:15:40.287","modified":"2026-10-19T17:10:00.173","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1},"cwes":["CWE-613","CWE-277","CWE-279"],"references":["https://github.com/coder/coder/commit/06cbb2890f453cd522bb2158a6549afa3419c276","https://github.com/coder/coder/commit/20d67d7d7191a4fd5d36a61c6fc1e23ab59befc0","https://github.com/coder/coder/commit/ec660907faa0b0eae20fa2ba58ce1733f5f4b35a","https://github.com/coder/coder/pull/19667","https://github.com/coder/coder/pull/19668"],"products":["coder:coder"],"source":"nvd","synced_at":"2026-10-19T22:08:41.295252406+00:00"},"epss":{"cve":"CVE-2025-58437","score":0.00382,"percentile":0.31959,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-j6xf-jwrj-v5qp","url":"https://osv.dev/vulnerability/GHSA-j6xf-jwrj-v5qp","summary":"Coder vulnerable to privilege escalation could lead to a cross workspace compromise","modified":"2025-09-17T17:42:08.819917Z","packages":[{"ecosystem":"Go","name":"github.com/coder/coder/v2","purl":"pkg:golang/github.com/coder/coder/v2","ranges":[">=2.22.0 <2.24.4"],"fixed":["2.24.4"]},{"ecosystem":"Go","name":"github.com/coder/coder/v2","purl":"pkg:golang/github.com/coder/coder/v2","ranges":[">=2.25.0 <2.25.2"],"fixed":["2.25.2"]}]},{"id":"GO-2025-3938","url":"https://osv.dev/vulnerability/GO-2025-3938","summary":"Coder vulnerable to privilege escalation could lead to a cross workspace compromise in github.com/coder/coder","modified":"2026-03-03T04:57:27.422383Z","packages":[{"ecosystem":"Go","name":"github.com/coder/coder","purl":"pkg:golang/github.com/coder/coder","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/coder/coder/v2","purl":"pkg:golang/github.com/coder/coder/v2","ranges":[">=2.22.0 <2.24.4",">=2.25.0 <2.25.2"],"fixed":["2.24.4","2.25.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}