All vulnerabilities

Go

CVE-2026-126404

Coder from 2.38.0 before 2.38.4 Privilege Escalation via API Key Creation

Severity
High 7.6
Published
13 Nov 2026
Last changed
13 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
2.29.24, 2.34.16, 2.36.0, 2.36.11, 2.37.8, 2.38.4
Exploit chance
0.3% in the next 30 daysHigher than 20% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Incorrect privilege assignment (CWE-266)
Attack
Over the network · Only under certain conditions · Needs a user account · No user action needed
Attacker can
Read data · Change data
CVSS 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
Sources
CVE Program

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.

From the CVE Program.

Affected software

SoftwareAffected versions
github.com/coder/coder/v2Go · osv:Go:github.com/coder/coder/v2
  • From 2.28.0 before 2.29.24
  • From 2.30.0 before 2.34.16
  • From 2.35.0 before 2.36.0
  • From 2.36.0 before 2.36.11
  • From 2.37.0 before 2.37.8
  • From 2.38.0 before 2.38.4

About github.com/coder/coder/v2

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-126404