{"schemaVersion":3,"id":"CVE-2025-58437","aliases":["GHSA-j6xf-jwrj-v5qp","GO-2025-3938"],"status":"published","duplicateOf":null,"title":null,"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.00382,"percentile":0.30753,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.008000000000000021,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00374},"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":0.30753}],"last30":[{"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":0.30753}]},"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":"Insufficient Session Expiration","description":"According to WASC, \"Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization.\"","type":"weakness","status":"Incomplete","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},{"text":"≥ 2.22, < 2.24.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.25.0, < 2.25.2","noFixRecorded":false,"fixedIn":null}],"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}],"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},{"text":"≥ 2.25.0, < 2.25.2","noFixRecorded":false,"fixedIn":null}],"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}],"risk":{"score":42,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T01:35:22.072Z","stale":false,"partial":false}}