# CVE-2022-23498: When query caching is enabled in Grafana users can query another users session

Status: published. Published: 2023-02-03. Updated: 2026-11-03.

Grafana is an open-source platform for monitoring and observability. When datasource query caching is enabled, Grafana caches all headers, including `grafana_session`. As a result, any user that queries a datasource where the caching is enabled can acquire another user’s session. To mitigate the vulnerability you can disable datasource query caching for all datasources. This issue has been patched in versions 9.2.10 and 9.3.4.


## Remediation

No remediation reported in collected sources

## Affected products and versions

- grafana / grafana: >= 8.3.0-beta1, < 9.2.10 (affected). Source: CNA: GitHub_M

## NVD configuration conditions

Affected CPE matches depend on the following AND/OR and negation conditions:

```json
[
  {
    "negate": false,
    "nodes": [
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "9.2.10",
            "versionStartIncluding": "8.3.1",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "9.3.4",
            "versionStartIncluding": "9.3.0",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:a:grafana:grafana:8.3.0:beta1:*:*:*:*:*:*",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:a:grafana:grafana:8.3.0:beta2:*:*:*:*:*:*",
            "vulnerable": true
          }
        ],
        "negate": false,
        "operator": "OR"
      }
    ],
    "operator": "OR"
  }
]
```

## Severity and prioritization

- CVSS 3.1: 7.1 (high); CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L; source: CNA: GitHub_M

- CVSS 3.1: 8.8 (high); CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H; source: NVD: nvd@nist.gov

- CVSS 3.1: 7.1 (high); CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L; source: NVD: security-advisories@github.com

- CISA KEV: No listing in collected sources

- EPSS: 1.13% as of 2026-11-03; percentile 66.48%

- SSVC: exploitation none; automatable no; technical impact total; source ADP: CISA-ADP

- Weaknesses: CWE-200

## Exploit evidence

- exploit: https://github.com/grafana/grafana/security/advisories/GHSA-2j8f-6whh-frc8 (security-advisories@github.com)
- exploit: https://github.com/grafana/grafana/security/advisories/GHSA-2j8f-6whh-frc8 (af854a3a-2127-422b-91ae-364da2661108)

## References

- https://github.com/grafana/grafana/security/advisories/GHSA-2j8f-6whh-frc8 (CNA: GitHub_M; x_refsource_CONFIRM)

- https://security.netapp.com/advisory/ntap-20230309-0007/ (ADP: CVE)

- https://github.com/grafana/grafana/security/advisories/GHSA-2j8f-6whh-frc8 (ADP: CVE; x_refsource_CONFIRM, x_transferred)

- https://github.com/grafana/grafana/security/advisories/GHSA-2j8f-6whh-frc8 (security-advisories@github.com; Exploit, Mitigation, Third Party Advisory)

- https://github.com/grafana/grafana/security/advisories/GHSA-2j8f-6whh-frc8 (af854a3a-2127-422b-91ae-364da2661108; Exploit, Mitigation, Third Party Advisory)

- https://security.netapp.com/advisory/ntap-20230309-0007/ (af854a3a-2127-422b-91ae-364da2661108)

## Provenance

- CNA: GitHub_M: https://www.cve.org/CVERecord?id=CVE-2022-23498; retrieved 2026-11-04; source updated 2026-11-03

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2022-23498; retrieved 2026-11-04; source updated 2026-11-03

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2022-23498; retrieved 2026-11-03; source updated Not reported

Revision: 90e30fe0121c032d63baffd829eb3861cc883b741cd962c84fea06289206835a

Canonical: https://y2.dev/cve/CVE-2022-23498

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.