TP-Link Systems Inc. TL-WR802N v4
Authenticated Command Injection on TP-Link TL-WR802N, TL-WR841N and TL-WR840N
Edge device · Router / network deviceknown edge product: TP-Link Systems Inc. TL-WR802N v4 Authenticated Command Injection on (high confidence)
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < V4_260304
Fixed in V4_260304
- < V14_260303
Fixed in V14_260303
- < V6_260304
Fixed in V6_260304
Mitigation
Upgrade TL-WR802N v4 to V4_260304 or later.
Upgrade TL-WR841N v14 to V14_260303 or later.
Upgrade TL-WR840N v6 to V6_260304 or later.
References
- Patch tp-link.com/en/support/download/tl-wr802n/v4
- Patch tp-link.com/us/support/download/tl-wr802n/v4
- Patch tp-link.com/en/support/download/tl-wr841n/v14
3 more
Timeline
Days relative to CVE publicationFirst public PoC 104 days after publication; not in CISA KEV. First PoC: do4choo/CVE-2026-3227-TP-Link-authenticated-RCE (created 25 Jun 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| do4choo/CVE-2026-3227-TP-Link-authenticated-RCE | 25 Jun 2026 +104 d | 44 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoPOST /cgi/confup
- Key headers
Cookie: JSESSIONID={var}Origin: http://192.168.0.1Referer: http://192.168.0.1/mainFrame.htm- Body markers
filename=@exploit.bin;type=application/octet-streaminmultipart/form-data- PoC User-Agent
Mozilla/5.0- Seen in
- 1 repo: do4choo/CVE-2026-3227-TP-Link-authenticated-RCE
- Evidence
- do4choo/CVE-2026-3227-TP-Link-authenticated-RCE/README.md:82
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/cgi/confup(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-3227 TP-Link Systems Inc. TL-WR802N v4 exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/cgi/confup"; http.header; content:"Cookie: JSESSIONID="; nocase; http.header; content:"Origin: http://192.168.0.1"; nocase; http.header; content:"Referer: http://192.168.0.1/mainFrame.htm"; nocase; http.request_body; content:"filename=@exploit.bin|3b|type=application/octet-stream"; reference:url,poc.griffinguard.io/cve/CVE-2026-3227; classtype:web-application-attack; sid:9582465; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: TP-Link Systems Inc. TL-WR802N v4 exploit attempt (CVE-2026-3227)
id: gg-pocmon-cve-2026-3227-9582465
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-3227. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-3227
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/cgi/confup'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.3227