8.2

CVE-2024-27918: coder Improper Input Validation

CVSS: 8.2v3.1HighAnalyzed
AliasesGHSA-7cc2-r658-7xpfGO-2024-2602
Published 06-03-2024Last modified 05-08-2024

Vulnerability summary

CVE-2024-27918 is a high (CVSS 8.2) Improper Input Validation vulnerability in coder. EPSS estimates a 0.97% chance of exploitation in the next 30 days, higher than 61% of scored vulnerabilities.

Overall risk
33/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.2/10
010
High · v3.1 (CVE.org)
EPSS score
0.97%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 06-03-2024
    PublishedVulnerability first disclosed.
  2. 05-08-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.97%

Chance of exploitation in the next 30 days

Percentile

61%

Versus all other CVEs

30-day change

0.00 pp

From 0.97% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.97%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Coder1 product
  • coder< 2.6.1 | ≥ 2.7.0, < 2.7.3 | ≥ 2.8.0, < 2.8.4
Github.com/coder1 product
  • coder≤ 0.27.3 | All versions (No fix recorded)
Github.com/coder/coder1 product
  • v2≥ 2.7.0, < 2.7.3 | < 2.6.1 | ≥ 2.8.0, < 2.8.4

3 vendors · 3 products

References

7 links