CVE-2026-126404

Coder from 2.38.0 before 2.38.4 Privilege Escalation via API Key Creation

Published Nov 13, 2026 CVSS 4.0 · 7.6 High EPSS < 1% KEV · Not listed
Description
Coder 2.28.0 before 2.29.24, 2.30.0 before 2.34.16, 2.35.0 before 2.36.11, 2.37.0 before 2.37.8, and 2.38.0 before 2.38.4 does not restrict new API keys to the creating token's scopes, allow list, or expiry. A scoped API key or OAuth2 token holding key-creation permission can call POST /api/v2/users/{user}/keys/tokens to mint longer-lived coder:all keys, gaining the user's full privileges.

Analysis

AI-generated

Technical impact

The flaw is a weak access control (CWE-266) that allows a token with key-creation rights to generate new API keys without any scope, allowlist, or expiry restrictions. This results in the ability to create persistent full-privilege keys that grant the attacker the full user’s privileges, leading to complete system compromise.

Affected Systems

Affected are all releases from coder 2.28.0 up to but not including 2.38.4, including 2.28.x, 2.30.x, 2.34.x, 2.36.x, 2.37.x and 2.38.x. The product is the coder application identified by the vendor coder.

Risk and Exploitability

The CVSS score of 7.6 classifies the flaw as high severity. The EPSS score is below 1%, suggesting exploitation is currently rare; it is not listed in the CISA KEV catalog. Nevertheless, once an attacker obtains a key-creation token, the attack path is simple: call the key-creation endpoint and receive a fully privileged key. This bypasses intended scope limits and can be performed without additional privileges beyond key-creation rights.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade coder to version 2.38.4 or later where the restriction is re-enforced
  • Revoke any existing API keys that have key-creation permission and are no longer needed
  • Restrict key-creation permission to a minimal set of trusted service accounts or users

Generated by OpenCVE AI on November 14, 2026 at 15:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Coder 2.28.0 before 2.29.24, 2.30.0 before 2.34.16, 2.35.0 before 2.36.11, 2.37.0 before 2.37.8, and 2.38.0 before 2.38.4 does not restrict new API keys to the creating token's scopes, allow list, or expiry. A scoped API key or OAuth2 token holding key-creation permission can call POST /api/v2/users/{user}/keys/tokens to mint longer-lived coder:all keys, gaining the user's full privileges.
Title Coder from 2.38.0 before 2.38.4 Privilege Escalation via API Key Creation
First Time appeared Coder
Coder coder
Weaknesses CWE-266
CPEs cpe:2.3:a:coder:coder:*:*:*:*:*:*:*:*
Vendors & Products Coder
Coder coder
References
Metrics cvssV3_1

{'score': 6.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N'}

cvssV4_0

{'score': 7.6, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-266

    Incorrect Privilege Assignment

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 13, 2026, 8:26 PM
Reserved
Nov 10, 2026, 9:32 PM
Status
Awaiting Analysis
Published
Nov 13, 2026, 10:17 AM
Modified
Nov 17, 2026, 10:17 PM