{"id":"CVE-2024-58398","aliases":["CVE-2024-58398","GHSA-wcx9-ccpj-hx3c","GO-2024-3228"],"related":[],"kind":"vulnerability","state":"published","title":"Coder 2.3.1 before 2.16.1 Open Redirect via Login Page redirect Parameter","summary":"Coder 2.3.1 before 2.14.4, 2.15.x before 2.15.3, and 2.16.0 before 2.16.1 contains an open redirect vulnerability in the login page because the redirect query parameter is improperly sanitized. Attackers can craft a Coder login URL that, when clicked by a logged-in user, redirects the victim to an attacker-controlled website for phishing.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Coder 2.3.1 before 2.14.4, 2.15.x before 2.15.3, and 2.16.0 before 2.16.1 contains an open redirect vulnerability in the login page because the redirect query parameter is improperly sanitized. Attackers can craft a Coder login URL that, when clicked by a logged-in user, redirects the victim to an attacker-controlled website for phishing.","source":"cvelist"},{"lang":"en","text":"### Summary\nAn issue on Coder's login page allows attackers to craft a Coder URL that when clicked by a logged in user could redirect them to a website the attacker controls, e.g. https://google.com.\n\n### Details\nOn the login page, Coder checks for the presence of a `redirect` query parameter. On successful login, the user would be redirected to the location of the parameter. Improper sanitization allows attackers to specify a URL outside of the Coder application to redirect users to.\n\n### Impact\nCoder users could potentially be redirected to a untrusted website if tricked into clicking a URL crafted by the attacker. Coder authentication tokens are **not** leaked to the resulting website.\n\nTo check if your deployment is vulnerable, visit the following URL for your Coder deployment:\n- `https://<coder url>/login?redirect=https%3A%2F%2Fcoder.com%2Fdocs`\n\n### Patched Versions\nThis vulnerability is remedied in\n- v2.16.1\n- v2.15.3\n- v2.14.4\n\nAll versions prior to 2.3.1 are not affected.\n\n### Thanks\n- https://github.com/jchristov\n\n### References\nhttps://github.com/coder/coder/security/advisories/GHSA-wcx9-ccpj-hx3c\nhttps://github.com/coder/coder/commit/69c1d981e3131e50d52b01f6a360abadaad699e6","format":"markdown","source":"ghsa"},{"lang":"en","text":"Coder vulnerable to post-auth URL redirection to untrusted site ('Open Redirect') in github.com/coder/coder","format":"markdown","source":"go"},{"lang":"es","text":"Coder 2.3.1, versiones anteriores a 2.14.4; 2.15.x, versiones anteriores a 2.15.3; y 2.16.0, versiones anteriores a 2.16.1, contiene una vulnerabilidad de redirección abierta en la página de inicio de sesión porque el parámetro de consulta redirect no se depura correctamente. Los atacantes pueden crear una URL de inicio de sesión de Coder que, al ser pulsada por un usuario autenticado, redirige a la víctima a un sitio web controlado por el atacante para phishing.","source":"nvd"}],"published":"2024-10-28T18:31:57.000Z","modified":"2026-11-09T10:10:00.217Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","score":5.3,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"type":"semver","introduced":"2.16.0","fixed":"2.16.1","status":"affected"},{"type":"semver","version":"2.16.1","status":"unaffected"}],"vendor":"coder","product":"coder","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.15.0","fixed":"2.15.3","status":"affected"},{"type":"semver","version":"2.15.3","status":"unaffected"}],"vendor":"coder","product":"coder","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.3.1","fixed":"2.14.4","status":"affected"},{"type":"semver","version":"2.14.4","status":"unaffected"}],"vendor":"coder","product":"coder","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.16.0","status":"affected","fixed":"2.16.1"}],"ecosystem":"Go","package":"github.com/coder/coder/v2","purl":"pkg:golang/github.com/coder/coder/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.15.0","status":"affected","fixed":"2.15.3"}],"ecosystem":"Go","package":"github.com/coder/coder/v2","purl":"pkg:golang/github.com/coder/coder/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.3.1","status":"affected","fixed":"2.14.4"}],"ecosystem":"Go","package":"github.com/coder/coder/v2","purl":"pkg:golang/github.com/coder/coder/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/coder/coder","purl":"pkg:golang/github.com/coder/coder","source":"go"},{"ranges":[{"type":"semver","introduced":"2.3.1","status":"affected","fixed":"2.14.4"},{"type":"semver","introduced":"2.15.0","status":"affected","fixed":"2.15.3"},{"type":"semver","introduced":"2.16.0","status":"affected","fixed":"2.16.1"}],"ecosystem":"Go","package":"github.com/coder/coder/v2","purl":"pkg:golang/github.com/coder/coder/v2","source":"go"}],"references":[{"url":"https://github.com/coder/coder/security/advisories/GHSA-wcx9-ccpj-hx3c","tags":["advisory","vendor-advisory","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/coder/coder/commit/69c1d981e3131e50d52b01f6a360abadaad699e6","tags":["fix","patch","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://www.vulncheck.com/advisories/coder-2.3.1-before-2.16.1-open-redirect-via-login-page-redirect-parameter","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/coder/coder","tags":["package"],"sources":["ghsa"]}],"credits":["jchristov"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-21T21:34:49.806Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-58398","url":"https://www.cve.org/CVERecord?id=CVE-2024-58398","licence":"CVE Terms of Use","modified":"2026-10-21T21:34:59.156Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wcx9-ccpj-hx3c","url":"https://github.com/advisories/GHSA-wcx9-ccpj-hx3c","licence":"CC-BY-4.0","modified":"2026-10-18T10:55:48.018Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-3228","url":"https://pkg.go.dev/vuln/GO-2024-3228","licence":"CC-BY-4.0","modified":"2026-10-18T10:55:48.018Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-58398","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58398","licence":"Public domain","modified":"2026-11-09T10:10:00.217Z"}],"updatedAt":"2026-11-25T22:58:53.080Z","epss":{"score":0.00268,"percentile":0.20274,"date":"2026-12-01T12:00:22.000Z"}}