{"answers":{"affected":"9 open source packages ship an affected version, including github.com/grafana/grafana and grafana. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-3128 exists.","fix":"Upgrade github.com/grafana/grafana to a fixed version for your release line: 8.5.27, 9.2.20, 9.3.16 or 9.4.13.","what":"CVE-2023-3128 is a critical authentication bypass vulnerability in Grafana Grafana, published on 22 Jun 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-3128 and fix it if it is affected.\n\nWhat it is: CVE-2023-3128 is a critical authentication bypass vulnerability in Grafana Grafana, published on 22 Jun 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-3128 exists.\n\nAffected packages and fixed versions:\n- github.com/grafana/grafana (Go): affected all versions; fixed in 8.5.27\n- github.com/grafana/grafana (Go): affected all versions; fixed in 8.5.27\n- github.com/grafana/grafana (Go): affected from 9.0.0; fixed in 9.2.20\n- github.com/grafana/grafana (Go): affected from 9.0.0; fixed in 9.2.20\n- github.com/grafana/grafana (Go): affected from 9.3.0; fixed in 9.3.16\n- github.com/grafana/grafana (Go): affected from 9.3.0; fixed in 9.3.16\n- github.com/grafana/grafana (Go): affected from 9.4.0; fixed in 9.4.13\n- github.com/grafana/grafana (Go): affected from 9.4.0; fixed in 9.4.13\n- grafana (Bitnami): affected from 6.7.0; fixed in 8.5.27, 9.2.20, 9.3.16, 9.4.13, 9.5.4\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-2023-3128/ (Markdown: https://insights.sbomify.com/CVE-2023-3128/index.md)","id":"CVE-2023-3128","markdown":"https://insights.sbomify.com/CVE-2023-3128/index.md","name":"CVE-2023-3128","record":{"aliases":["ALSA-2023:4030","ALSA-2023:6972","BIT-grafana-2023-3128","GHSA-gxh2-6vvc-rrgp","GHSA-mpv3-g8m3-3fjc","RHSA-2023:4030","RLSA-2023:4030","UBUNTU-CVE-2023-3128","openSUSE-SU-2024:13018-1"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["account_takeover","security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Grafana monitoring platform","requires_auth":"none","summary":"Attackers can bypass authentication and take over accounts in Grafana when Azure AD OAuth is configured with a multi-tenant application.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GRAFANA","cpe":[{"product":"grafana","vendor":"grafana"}],"cvss":{"score":9.4,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-290","name":"Authentication Bypass by Spoofing"}],"description":"Grafana is validating Azure AD accounts based on the email claim. \n\nOn Azure AD, the profile email field is not unique and can be easily modified. \n\nThis leads to account takeover and authentication bypass when Azure AD OAuth is configured with a multi-tenant app.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Bitnami","Go","Red Hat:enterprise_linux:9::appstream","Rocky Linux:9","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2025-04-13","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-04-13T14:06:26Z","kind":"github_poc","ref":"https://github.com/spyata123/CVE-2023-3128","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"Grafana vulnerable to Authentication Bypass by Spoofing","id":"CVE-2023-3128","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"grafana:grafana","products":["grafana:grafana"],"type":"auth_bypass","year":"2023"},"n_packages":16,"n_references":3,"next":{"headline":"URL Shortify \u003c 1.7.0 - Admin+ Cross Site Scripting","id":"CVE-2023-3129"},"packages":[{"ecosystem":"Bitnami","fixed":["8.5.27","9.2.20","9.3.16","9.4.13","9.5.4"],"introduced":["6.7.0","9.2.0","9.3.0","9.4.0","9.5.0"],"last_affected":[],"package":"grafana","purl":"pkg:bitnami/grafana","source":"BIT-grafana-2023-3128"},{"ecosystem":"Go","fixed":["8.5.27"],"introduced":["0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":null,"source":"GHSA-mpv3-g8m3-3fjc"},{"ecosystem":"Go","fixed":["8.5.27"],"introduced":["0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"GHSA-mpv3-g8m3-3fjc"},{"ecosystem":"Go","fixed":["9.2.20"],"introduced":["9.0.0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":null,"source":"GHSA-mpv3-g8m3-3fjc"},{"ecosystem":"Go","fixed":["9.2.20"],"introduced":["9.0.0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"GHSA-mpv3-g8m3-3fjc"},{"ecosystem":"Go","fixed":["9.3.16"],"introduced":["9.3.0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":null,"source":"GHSA-mpv3-g8m3-3fjc"},{"ecosystem":"Go","fixed":["9.3.16"],"introduced":["9.3.0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"GHSA-mpv3-g8m3-3fjc"},{"ecosystem":"Go","fixed":["9.4.13"],"introduced":["9.4.0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":null,"source":"GHSA-mpv3-g8m3-3fjc"},{"ecosystem":"Go","fixed":["9.4.13"],"introduced":["9.4.0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"GHSA-mpv3-g8m3-3fjc"},{"ecosystem":"AlmaLinux:8","fixed":["9.2.10-7.el8_9.alma.1"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/almalinux/grafana","source":"ALSA-2023:6972"},{"ecosystem":"AlmaLinux:9","fixed":["9.0.9-3.el9_2.alma"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/almalinux/grafana","source":"ALSA-2023:4030"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:9.0.9-3.el9_2"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/redhat/grafana","source":"RHSA-2023:4030"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:9.0.9-3.el9_2"],"introduced":["0"],"last_affected":[],"package":"grafana-debuginfo","purl":"pkg:rpm/redhat/grafana-debuginfo","source":"RHSA-2023:4030"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:9.0.9-3.el9_2"],"introduced":["0"],"last_affected":[],"package":"grafana-debugsource","purl":"pkg:rpm/redhat/grafana-debugsource","source":"RHSA-2023:4030"},{"ecosystem":"Rocky Linux:9","fixed":["0:9.0.9-3.el9_2"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/rocky-linux/grafana?distro=rocky-linux-9\u0026epoch=0","source":"RLSA-2023:4030"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["10.0.1-1.1"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/opensuse/grafana\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:13018-1"}],"prev":{"headline":"Improper Authentication in iSTAR","id":"CVE-2023-3127"},"products":["Grafana","Grafana Enterprise"],"published":"2023-06-22","related":[{"cvss_score":7.5,"headline":"Grafana Path Traversal","id":"CVE-2021-43798","kev_date_added":"2025-10-09","published":"2021-12-07"},{"cvss_score":10,"headline":"Incorrect privilege assignment","id":"CVE-2025-41115","kev_date_added":null,"published":"2025-11-21"},{"cvss_score":9.8,"headline":"Grafana vulnerable to race condition allowing privilege escalation","id":"CVE-2022-39328","kev_date_added":null,"published":"2022-11-08"},{"cvss_score":9.8,"headline":"Auth bypass in n/a","id":"CVE-2022-28660","kev_date_added":null,"published":"2022-05-20"},{"cvss_score":9.8,"headline":"Information disclosure in n/a","id":"CVE-2022-26148","kev_date_added":null,"published":"2022-03-21"},{"cvss_score":9.8,"headline":"Grafana Authentication Bypass","id":"CVE-2018-15727","kev_date_added":null,"published":"2018-08-29"},{"cvss_score":9.4,"headline":"Grafana SQL Expressions allow for remote code execution","id":"CVE-2024-9264","kev_date_added":null,"published":"2024-10-18"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"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":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-02-13","vendors":["Grafana"]},"summary":"Attackers can bypass authentication and take over accounts in Grafana when Azure AD OAuth is configured with a multi-tenant application.","url":"https://insights.sbomify.com/CVE-2023-3128/"}