CVE-2025-58437: coder Insecure Inherited Permissions
Vulnerability summary
CVE-2025-58437 is a high (CVSS 8.1) Insecure Inherited Permissions vulnerability in coder. EPSS estimates a 0.38% chance of exploitation in the next 30 days, higher than 30.7% of scored vulnerabilities. 1 public exploit is recorded.
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.38%
Chance of exploitation in the next 30 days
Percentile
31%
Versus all other CVEs
30-day change
+0.01 pp
From 0.37% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
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-613Insufficient Session ExpirationAccording to WASC, "Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization."
Affected systems
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