{"answers":{"affected":"5 open source packages ship an affected version, including github.com/grafana/grafana. It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-15727 exists.","fix":"Upgrade github.com/grafana/grafana to a fixed version for your release line: 4.6.4+incompatible, 5.2.3+incompatible, 4.6.4 or 5.2.3.","what":"CVE-2018-15727 is a critical authentication bypass vulnerability in Grafana Grafana, published on 29 Aug 2018. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-15727 and fix it if it is affected.\n\nWhat it is: CVE-2018-15727 is a critical authentication bypass vulnerability in Grafana Grafana, published on 29 Aug 2018. 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-2018-15727 exists.\n\nAffected packages and fixed versions:\n- github.com/grafana/grafana (Go): affected all versions; fixed in 4.6.4+incompatible, 5.2.3+incompatible\n- github.com/grafana/grafana (Go): affected all versions; fixed in 4.6.4\n- github.com/grafana/grafana (Go): affected all versions; fixed in 4.6.4\n- github.com/grafana/grafana (Go): affected from 5.0.0; fixed in 5.2.3\n- github.com/grafana/grafana (Go): affected from 5.0.0; fixed in 5.2.3\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-2018-15727/ (Markdown: https://insights.sbomify.com/CVE-2018-15727/index.md)","id":"CVE-2018-15727","markdown":"https://insights.sbomify.com/CVE-2018-15727/index.md","name":"CVE-2018-15727","record":{"aliases":["CVE-2018-558213","GHSA-rgjg-66cx-5x9m","GO-2022-0707","RHSA-2018:3829","UBUNTU-CVE-2018-15727"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["account_takeover","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Grafana monitoring platform","requires_auth":"none","summary":"Attackers can bypass authentication and take over accounts by generating valid remember-me cookies for LDAP or OAuth users.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"grafana","vendor":"grafana"},{"product":"ceph_storage","vendor":"redhat"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"}],"description":"Grafana 2.x, 3.x, and 4.x before 4.6.4 and 5.x before 5.2.3 allows authentication bypass because an attacker can generate a valid \"remember me\" cookie knowing only a username of an LDAP or OAuth user.","ecosystems":["Go","Red Hat:storage:3.4:na:el7","Red Hat:storage:3.4:wa:el7"],"exploits":{"exploitdb":0,"first_seen":"2018-08-29","github_poc":1,"max_poc_stars":23,"metasploit":1,"nuclei":0,"refs":[{"date":"2018-08-29T16:35:22Z","kind":"github_poc","ref":"https://github.com/u238/grafana-CVE-2018-15727","stars":23,"title":"a small utility to generate a cookie in order to exploit a grafana vulnerability (CVE-2018-15727)"},{"date":"2019-08-14","kind":"metasploit","ref":"auxiliary/admin/http/grafana_auth_bypass","stars":null,"title":"Grafana 2.0 through 5.2.2 authentication bypass for LDAP and OAuth"}],"tier":"weaponised"},"has_fix":true,"headline":"Grafana Authentication Bypass","id":"CVE-2018-15727","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":"grafana:grafana","products":["grafana:grafana"],"type":"auth_bypass","year":"2018"},"n_packages":15,"n_references":4,"next":{"headline":"Code injection in n/a","id":"CVE-2018-15728"},"packages":[{"ecosystem":"Go","fixed":["4.6.4+incompatible","5.2.3+incompatible"],"introduced":["0","5.0.0+incompatible"],"last_affected":[],"package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"GO-2022-0707"},{"ecosystem":"Go","fixed":["4.6.4"],"introduced":["0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":null,"source":"GHSA-rgjg-66cx-5x9m"},{"ecosystem":"Go","fixed":["4.6.4"],"introduced":["0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"GHSA-rgjg-66cx-5x9m"},{"ecosystem":"Go","fixed":["5.2.3"],"introduced":["5.0.0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":null,"source":"GHSA-rgjg-66cx-5x9m"},{"ecosystem":"Go","fixed":["5.2.3"],"introduced":["5.0.0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"GHSA-rgjg-66cx-5x9m"},{"ecosystem":"Red Hat:storage:3.4:na:el7","fixed":["0:1.6.3-13.el7rhgs"],"introduced":["0"],"last_affected":[],"package":"tendrl-gluster-integration","purl":"pkg:rpm/redhat/tendrl-gluster-integration","source":"RHSA-2018:3829"},{"ecosystem":"Red Hat:storage:3.4:na:el7","fixed":["0:1.6.3-11.el7rhgs"],"introduced":["0"],"last_affected":[],"package":"tendrl-node-agent","purl":"pkg:rpm/redhat/tendrl-node-agent","source":"RHSA-2018:3829"},{"ecosystem":"Red Hat:storage:3.4:wa:el7","fixed":["0:4.6.4-1.el7rhgs"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/redhat/grafana","source":"RHSA-2018:3829"},{"ecosystem":"Red Hat:storage:3.4:wa:el7","fixed":["0:1.6.3-10.el7rhgs"],"introduced":["0"],"last_affected":[],"package":"tendrl-ansible","purl":"pkg:rpm/redhat/tendrl-ansible","source":"RHSA-2018:3829"},{"ecosystem":"Red Hat:storage:3.4:wa:el7","fixed":["0:1.6.3-8.el7rhgs"],"introduced":["0"],"last_affected":[],"package":"tendrl-api","purl":"pkg:rpm/redhat/tendrl-api","source":"RHSA-2018:3829"},{"ecosystem":"Red Hat:storage:3.4:wa:el7","fixed":["0:1.6.3-8.el7rhgs"],"introduced":["0"],"last_affected":[],"package":"tendrl-api-httpd","purl":"pkg:rpm/redhat/tendrl-api-httpd","source":"RHSA-2018:3829"},{"ecosystem":"Red Hat:storage:3.4:wa:el7","fixed":["0:1.6.3-16.el7rhgs"],"introduced":["0"],"last_affected":[],"package":"tendrl-grafana-plugins","purl":"pkg:rpm/redhat/tendrl-grafana-plugins","source":"RHSA-2018:3829"},{"ecosystem":"Red Hat:storage:3.4:wa:el7","fixed":["0:1.6.3-16.el7rhgs"],"introduced":["0"],"last_affected":[],"package":"tendrl-monitoring-integration","purl":"pkg:rpm/redhat/tendrl-monitoring-integration","source":"RHSA-2018:3829"},{"ecosystem":"Red Hat:storage:3.4:wa:el7","fixed":["0:1.6.3-11.el7rhgs"],"introduced":["0"],"last_affected":[],"package":"tendrl-node-agent","purl":"pkg:rpm/redhat/tendrl-node-agent","source":"RHSA-2018:3829"},{"ecosystem":"Red Hat:storage:3.4:wa:el7","fixed":["0:1.6.3-14.el7rhgs"],"introduced":["0"],"last_affected":[],"package":"tendrl-ui","purl":"pkg:rpm/redhat/tendrl-ui","source":"RHSA-2018:3829"}],"prev":{"headline":"Privilege escalation in n/a","id":"CVE-2018-15726"},"products":["n/a"],"published":"2018-08-29","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.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":"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":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"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":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"Attackers can bypass authentication and take over accounts by generating valid remember-me cookies for LDAP or OAuth users.","url":"https://insights.sbomify.com/CVE-2018-15727/"}