# CVE-2026-126404: Coder from 2.38.0 before 2.38.4 Privilege Escalation via API Key Creation

- Priority: **Routine**
- Reason: Not severe (CVSS 7.6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-13 · Modified: 2026-11-13
- Aliases: CGA-4h69-hgxg-pjp6, CGA-8cgp-7q8v-h6gh, CGA-jfcq-5v43-944h, CGA-rvf4-h3h6-w9fv
- Record: https://cvemate.com/vulnerability/CVE-2026-126404 · JSON: https://cvemate.com/vulnerability/CVE-2026-126404/json

## Description

```text
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.
```

## Signals

- CVSS: 7.6 high (v4.0, CVE.org) 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
- EPSS: 0.283%, percentile 22.296%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard coder-2.32 (Chainguard): All versions (No fix recorded)
- chainguard coder-2.33 (Chainguard): All versions (No fix recorded)
- coder coder: ≥ 2.38.0, \< 2.38.4 \| ≥ 2.37.0, \< 2.37.8 \| ≥ 2.36.0, \< 2.36.11 \| ≥ 2.30.0, \< 2.34.16 \| ≥ 2.28.0, \< 2.29.24 \| ≥ 2.35.0, \< 2.36.0

## References

- <https://github.com/coder/coder/security/advisories/GHSA-x3gf-xv6p-56hf>
- <https://www.vulncheck.com/advisories/coder-from-2.38.0-before-2.38.4-privilege-escalation-via-api-key-creation>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126404.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-126404>

---

Data as of 2026-12-05T14:38:49.433Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
