Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-27918

HIGH 8.2EPSS 66%

Coder's OIDC authentication allows email with partially matching domain to register

Also known as GHSA-7cc2-r658-7xpf, GO-2024-2602

Mitigation

  • Upgrade github.com/coder/coder/v2 to one of 2.8.4, 2.7.3, 2.6.1 (or later in the same release line).

Who should check

  • Projects that depend on Go package github.com/coder/coder/v2 (>= 2.8.0, < 2.8.4)
  • Projects that depend on Go package github.com/coder/coder (<= 0.27.3)
  • Anyone running coder >= 2.8.0, < 2.8.4; >= 2.7.0, < 2.7.3; < 2.6.1

Vulnerability facts

Affected
github.com/coder/coder/v2 >= 2.8.0, < 2.8.4; github.com/coder/coder <= 0.27.3
Fixed in
2.8.4, 2.7.3, 2.6.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
8.2 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: Low
  • Integrity impact: None
  • Availability impact: High
EPSS
1.11% chance of exploitation in 30 days (percentile 66, 2026-11-26)
CWE
CWE-20
Published
Modified

Description

Coder allows oragnizations to provision remote development environments via Terraform. Prior to versions 2.6.1, 2.7.3, and 2.8.4, a vulnerability in Coder's OIDC authentication could allow an attacker to bypass the `CODER_OIDC_EMAIL_DOMAIN` verification and create an account with an email not in the allowlist. Deployments are only affected if the OIDC provider allows users to create accounts on the provider. During OIDC registration, the user's email was improperly validated against the allowed `CODER_OIDC_EMAIL_DOMAIN`s. This could allow a user with a domain that only partially matched an allowed domain to successfully login or register. An attacker could register a domain name that exploited this vulnerability and register on a Coder instance with a public OIDC provider. Coder instances with OIDC enabled and protected by the `CODER_OIDC_EMAIL_DOMAIN` configuration are affected. Coder instances using a private OIDC provider are not affected, as arbitrary users cannot register through a private OIDC provider without first having an account on the provider. Public OIDC providers are impacted. GitHub authentication and external authentication are not impacted. This vulnerability is remedied in versions 2.8.4, 2.7.3, and 2.6.1 All versions prior to these patches are affected by the vulnerability.*It is recommended that customers upgrade their deployments as soon as possible if they are utilizing OIDC authentication with the `CODER_OIDC_EMAIL_DOMAIN` setting.

Affected and fixed versions

Package / productAffectedFixedSource
Go github.com/coder/coder/v2>= 2.8.0, < 2.8.42.8.4, 2.7.3, 2.6.1osv
Go github.com/coder/coder<= 0.27.3—osv
coder>= 2.8.0, < 2.8.4; >= 2.7.0, < 2.7.3; < 2.6.1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-27918. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-27918.md
Affected: github.com/coder/coder/v2 >= 2.8.0, < 2.8.4; github.com/coder/coder <= 0.27.3
Fixed in: 2.8.4, 2.7.3, 2.6.1

Steps:
1. Search this machine and project for github.com/coder/coder/v2 (Go), github.com/coder/coder (Go), coder: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-27918 being exploited?

There is no confirmed exploitation: CVE-2024-27918 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.11% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-27918?

High: CVSS 8.2 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2024-27918?

github.com/coder/coder/v2 >= 2.8.0, < 2.8.4; github.com/coder/coder <= 0.27.3.

Is there a fix for CVE-2024-27918?

Yes. Fixed in 2.8.4, 2.7.3, 2.6.1. Upgrade github.com/coder/coder/v2 to one of 2.8.4, 2.7.3, 2.6.1 (or later in the same release line).

How do I check if I'm affected by CVE-2024-27918?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors