# CVE-2026-40627: Totolink X2000R OS command injection in formWsc

Source: https://junglewise.ai/threats/cve-2026-40627-an-os-command-injection-vulnerability-exists-in-the-boa-formwsc  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-20. Updated: 2026-10-20  
License: CC BY 4.0 with a link back

CVE-2026-40627 · Severity: critical · CVSS 9.1 · Published 2026-10-20

The Totolink X2000R is a home router that uses a web administration interface for configuration. An authenticated attacker can inject arbitrary operating system commands through the targetAPSsid parameter in the web interface, leading to complete compromise of the router including data exfiltration, malware installation, and network manipulation.

Technologies: [TOTOLINK X2000r](https://junglewise.ai/threats/technologies/x2000r). Vendors: [TOTOLINK](https://junglewise.ai/threats/vendors/totolink).

## Quick answers

**Is CVE-2026-40627 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-40627 being exploited in the wild.

**How severe is CVE-2026-40627?** Critical severity, with a CVSS score of 9.1, published 20 October 2026.

**Which products and versions are affected?** TOTOLINK X2000r TOTOLINK-X2000R-Gh-V1.0.0-B20250421.1327.

**Is there a fix for CVE-2026-40627?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-40627 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-40627?** Check whether you run TOTOLINK X2000r at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

An OS command injection vulnerability exists in the formWsc function of the boa web server on Totolink X2000R. The targetAPSsid HTTP POST parameter is processed by an incomplete escape function that fails to neutralize newline characters, allowing an attacker to break out of the intended iwpriv command and execute arbitrary shell commands. Authentication to the web interface is required; the vulnerability is triggered via a crafted HTTP POST request.

## Affected products

- Totolink X2000R TOTOLINK-X2000R-Gh-V1.0.0-B20250421.1327

## Timeline

- 2026-10-20: disclosed

## References

- [https://talosintelligence.com/vulnerability_reports/TALOS-2026-2388](https://talosintelligence.com/vulnerability_reports/TALOS-2026-2388)

## Related threats

- [TOTOLINK X2000R stack-based buffer overflow in formTR069Config](https://junglewise.ai/threats/cve-2026-9869-a-stack-based-buffer-overflow-vulnerability-exists-in-the-boa)
- [Totolink X2000R arbitrary file write in boa formUploadFile](https://junglewise.ai/threats/cve-2026-9827-a-arbitrary-file-write-vulnerability-exists-in-the-boa)
- [Totolink X2000R stack-based buffer overflow in boa formUploadFile](https://junglewise.ai/threats/cve-2026-9817-a-stack-based-buffer-overflow-vulnerability-exists-in-the-boa)
- [Totolink X2000R OS command injection in formWizard](https://junglewise.ai/threats/cve-2026-9814-an-os-command-injection-vulnerability-exists-in-the-boa-formwizard)
- [TOTOLINK X2000R stack-based buffer overflow in boa formFilter](https://junglewise.ai/threats/cve-2026-9660-multiple-exploitable-stack-based-buffer-overflow-vulnerabilities)
