CVE-2026-12814: Comfast CF-WR631AX V3 Command Injection Vulnerability
Comfast CF-WR631AX V3 routers running firmware version 2.7.0.8 and earlier contain a command injection vulnerability in the ping configuration API endpoint. An authenticated attacker can manipulate the destination parameter to execute arbitrary operating system commands on the router. The vulnerability is remotely exploitable and proof-of-concept code has been published, though the vendor has not engaged on the disclosure or released patches.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 6.3 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
- Weaknesses (CWE)
- CWE-77, CWE-78
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-06-21 / 2026-06-22
NVD description (verbatim)
A flaw has been found in Comfast CF-WR631AX V3 up to 2.7.0.8. This issue affects the function system of the file /cgi-bin/mbox-config?section=ping_config of the component API Endpoint. This manipulation of the argument destination causes os command injection. The attack is possible to be carried out remotely. The exploit has been published and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
5 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-12814 is an OS command injection flaw in the Comfast CF-WR631AX V3 router's API endpoint at /cgi-bin/mbox-config?section=ping_config. The vulnerability exists in the ping_config function where the destination argument is not properly sanitized before being passed to system calls. An authenticated user can inject shell metacharacters into the destination field, allowing execution of arbitrary commands with the privileges of the router's web service. The attack requires valid credentials (CVSS vector indicates PR:L), but can be carried out entirely over the network without user interaction.
Business impact
Organizations using Comfast CF-WR631AX V3 routers as network access points face risk of complete router compromise by authenticated users. An attacker with legitimate credentials—or those obtained through phishing or credential compromise—can gain shell access to execute commands, potentially leading to network traffic interception, lateral movement into internal systems, malware deployment, or denial of service. The lack of vendor responsiveness means no official timeline exists for remediation, leaving organizations to implement compensating controls.
Affected systems
Comfast CF-WR631AX V3 routers with firmware version 2.7.0.8 and earlier versions are affected. The vulnerability requires authentication, so only users with API access or web interface credentials can exploit it directly. Organizations should audit which users have access to the router's management interface and inventory all CF-WR631AX V3 devices in use.
Exploitability
This vulnerability has a published proof-of-concept, increasing exploitation likelihood. The attack requires valid router credentials and network access to the management interface; in many deployments, the web interface may be restricted to internal networks or VPNs, which limits external exposure. However, internal threat actors or users with compromised credentials can exploit it trivially once authenticated. The straightforward nature of command injection and the availability of working exploit code mean security teams should treat this as actively exploitable.
Remediation
Comfast has not released a patched firmware version despite early vendor notification. Organizations should contact Comfast directly to request a security update and inquire about the disclosure response status. As an interim measure, restrict management interface access via network segmentation, firewall rules, and VPN requirements. Consider disabling the ping configuration API endpoint if not operationally required. Monitor for suspicious API activity targeting the /cgi-bin/mbox-config endpoint.
Patch guidance
Verify against the Comfast vendor advisory for any available firmware updates beyond version 2.7.0.8. Organizations should establish a process to check Comfast's security advisories regularly, as the vendor's communication history on this issue has been unclear. If a patch is released, test it in a non-production environment before deploying to ensure compatibility with your network configuration. Consider implementing automatic firmware update policies for future security releases.
Detection guidance
Monitor HTTP/HTTPS logs for requests to /cgi-bin/mbox-config with parameters containing shell metacharacters (backticks, pipes, semicolons, ampersands, dollar signs, parentheses) in the destination or ping_config fields. Set up alerts for authentication attempts to the router's management interface followed by API endpoint calls. Review router access logs for unexpected command execution or error messages from the ping function. Implement network-based intrusion detection rules to flag suspicious payloads sent to this endpoint.
Why prioritize this
Although the CVSS score is 6.3 (Medium), the combination of published exploits, lack of vendor responsiveness, and the router's central network position justifies prioritization. Routers are high-value targets for lateral movement and persistence. The authentication requirement somewhat limits attack surface compared to unauthenticated RCE, but credential compromise is common. Organizations should patch or mitigate this issue before lower-severity vulnerabilities affecting less critical systems.
Risk score, explained
The CVSS 3.1 score of 6.3 reflects the Medium severity driven by network attack vector, low complexity, and requirement for low-privilege authentication. The impact is limited to confidentiality, integrity, and availability at the application level rather than full system compromise, which caps the severity below 7.0. However, in context, a router compromise has outsized business risk due to its network position; the published exploit and vendor non-responsiveness elevate practical risk above the base score alone.
Frequently asked questions
Our Comfast routers are only accessible from internal networks via VPN. Does this vulnerability still matter?
Yes. The vulnerability still poses risk from insider threats, compromised employee credentials, or lateral movement by attackers already inside your network. If an attacker breaches your VPN or internal systems, they can exploit this to pivot through the router. Additionally, verify that your management interface truly requires VPN; misconfigured network segments or forgotten rules may expose it more broadly than intended.
Is there a workaround if we can't replace the router immediately?
Implement network-level mitigations: restrict API endpoint access via firewall rules, limit management interface access to trusted IP ranges, enforce strong authentication and multi-factor authentication if available, and disable the ping configuration feature in the router settings if it is not operationally required. Monitor logs aggressively for signs of exploitation. These measures reduce but do not eliminate the risk.
Why hasn't Comfast released a patch despite early notification?
The vulnerability was disclosed on 2026-06-21 with vendor notification prior to publication. Comfast's lack of response or public patch statement is unusual and concerning. Contact Comfast support directly to request a status update and advocate for a security fix. In the meantime, treat this as a long-term security issue requiring compensating controls.
Should we replace these routers outright?
If feasible and operationally tolerable, replacement with a patched alternative is the most effective remediation. However, network refresh cycles often require balancing cost against risk. Begin procurement planning for replacement units while implementing strict access controls on existing CF-WR631AX V3 devices. Prioritize replacement if the router handles sensitive traffic or serves critical infrastructure.
This analysis is for informational purposes and reflects the state of this vulnerability as of the publication date. Security vulnerability landscapes evolve; readers should verify current vendor statements and patch availability directly with Comfast before making remediation decisions. SEC.co makes no warranty as to the completeness or accuracy of vendor response timelines. Proof-of-concept code exists in the public domain; organizations should implement appropriate access controls to prevent unauthorized testing. Consult with your security and legal teams before deploying any workarounds or taking affected systems offline. Source: NVD (public-domain), retrieved 2026-07-28. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-10279MEDIUMOS Command Injection in wezterm-mcp 0.1.0
- CVE-2026-11341MEDIUMD-Link DWR-M920 Command Injection Vulnerability – Patch & Detection Guide
- CVE-2026-11408MEDIUMOS Command Injection in vertex-app Log Viewer Endpoint
- CVE-2026-12815MEDIUMOS Command Injection in Coolify 4.0.0 Image Name Handler
- CVE-2026-10214HIGHCommand Injection in chatgpt-on-wechat Bash Tool
- CVE-2026-10219HIGHGoClaw Command Injection Vulnerability
- CVE-2026-10273HIGHRemote Code Execution in php-censor Webhook Handler
- CVE-2026-10870HIGHShibby Tomato 1.28.0000 OS Command Injection Vulnerability