# CVE-2024-27918: Coder's OIDC authentication allows email with partially matching domain to register

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H`
- 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.97%, higher than 62% of CVEs (2026-12-01)
- Published: 2024-03-04T20:45:36.000Z
- Modified: 2026-09-10T03:50:10.195Z
- Also known as: GHSA-7cc2-r658-7xpf, GO-2024-2602
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- coder coder: >= 2.8.0, < 2.8.4; >= 2.7.0, < 2.7.3; < 2.6.1; before 2.6.1; from 2.7.0 before 2.7.3; from 2.8.0 before 2.8.4
- github.com/coder/coder/v2 (Go): from 2.8.0 before 2.8.4; from 2.7.0 before 2.7.3; before 2.6.1
- github.com/coder/coder (Go): up to 0.27.3; all versions

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H`

## References

- <https://github.com/coder/coder/security/advisories/GHSA-7cc2-r658-7xpf> (advisory, vendor-advisory, web)
- <https://github.com/coder/coder/commit/1171ce7add017481d28441575024209ac160ecb0> (fix, patch, web)
- <https://github.com/coder/coder/commit/2ba84911f8b02605e5958d5e4a2fe3979ec50b31> (fix, patch, web)
- <https://github.com/coder/coder/commit/2d37eb42e7db656e343fe1f36de5ab1a1a62f4fb> (fix, patch, web)
- <https://github.com/coder/coder/commit/4439a920e454a82565e445e4376c669e3b89591c> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-27918> (advisory)
- <https://github.com/coder/coder> (package)

## Sources

- CVE List: [CVE-2024-27918](https://www.cve.org/CVERecord?id=CVE-2024-27918), CVE Terms of Use, modified 2024-08-05
- GitHub Advisory Database: [GHSA-7cc2-r658-7xpf](https://github.com/advisories/GHSA-7cc2-r658-7xpf), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2024-2602](https://pkg.go.dev/vuln/GO-2024-2602), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2024-27918](https://nvd.nist.gov/vuln/detail/CVE-2024-27918), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-27918 · Whole record: https://cve.day/CVE-2024-27918.json · Rebuilt by cve.day 2026-11-25T22:58:37.791Z
