CVE-2026-3227 Authenticated Command Injection on TP-Link TL-WR802N, TL-WR841N and TL-WR840N
Authenticated attackers can execute arbitrary OS commands with root privileges via a crafted configuration file, leading to full device compromise.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-3227?
CVE-2026-3227 is a high-severity command injection vulnerability in TP Link Systems Inc. TL-WR802N v4, published on 13 Mar 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
A command injection vulnerability was identified in TP-Link TL-WR802N v4, TL-WR841N v14, and TL-WR840N v6 due to improper neutralization of special elements used in an OS command. In the router configuration import function allows an authenticated attacker to upload a crafted configuration file that results in execution of OS commands with root privileges during port-trigger processing. Successful exploitation allows an authenticated attacker to execute system commands with root privileges, leading to full device compromise.
Weakness: CWE-78
Which versions are affected by CVE-2026-3227?
It affects 3 products.
Products include Tp-Link Tl-Wr802n Firmware, Tp-Link Tl-Wr840n Firmware, Tp-Link Tl-Wr841n Firmware.
How do I fix CVE-2026-3227?
No fix has been published for CVE-2026-3227 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-3227 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-3227 exists.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in TP Link Systems Inc. TL-WR802N v4
Sources
Also known as GHSA-7vvh-gmhq-282v.