Summary
CVE-2025-70518 is a critical command injection vulnerability in the diagnostic ping tool of the Fanvil X7A management portal (firmware version 2.6.0.1182). The tool fails to securely handle user-supplied input, allowing any unauthenticated, remote attacker to inject arbitrary operating system commands and execute code on the device’s underlying Android OS. The flaw carries the maximum CVSS v3.1 score of 10.0, reflecting full compromise of confidentiality, integrity, and availability with no authentication or user interaction required.
Technical details
- Root cause: The management portal’s diagnostic ping feature passes user-supplied input (the target host/IP) directly into a system-level ping command without sanitizing shell metacharacters (CWE-77: Improper Neutralization of Special Elements used in a Command).
- Trigger conditions: An attacker opens a WebSocket connection to the device’s
/Pingendpoint and submits a crafted value such as1.1.1.1; touch /sdcard/pwn, appending a secondary shell command after a semicolon. - Attack vector: Network-based, unauthenticated — no credentials, session, or user interaction are needed to reach or exploit the vulnerable endpoint.
- Impact: Successful exploitation results in arbitrary command execution on the device’s underlying Android operating system, giving an attacker full control of the phone, including the ability to pivot further into the network, exfiltrate data, or disrupt device availability.
Affected software
- Fanvil X7A firmware version 2.6.0.1182
Severity
- CVSS v3.1 Base Score: 10.0 (Critical)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: Check Fanvil’s official firmware download page for the X7A model and update to a firmware release newer than 2.6.0.1182 once Fanvil publishes a fix addressing this issue; no patched version was confirmed as available in Fanvil’s public advisory channels at the time of this writing.
- If no patch is available:
- Restrict network access to the device’s management portal to trusted management networks/VLANs only; do not expose it to the public internet.
- Place affected devices behind a firewall or VPN and block unsolicited inbound connections to the web/WebSocket management interface.
- Disable or restrict use of the diagnostic ping tool in the management portal if the firmware allows it.
- Monitor device logs and network traffic for unexpected WebSocket connections to the
/Pingendpoint or anomalous shell command artifacts on the device.

