CVE-2025-58437: Coder's privilege escalation vulnerability could lead to a cross workspace compromise
Vulnerability summary
CVE-2025-58437 is a high (CVSS 8.1) Insecure Inherited Permissions vulnerability in coder. EPSS estimates a 0.44% chance of exploitation in the next 30 days, higher than 39.7% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
CIRCL last checked 05-12-2026
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 3 · Related 3Timeline
- 06-09-2025PublishedVulnerability first disclosed.
- 08-09-2025Last modifiedVulnerability information updated.
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 metrics
3 scores · 3 sources · 1 version- OSV · GoEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- NVDNIST8.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
EPSS trend
Probability
0.44%
Chance of exploitation in the next 30 days
Percentile
40%
Versus all other CVEs
30-day change
Increase +0.04 pp
From 0.40% on 05-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundCoder
Maturity: poc
Weaknesses
CWE · root cause- CWE-277Insecure Inherited PermissionsA product defines a set of insecure permissions that are inherited by objects that are created by the program.
- CWE-279Incorrect Execution-Assigned PermissionsWhile 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.
- CWE-613DEPRECATED: Insufficient Session ExpirationThis entry has been deprecated because it was insufficiently clear. Consider CWE-1462 and its descendants.
Affected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Coder1 product
- coder≥ 2.22.0, < 2.24.4 | ≥ 2.22, < 2.24.4 | ≥ 2.25.0, < 2.25.2
Github.com/coder1 product
- coderAll versions (No fix recorded)
Github.com/coder/coder1 product
- v2≥ 2.22.0, < 2.24.4 | ≥ 2.25.0, < 2.25.2
3 vendors · 3 products
References
9 links- github.com/coder/coder/security/advisories/GHSA-j6xf-jwrj-v5qpX Refsource CONFIRMWEBAdvisoryExploitMitigationVendor Advisory
- github.com/coder/coderPACKAGE