Coder from 2.38.0 before 2.38.4 Privilege Escalation via API Key Creation
NIST has not reviewed this entry yet, so scores and affected versions may be missing or may change.
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.
Incorrect Privilege Assignment CWE-266
A product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor.
Weakness data: MITRE Common Weakness Enumeration.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 6 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Coder Coder | Software | from 2.38.0, before 2.38.4 | 2.38.4 |
| Coder Coder | Software | from 2.37.0, before 2.37.8 | 2.37.8 |
| Coder Coder | Software | from 2.36.0, before 2.36.11 | 2.36.11 |
| Coder Coder | Software | from 2.30.0, before 2.34.16 | 2.34.16 |
| Coder Coder | Software | from 2.28.0, before 2.29.24 | 2.29.24 |
| Coder Coder | Software | from 2.35.0, before 2.36.0 | 2.36.0 |
The 7.6 severity score (high) from vulncheck.com, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | Network | Can be attacked from anywhere on the internet, with no need to be near the target. |
| How hard it is | High | Hard to carry out. It depends on conditions the attacker cannot control. |
| Setup needed on the target | Present | The target has to be set up in a particular way. |
| Login needed | Low | The attacker needs an ordinary user account. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | None | The service keeps running. |
Scorers can disagree. NIST scores every flaw the same way; the reporting company knows its own product best.
NIST lists 2 sources for this flaw, none tagged as a vendor patch.