Summary
CVE-2025-70521 is a critical, unauthenticated OS command injection vulnerability in the management portal’s diagnostic ping tool of Fanvil x7a Android-based desk phone firmware (and the related Fanvil PA2S SIP gateway firmware). The tool fails to sanitize user-supplied input before passing it to the underlying Android operating system, allowing a remote attacker with no credentials to execute arbitrary shell commands on the device. Given the network attack vector, lack of required privileges/interaction, and full compromise of confidentiality, integrity, and availability, this vulnerability is rated CVSS 9.8 (Critical).
Technical details
- Root cause: The diagnostic "ping" feature exposed via the device’s management portal/WebSocket interface concatenates user-supplied target input (e.g., an IP address or hostname) directly into a system/shell command without proper validation or sanitization.
- Trigger condition: An attacker sends a crafted ping request (via the web management portal or its WebSocket handler) containing shell metacharacters appended to the target value — e.g. submitting a value such as
1.1.1.1; <command>— causing the appended command to be executed alongside the legitimate ping command. - Attack vector: Network-based and unauthenticated — no valid session, credentials, or user interaction is required to reach the vulnerable diagnostic endpoint.
- Impact: Full arbitrary command execution in the context of the underlying Android operating system, enabling device takeover, data exfiltration, persistence (e.g., writing files to device storage), and potential use of the phone as a foothold for further network access.
- Related issues: This flaw was disclosed as part of a broader set of vulnerabilities in the same Fanvil x7a/PA2S firmware, including broken access control on the WebSocket handler, missing CSRF protections on state-changing requests, and reflected XSS in the device log component — several of which can be chained to reach or amplify this command injection.
Affected software
- Fanvil x7a (Android-based IP phone) firmware version 2.6.0.1182
- Fanvil PA2S SIP gateway firmware version 2.12.44.9
Severity
- CVSS v3.1 Base Score: 9.8 (Critical)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: Check Fanvil’s official firmware release channel for an updated build of the x7a/PA2S firmware beyond version 2.6.0.1182 / 2.12.44.9 that addresses this issue, and apply it as soon as it is available. No fixed version has been confirmed as of this writing — monitor Fanvil’s firmware release page for updates.
- If no patch is available:
- Restrict network access to device management portals to trusted management/VLAN segments only; do not expose them to the internet.
- Disable or restrict access to the diagnostic ping tool and management WebSocket interface if not required for operations.
- Place affected devices behind a firewall or VPN and monitor for anomalous WebSocket traffic or unexpected outbound connections from the devices.
- Review device logs and filesystem for signs of unauthorized command execution or persistence artifacts.

