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
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.
- Published
- Aug 29, 2018
- Updated
- Jun 16, 2026
- EPSS
- 64.3% · 99th percentile
- CWE
- CWE-287
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
58
Plan
Add it to your regular patch cycle.
- CVSS
- 39 / 40 · 9.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 19 / 30 · 64.3%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| grafana | grafana | cpe:2.3:a:grafana:grafana |
| redhat | ceph storage | cpe:2.3:a:redhat:ceph_storage |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- grafana grafana2.0.0 and later · up to 2.1.2 inclusive
- grafana grafana3.0.0 and later · up to 3.1.1 inclusive
- grafana grafana4.0.0 and later · before 4.6.4
- grafana grafana5.0.0 and later · before 5.2.3
- redhat ceph storage3.0
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Go | github.com/grafana/grafana | from 5.0.0 · before 5.2.3 | 5.2.3 |
| Go | github.com/grafana/grafana | from 5.0.0+incompatible · before 5.2.3+incompatible | 5.2.3+incompatible |
| Go | github.com/grafana/grafana | before 4.6.4 | 4.6.4 |
| Go | github.com/grafana/grafana | before 4.6.4+incompatible | 4.6.4+incompatible |
| Red Hat:ceph_storage:3::el7 | grafana | before 0:5.2.4-1.el7cp | 0:5.2.4-1.el7cp |
| Red Hat:storage:3.4:na:el7 | tendrl-gluster-integration | before 0:1.6.3-13.el7rhgs | 0:1.6.3-13.el7rhgs |
| Red Hat:storage:3.4:na:el7 | tendrl-node-agent | before 0:1.6.3-11.el7rhgs | 0:1.6.3-11.el7rhgs |
| Red Hat:storage:3.4:wa:el7 | grafana | before 0:4.6.4-1.el7rhgs | 0:4.6.4-1.el7rhgs |
| Red Hat:storage:3.4:wa:el7 | tendrl-ansible | before 0:1.6.3-10.el7rhgs | 0:1.6.3-10.el7rhgs |
| Red Hat:storage:3.4:wa:el7 | tendrl-api | before 0:1.6.3-8.el7rhgs | 0:1.6.3-8.el7rhgs |
| Red Hat:storage:3.4:wa:el7 | tendrl-api-httpd | before 0:1.6.3-8.el7rhgs | 0:1.6.3-8.el7rhgs |
| Red Hat:storage:3.4:wa:el7 | tendrl-grafana-plugins | before 0:1.6.3-16.el7rhgs | 0:1.6.3-16.el7rhgs |
| Red Hat:storage:3.4:wa:el7 | tendrl-monitoring-integration | before 0:1.6.3-16.el7rhgs | 0:1.6.3-16.el7rhgs |
| Red Hat:storage:3.4:wa:el7 | tendrl-ui | before 0:1.6.3-14.el7rhgs | 0:1.6.3-14.el7rhgs |
| SUSE:Enterprise Storage 5 | grafana | before 4.6.5-3.10.1 | 4.6.5-3.10.1 |
| SUSE:HPE Helion OpenStack 8 | ardana-ansible | before 8.0+git.1566374355.c509923-3.67.3 | 8.0+git.1566374355.c509923-3.67.3 |
| SUSE:HPE Helion OpenStack 8 | ardana-glance | before 8.0+git.1566376789.be0fe01-3.17.3 | 8.0+git.1566376789.be0fe01-3.17.3 |
| SUSE:HPE Helion OpenStack 8 | ardana-horizon | before 8.0+git.1565816064.5d4f73f-3.18.3 | 8.0+git.1565816064.5d4f73f-3.18.3 |
| SUSE:HPE Helion OpenStack 8 | ardana-input-model | before 8.0+git.1566517401.98450e6-3.33.3 | 8.0+git.1566517401.98450e6-3.33.3 |
| SUSE:HPE Helion OpenStack 8 | ardana-manila | before 8.0+git.1568835837.2452e7a-1.21.3 | 8.0+git.1568835837.2452e7a-1.21.3 |
| SUSE:HPE Helion OpenStack 8 | ardana-neutron | before 8.0+git.1568220097.74ee4b4-3.33.3 | 8.0+git.1568220097.74ee4b4-3.33.3 |
| SUSE:HPE Helion OpenStack 8 | ardana-nova | before 8.0+git.1566902754.c58ff69-3.35.3 | 8.0+git.1566902754.c58ff69-3.35.3 |
| SUSE:HPE Helion OpenStack 8 | ardana-octavia | before 8.0+git.1568373448.bcaee7e-3.20.3 | 8.0+git.1568373448.bcaee7e-3.20.3 |
| SUSE:HPE Helion OpenStack 8 | ardana-tempest | before 8.0+git.1566471887.fd2fec7-3.27.3 | 8.0+git.1566471887.fd2fec7-3.27.3 |
+75
Same product
grafana: all recordsOther highest-scoring records for the same primary product.
- CVE-2021-39226Snapshot authentication bypass in grafanaKEV89Now
- CVE-2021-43798Grafana path traversalKEV87Now
- CVE-2024-9264Grafana SQL Expressions allow for remote code execution65This week
- CVE-2020-13379The avatar feature in Grafana 3.0.1 through 7.0.1 has an SSRF Incorrect Access Control issue.62This week
- CVE-2022-31097Stored XSS in Grafana's Unified Alerting55Plan
- CVE-2022-26148An issue was discovered in Grafana through 7.3.4, when integrated with Zabbix.55Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Go:github.com/grafana/grafana | 4.6.4 | Package registry (OSV) |
| Go:github.com/grafana/grafana | 4.6.4+incompatible | Package registry (OSV) |
| Go:github.com/grafana/grafana | 5.2.3 | Package registry (OSV) |
| Go:github.com/grafana/grafana | 5.2.3+incompatible | Package registry (OSV) |
| red hat:grafana | 0:4.6.4-1.el7rhgs · Red Hat:storage:3.4:wa:el7 | Package registry (OSV) |
| red hat:tendrl-ansible | 0:1.6.3-10.el7rhgs · Red Hat:storage:3.4:wa:el7 | Package registry (OSV) |
| red hat:tendrl-api | 0:1.6.3-8.el7rhgs · Red Hat:storage:3.4:wa:el7 | Package registry (OSV) |
| red hat:tendrl-api-httpd | 0:1.6.3-8.el7rhgs · Red Hat:storage:3.4:wa:el7 | Package registry (OSV) |
| red hat:tendrl-gluster-integration | 0:1.6.3-13.el7rhgs · Red Hat:storage:3.4:na:el7 | Package registry (OSV) |
| red hat:tendrl-grafana-plugins | 0:1.6.3-16.el7rhgs · Red Hat:storage:3.4:wa:el7 | Package registry (OSV) |
| red hat:tendrl-monitoring-integration | 0:1.6.3-16.el7rhgs · Red Hat:storage:3.4:wa:el7 | Package registry (OSV) |
| red hat:tendrl-node-agent | 0:1.6.3-11.el7rhgs · Red Hat:storage:3.4:na:el7 | Package registry (OSV) |
| red hat:tendrl-ui | 0:1.6.3-14.el7rhgs · Red Hat:storage:3.4:wa:el7 | Package registry (OSV) |
| suse:crowbar-core | 4.0+git.1570463621.40b11cd48-9.54.1 · SUSE:OpenStack Cloud 7 | Package registry (OSV) |
| suse:crowbar-openstack | 4.0+git.1569429513.e7016b2b6-9.59.1 · SUSE:OpenStack Cloud 7 | Package registry (OSV) |
| suse:grafana | 4.6.5-1.11.2 · SUSE:OpenStack Cloud 7 | Package registry (OSV) |
| suse:novnc | 1.0.0-12.1 · SUSE:OpenStack Cloud 7 | Package registry (OSV) |
| suse:openstack-keystone | 10.0.3~dev9-7.18.2 · SUSE:OpenStack Cloud 7 | Package registry (OSV) |
| suse:openstack-keystone-doc | 10.0.3~dev9-7.18.2 · SUSE:OpenStack Cloud 7 | Package registry (OSV) |
| suse:openstack-neutron | 9.4.2~dev21-7.32.1 · SUSE:OpenStack Cloud 7 | Package registry (OSV) |
| suse:openstack-neutron-doc | 9.4.2~dev21-7.32.1 · SUSE:OpenStack Cloud 7 | Package registry (OSV) |
| suse:openstack-neutron-lbaas | 9.2.2~dev11-4.18.3 · SUSE:OpenStack Cloud 7 | Package registry (OSV) |
| suse:openstack-neutron-lbaas-doc | 9.2.2~dev11-4.18.3 · SUSE:OpenStack Cloud 7 | Package registry (OSV) |
| suse:openstack-nova | 14.0.11~dev13-4.34.3 · SUSE:OpenStack Cloud 7 | Package registry (OSV) |
| suse:openstack-nova-doc | 14.0.11~dev13-4.34.2 · SUSE:OpenStack Cloud 7 | Package registry (OSV) |
Exploit status
Weaponized
A ready exploit tool or active in-the-wild use is known for this vulnerability. This should be your top priority.
Evidence
- Metasploit module ×1
- Proof-of-concept repository on GitHub ×1
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Metasploit module | auxiliary/admin/http/grafana_auth_bypassGrafana 2.0 through 5.2.2 authentication bypass for LDAP and OAuthauxiliary | 2019-08-14 |
| Proof-of-concept repository on GitHub | stars:22 | 2018-08-29 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- First PoCsame day
- Published
- Metasploit+350 d
- TodaySep 30, 2026+2954 d
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
- Grafana Labs - Vulnerability Disclosure Program (VDP)Intigriti · disclosure only (VDP) · grafana/grafana
- Grafana Labs - Vulnerability Disclosure Program (VDP)Intigriti · disclosure only (VDP)
The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-287 · Improper AuthenticationCVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Root cause
Authentication is added route by route instead of being enforced in one place. When a route added later bypasses the shared middleware, the session check never runs for it.
The bug in code
The whole CWE-287 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
app.use("/admin", requireSession, adminRouter);
// Route added later skips the middlewareapp.post("/admin-api/config", updateConfig);Fixed
const admin = express.Router();admin.use(requireSession, requireRole("admin"));
admin.post("/config", updateConfig);app.use("/admin", admin);Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Authentication AbuseCAPEC-114Medium
- Authentication BypassCAPEC-115Medium
- Identity SpoofingCAPEC-151likelihood: Medium · Medium
- Fake the Source of DataCAPEC-194Medium
- Exploiting Trust in ClientCAPEC-22likelihood: High · High
- Utilizing REST's Trust in the System Resource to Obtain Sensitive DataCAPEC-57likelihood: Medium · Very High
- Session HijackingCAPEC-593likelihood: High · Very High
- Token ImpersonationCAPEC-633Medium
ATT&CK techniques
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- www.securityfocus.com/bid/105184
- access.redhat.com/errata/RHSA-2018:3829
- access.redhat.com/errata/RHSA-2019:0019
- grafana.com/blog/2018/08/29/grafana-5.2.3-and-4.6.4-released-with-important-security-fix/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.