{"answers":{"affected":"10 open source packages ship an affected version, including github.com/coder/coder/v2 and github.com/coder/coder. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-27918 in the wild and no public exploit code.","fix":"Upgrade github.com/coder/coder/v2 to a fixed version for your release line: 2.6.1, 2.7.3 or 2.8.4.","what":"CVE-2024-27918 is a high-severity authentication bypass vulnerability in coder, published on 6 Mar 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-27918 and fix it if it is affected.\n\nWhat it is: CVE-2024-27918 is a high-severity authentication bypass vulnerability in coder, published on 6 Mar 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-27918 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/coder/coder/v2 (Go): affected all versions; fixed in 2.6.1, 2.7.3, 2.8.4\n- github.com/coder/coder/v2 (Go): affected all versions; fixed in 2.6.1\n- github.com/coder/coder/v2 (Go): affected all versions; fixed in 2.6.1\n- github.com/coder/coder/v2 (Go): affected from 2.7.0; fixed in 2.7.3\n- github.com/coder/coder/v2 (Go): affected from 2.7.0; fixed in 2.7.3\n- github.com/coder/coder/v2 (Go): affected from 2.8.0; fixed in 2.8.4\n- github.com/coder/coder/v2 (Go): affected from 2.8.0; fixed in 2.8.4\n- github.com/coder/coder (Go): affected all versions; no fix listed\n- github.com/coder/coder (Go): affected all versions up to 0.27.3; no fix listed\n- github.com/coder/coder (Go): affected all versions up to 0.27.3; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-27918/ (Markdown: https://insights.sbomify.com/CVE-2024-27918/index.md)","id":"CVE-2024-27918","markdown":"https://insights.sbomify.com/CVE-2024-27918/index.md","name":"CVE-2024-27918","record":{"aliases":["GHSA-7cc2-r658-7xpf","GO-2024-2602"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["account_takeover","privilege_escalation"],"network_reachable":"yes","non_default_config":true,"product_category":"Coder development platform","requires_auth":"none","summary":"Attackers can bypass email domain restrictions to register unauthorized accounts on Coder instances using public OIDC providers.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"coder","vendor":"coder"}],"cvss":{"score":8.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"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.\n\nCoder 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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Coder's OIDC authentication allows email with partially matching domain to register","id":"CVE-2024-27918","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"auth_bypass","year":"2024"},"n_packages":10,"n_references":5,"next":{"headline":"HTTP/2: memory exhaustion due to CONTINUATION frame flood","id":"CVE-2024-27919"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/coder/coder","purl":"pkg:golang/github.com/coder/coder","source":"GO-2024-2602"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["0.27.3"],"package":"github.com/coder/coder","purl":null,"source":"GHSA-7cc2-r658-7xpf"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["0.27.3"],"package":"github.com/coder/coder","purl":"pkg:golang/github.com/coder/coder","source":"GHSA-7cc2-r658-7xpf"},{"ecosystem":"Go","fixed":["2.6.1","2.7.3","2.8.4"],"introduced":["0","2.7.0","2.8.0"],"last_affected":[],"package":"github.com/coder/coder/v2","purl":"pkg:golang/github.com/coder/coder/v2","source":"GO-2024-2602"},{"ecosystem":"Go","fixed":["2.6.1"],"introduced":["0"],"last_affected":[],"package":"github.com/coder/coder/v2","purl":null,"source":"GHSA-7cc2-r658-7xpf"},{"ecosystem":"Go","fixed":["2.6.1"],"introduced":["0"],"last_affected":[],"package":"github.com/coder/coder/v2","purl":"pkg:golang/github.com/coder/coder/v2","source":"GHSA-7cc2-r658-7xpf"},{"ecosystem":"Go","fixed":["2.7.3"],"introduced":["2.7.0"],"last_affected":[],"package":"github.com/coder/coder/v2","purl":null,"source":"GHSA-7cc2-r658-7xpf"},{"ecosystem":"Go","fixed":["2.7.3"],"introduced":["2.7.0"],"last_affected":[],"package":"github.com/coder/coder/v2","purl":"pkg:golang/github.com/coder/coder/v2","source":"GHSA-7cc2-r658-7xpf"},{"ecosystem":"Go","fixed":["2.8.4"],"introduced":["2.8.0"],"last_affected":[],"package":"github.com/coder/coder/v2","purl":null,"source":"GHSA-7cc2-r658-7xpf"},{"ecosystem":"Go","fixed":["2.8.4"],"introduced":["2.8.0"],"last_affected":[],"package":"github.com/coder/coder/v2","purl":"pkg:golang/github.com/coder/coder/v2","source":"GHSA-7cc2-r658-7xpf"}],"prev":{"headline":"Shopware's session is persistent in Cache for 404 pages","id":"CVE-2024-27917"},"products":["coder"],"published":"2024-03-06","related":[{"cvss_score":9.1,"headline":"Coder: PKCS#7 signature bypass in Azure instance identity allows unauthenticated agent token theft","id":"CVE-2026-46354","kev_date_added":null,"published":"2026-07-07"},{"cvss_score":8.7,"headline":"Coder's workspace app upsert allows cross-workspace agent rebinding via user-controlled app ID","id":"CVE-2026-55429","kev_date_added":null,"published":"2026-07-08"},{"cvss_score":8.3,"headline":"Coder vulnerable to SSH config injection via unsanitized server-supplied values in `coder config-ssh`","id":"CVE-2026-55427","kev_date_added":null,"published":"2026-07-07"},{"cvss_score":8.2,"headline":"Coder: Route hijacking through lack of validation of agent-supplied AllowedIPs in tailnet coordinator","id":"CVE-2026-55428","kev_date_added":null,"published":"2026-07-07"},{"cvss_score":8.1,"headline":"Coder vulnerable to workspace auto-creation via crafted URL parameters without user consent","id":"CVE-2026-44454","kev_date_added":null,"published":"2026-07-07"},{"cvss_score":8.1,"headline":"Coder's privilege escalation vulnerability could lead to a cross workspace compromise","id":"CVE-2025-58437","kev_date_added":null,"published":"2025-09-06"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-05","vendors":["coder"]},"summary":"Attackers can bypass email domain restrictions to register unauthorized accounts on Coder instances using public OIDC providers.","url":"https://insights.sbomify.com/CVE-2024-27918/"}