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

- Severity: High 7.6 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 22% of CVEs (2026-12-01)
- Published: 2026-11-13T09:35:45.631Z
- Modified: 2026-11-17T22:17:18.680Z
- Weaknesses: CWE-266
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- coder coder: from 2.38.0 before 2.38.4; from 2.37.0 before 2.37.8; from 2.36.0 before 2.36.11; from 2.30.0 before 2.34.16; from 2.28.0 before 2.29.24; from 2.35.0 before 2.36.0 (not affected: 2.38.4; 2.37.8; 2.36.11; 2.34.16; 2.29.24; 2.36.0)

## Every score

- VulnCheck: CVSS:4.0 7.6 High `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`
- VulnCheck: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/coder/coder/security/advisories/GHSA-x3gf-xv6p-56hf> (vendor-advisory)
- <https://www.vulncheck.com/advisories/coder-from-2.38.0-before-2.38.4-privilege-escalation-via-api-key-creation> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-126404](https://www.cve.org/CVERecord?id=CVE-2026-126404), CVE Terms of Use, modified 2026-11-13
- NVD: [CVE-2026-126404](https://nvd.nist.gov/vuln/detail/CVE-2026-126404), Public domain, modified 2026-11-17

---

Page: https://cve.day/CVE-2026-126404 · Whole record: https://cve.day/CVE-2026-126404.json · Rebuilt by cve.day 2026-11-25T22:59:50.648Z
