cve.bz

CVE-2024-27918 coder coder: Improper Input Validation

8.2 highEPSS 1.0%Fix available

High (8.2) in coder coder. EPSS 1.0% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/coder/coder/v2 2.6.1, 2.7.3, 2.8.4.

On this page
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.

Severity

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
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 63rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2024-08-05. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-27918 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-27918?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-27918?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-27918 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
coder:coderbefore 2.6.1
coder:coderfrom 2.7.0 before 2.7.3
coder:coderfrom 2.8.0 before 2.8.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-7cc2-r658-7xpfGogithub.com/coder/coder/v2>=2.8.0 <2.8.42.8.4
GHSA-7cc2-r658-7xpfGogithub.com/coder/coder/v2>=2.7.0 <2.7.32.7.3
GHSA-7cc2-r658-7xpfGogithub.com/coder/coder/v2<2.6.12.6.1
GHSA-7cc2-r658-7xpfGogithub.com/coder/coder<=0.27.3no fix published
GO-2024-2602Gogithub.com/coder/coderall versionsno fix published
GO-2024-2602Gogithub.com/coder/coder/v2<2.6.1
>=2.7.0 <2.7.3
>=2.8.0 <2.8.4
2.6.1, 2.7.3, 2.8.4

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON