{"schemaVersion":4,"id":"CVE-2025-58437","aliases":["GHSA-j6xf-jwrj-v5qp","GO-2025-3938"],"status":"published","duplicateOf":null,"title":"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.","dates":{"published":"2025-09-06T02:30:08.378Z","modified":"2025-09-08T16:45:15.915Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":7.2,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00437,"percentile":0.39756,"severity":"low","asOf":"2026-12-05T00:00:00.000Z","change":{"pp":0.04099999999999998,"baselineDate":"2026-11-05T00:00:00.000Z","baselineScore":0.00396},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00685,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00685,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00437,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00437,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00437,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00437,"percentile":null},{"date":"2026-12-05T00:00:00.000Z","score":0.00437,"percentile":0.39756}],"last30":[{"date":"2026-11-05T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00412,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00685,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00685,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00727,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00437,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00437,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00437,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00437,"percentile":null},{"date":"2026-12-05T00:00:00.000Z","score":0.00437,"percentile":0.39756}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_CODER_CODER","name":"Coder","source":"github","url":"https://github.com/coder/coder/security/advisories/GHSA-j6xf-jwrj-v5qp","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-277","name":"Insecure Inherited Permissions","description":"A product defines a set of insecure permissions that are inherited by objects that are created by the program.","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/277.html"},{"id":"CWE-279","name":"Incorrect Execution-Assigned Permissions","description":"While it is executing, the product sets the permissions of an object in a way that violates the intended permissions that have been specified by the user.","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/279.html"},{"id":"CWE-613","name":"DEPRECATED: Insufficient Session Expiration","description":"This entry has been deprecated because it was insufficiently clear. Consider CWE-1462 and its descendants.","type":"weakness","status":"Deprecated","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/613.html"}],"affected":[{"vendor":"coder","product":"coder","name":"coder","label":"coder","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.22.0, < 2.24.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"2.22.0","startInclusive":true,"end":"2.24.4","endInclusive":false}},{"text":"≥ 2.22, < 2.24.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"2.22","startInclusive":true,"end":"2.24.4","endInclusive":false}},{"text":"≥ 2.25.0, < 2.25.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"2.25.0","startInclusive":true,"end":"2.25.2","endInclusive":false}}],"versionsText":"≥ 2.22.0, < 2.24.4 | ≥ 2.22, < 2.24.4 | ≥ 2.25.0, < 2.25.2","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"coder","label":"Coder","category":"server-app"}},"hubHref":"/vendor/coder/coder"},{"vendor":"github.com/coder","product":"coder","name":"github.com/coder/coder","label":"coder","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/coder/coder","purlType":"golang","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"github.com/coder/coder","product":"v2","name":"github.com/coder/coder/v2","label":"v2","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/coder/coder/v2","purlType":"golang","versions":[{"text":"≥ 2.22.0, < 2.24.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"2.22.0","startInclusive":true,"end":"2.24.4","endInclusive":false}},{"text":"≥ 2.25.0, < 2.25.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"2.25.0","startInclusive":true,"end":"2.25.2","endInclusive":false}}],"versionsText":"≥ 2.22.0, < 2.24.4 | ≥ 2.25.0, < 2.25.2","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/coder/coder/security/advisories/GHSA-j6xf-jwrj-v5qp","label":"github.com/coder/coder/security/advisories/GHSA-j6xf-jwrj-v5qp","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory","Exploit","Mitigation","Vendor Advisory"]},{"url":"https://github.com/coder/coder/pull/19667","label":"github.com/coder/coder/pull/19667","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Issue Tracking"]},{"url":"https://github.com/coder/coder/pull/19668","label":"github.com/coder/coder/pull/19668","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Issue Tracking"]},{"url":"https://github.com/coder/coder/pull/19669","label":"github.com/coder/coder/pull/19669","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Issue Tracking"]},{"url":"https://github.com/coder/coder/commit/06cbb2890f453cd522bb2158a6549afa3419c276","label":"github.com/coder/coder/commit/06cbb2890f453cd522bb2158a6549afa3419c276","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Patch"]},{"url":"https://github.com/coder/coder/commit/20d67d7d7191a4fd5d36a61c6fc1e23ab59befc0","label":"github.com/coder/coder/commit/20d67d7d7191a4fd5d36a61c6fc1e23ab59befc0","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Patch"]},{"url":"https://github.com/coder/coder/commit/ec660907faa0b0eae20fa2ba58ce1733f5f4b35a","label":"github.com/coder/coder/commit/ec660907faa0b0eae20fa2ba58ce1733f5f4b35a","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Patch"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-58437","label":"nvd.nist.gov/vuln/detail/CVE-2025-58437","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/coder/coder","label":"github.com/coder/coder","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2025:15564-1","OPENSUSE-SU-2026:21483-1","SUSE-SU-2025:03289-1"],"duplicates":[],"related":["OPENSUSE-SU-2025:15564-1","OPENSUSE-SU-2026:21483-1","SUSE-SU-2025:03289-1"]},"timeline":[{"kind":"published","date":"2025-09-06T02:30:08.378Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-09-08T16:45:15.915Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"prioritise","tag":"public-exploit","reason":"Public exploit (GitHub, Date unknown)","nextStep":"Check applicability: affected before 2.24.4, 2.25.2 (CNA); fix release not confirmed","rank":[0,0,0,1,0,81],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-05T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00437,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2025-09-08T16:45:15.915Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","version":"3.1","headline":true},{"type":"cvss","source":"osv_go","date":"2025-09-08T16:45:15.915Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},{"type":"cvss","source":"nvd","date":"2025-09-08T16:45:15.915Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2025-09-08T16:45:07.417Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"},{"type":"exploit","source":"github","date":null,"status":"valid","statusDate":null,"statusSource":null,"disputes":[],"maturity":"poc","verified":false}],"epss":{"value":0.00437,"date":"2026-12-05T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T14:05:26.172Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T14:05:26.762Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T12:01:28.919Z","state":"stale"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T14:01:06.338Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T14:05:24.254Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T14:03:52.423Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T14:58:45.933Z","stale":false,"partial":false}}