Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach router web interface
-
DeliverySend crafted POST to /cgi-bin/cstecgi.cgi
-
ExploitInject shell metacharacters via stunMaxAlive
-
ExecutionCommand runs as root on device
-
PersistInstall payload / join botnet
-
ImpactPivot into internal network
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must be able to send an HTTP request to the router's management CGI at /cgi-bin/cstecgi.cgi and supply a malicious stunMaxAlive parameter containing shell metacharacters - the exact feature is the STUN keep-alive configuration handler. The CVSS vector states AV:N/AC:L/PR:N/UI:N, implying no authentication or user interaction against firmware v17.0.0cu.557_B20221024; however, TOTOLINK cstecgi.cgi endpoints frequently require a valid session, so the unauthenticated claim should be confirmed against the PoC. Practical limiting factors: the management interface must be reachable by the attacker (LAN by default; only exploitable remotely if WAN/remote administration is enabled), and only the named firmware build is confirmed affected. |
| Impact | The signals conflict in the usual way for embedded-device CVEs. The raw CVSS is 9.8 (network, low complexity, no privileges, total impact) and SSVC rates it Automatable=yes with Technical Impact=total, which argues for high priority; a public PoC exists, lowering the bar to exploit. Against that, EPSS is only 0.06% (19th percentile) and there is no CISA KEV listing, indicating no observed mass exploitation - consistent with a niche SOHO router that attackers target opportunistically (e.g., botnet recruitment) rather than at internet scale. A key caveat: many cstecgi.cgi command-injection bugs in TOTOLINK devices actually require an authenticated/session-bearing request to reach the vulnerable handler, yet the vector asserts PR:N; the source is a MITRE-assigned CVE with only a PoC repo, so the unauthenticated claim should be verified against the PoC before treating remote-unauth as confirmed. Net: genuinely dangerous where the device is exposed or reachable on the LAN, but low real-world spread - prioritize for anyone operating this specific router, deprioritize relative to widely-deployed enterprise CVEs. |
| Exploit ScenarioDerived | An attacker who can reach the router's web interface sends a crafted request to /cgi-bin/cstecgi.cgi with a stunMaxAlive value containing shell metacharacters (e.g., a semicolon followed by a command). The injected command executes with the CGI's privileges (typically root), letting the attacker drop a payload, enroll the device into a botnet, or pivot into the internal network. A public PoC in the Svigo-o/TOTOLINK-Vul repository demonstrates the injection, reducing the skill needed to reproduce it. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 24, 2026
OS command injection in the TOTOLINK A3300R router firmware (v17.0.0cu.557_B20221024) lets remote attackers run arbitrary system commands by injecting shell metacharacters into the stunMaxAlive parameter handled by the /cgi-bin/cstecgi.cgi endpoint. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N) describes unauthenticated network exploitation with total confidentiality, integrity, and availability impact, effectively granting full control of the device. Publicly available exploit code exists (GitHub PoC), though EPSS is very low (0.06%) and it is not listed in CISA KEV, so exploitation is proof-of-concept rather than confirmed in-the-wild.
RemediationAI
No vendor-released patch identified at time of analysis - no fixed firmware version is cited in the provided data, so monitor the TOTOLINK support site for a firmware update superseding v17.0.0cu.557_B20221024 and apply it once published. As compensating controls: ensure the router's web management interface (/cgi-bin/cstecgi.cgi) is never exposed to the WAN/internet - disable remote/WAN administration, which prevents external exploitation at the cost of losing off-LAN management; restrict LAN-side access to the management interface to a trusted admin host or VLAN/ACL, accepting the inconvenience of managing from only that host; change default credentials and place the device behind a separate firewall segment; and if the STUN/keep-alive feature is not needed, disable it to reduce reachability of the vulnerable handler. Validate all changes against the PoC at https://github.com/Svigo-o/TOTOLINK-Vul, and consider replacing end-of-support SOHO hardware if no firmware fix appears.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The A3300R is a consumer/SOHO wireless router whose web management interface is driven by the cstecgi.cgi CGI binary - a common request dispatcher across many TOTOLINK devices that maps JSON/form parameters to internal handler functions. This flaw is CWE-78 (Improper Neutralization of Special Elements used in an OS Command): the stunMaxAlive value, which nominally configures a STUN keep-alive interval, is passed into a shell command (typically via system()/popen() or a call to a busybox utility) without sanitization, so characters such as ; | ` $() break out of the intended command and execute attacker-supplied commands. Because embedded router CGIs typically run as root, injected commands inherit full privileges. The CPE in the feed is a placeholder (cpe:2.3:a:n/a:n/a:*), so exact affected-product enumeration must come from the description rather than structured CPE data.
Know when N A gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OS command injection via a web CGI yields total device compromise; PR:L reflects that cstecgi.cgi handlers typically need a session, an area where the source vector's PR:N is unverified.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
2DescriptionCVE.org
An issue was discovered in ToToLink A3300R firmware v17.0.0cu.557_B20221024 allowing attackers to execute arbitrary commands via the stunMaxAlive parameter to /cgi-bin/cstecgi.cgi.
Executive ViewAI
A critical remote command execution vulnerability (CVE-2026-31178) in TOTOLINK A3300R routers allows unauthenticated attackers to gain complete control of affected devices, exposing organizations to network compromise, data exfiltration, and lateral movement into internal systems. Any organization relying on these routers as perimeter security devices faces immediate risk of network access loss and infrastructure hijacking. Firmware v17.0.0cu.557_B20221024 and earlier require urgent isolation pending remediation.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) network segmentation isolating routers to management VLANs; (2) administrative access control restricting management interfaces to bastion hosts only; (3) continuous monitoring for command injection attempts targeting the stunMaxAlive parameter; (4) configuration change auditing and alerting; (5) out-of-band access maintenance for incident response. These controls reduce exploit likelihood but do not eliminate the vulnerability-patch availability or device replacement remains the only durable solution.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr
Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han
A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi
Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc
Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula
Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root
LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(
Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti
Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr
SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg
Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ
Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali
EUVD-2026-25246
GHSA-4w7w-qm22-5p9j
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB