Authenticated Command Injection on TP-Link TL-WR802N, TL-WR841N and TL-WR840N
Key facts
- Attack vector
- Adjacent network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-78.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| TP-Link | TL-WR802N v4 | before V4_260304 | V4_260304 | Patch available | CNA |
| TP-Link | TL-WR841N v14 | before V14_260303 | V14_260303 | Patch available | CNA |
| TP-Link | TL-WR840N v6 | before V6_260304 | V6_260304 | Patch available | CNA |
- TL-WR802N v4 VendorTP-Link Affected before V4_260304 Fixed in V4_260304 Patch available CNA
- TL-WR841N v14 VendorTP-Link Affected before V14_260303 Fixed in V14_260303 Patch available CNA
- TL-WR840N v6 VendorTP-Link Affected before V6_260304 Fixed in V6_260304 Patch available CNA
CPE configurations NVD · 6
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:tp-link:tl-wr802n_firmware:*:*:*:*:*:*:*:* | before 260304 | Vulnerable | TP-Link |
| cpe:2.3:h:tp-link:tl-wr802n:v4:*:*:*:*:*:*:* | v4 | Running on | TP-Link |
| cpe:2.3:o:tp-link:tl-wr841n_firmware:*:*:*:*:*:*:*:* | before 260303 | Vulnerable | TP-Link |
| cpe:2.3:h:tp-link:tl-wr841n:14:*:*:*:*:*:*:* | 14 | Running on | TP-Link |
| cpe:2.3:o:tp-link:tl-wr840n_firmware:*:*:*:*:*:*:*:* | before 260304 | Vulnerable | TP-Link |
| cpe:2.3:h:tp-link:tl-wr840n:6:*:*:*:*:*:*:* | 6 | Running on | TP-Link |
- cpe:2.3:o:tp-link:tl-wr802n_firmware:*:*:*:*:*:*:*:* Versions before 260304 Vulnerable ·TP-Link
- cpe:2.3:h:tp-link:tl-wr802n:v4:*:*:*:*:*:*:* Versions v4 Running on ·TP-Link
- cpe:2.3:o:tp-link:tl-wr841n_firmware:*:*:*:*:*:*:*:* Versions before 260303 Vulnerable ·TP-Link
- cpe:2.3:h:tp-link:tl-wr841n:14:*:*:*:*:*:*:* Versions 14 Running on ·TP-Link
- cpe:2.3:o:tp-link:tl-wr840n_firmware:*:*:*:*:*:*:*:* Versions before 260304 Vulnerable ·TP-Link
- cpe:2.3:h:tp-link:tl-wr840n:6:*:*:*:*:*:*:* Versions 6 Running on ·TP-Link
Remediation
- Fix · CNA TL-WR802N v4 (TP-Link Systems Inc.) Fixed in V4_260304
- Fix · CNA TL-WR841N v14 (TP-Link Systems Inc.) Fixed in V14_260303
- Fix · CNA TL-WR840N v6 (TP Link Systems Inc.) Fixed in V6_260304
Timeline
- 2026-10-02 Threatist record created from CVE-2026-3227
- 2026-10-03 Alias added: GHSA-7vvh-gmhq-282v
References
Patch 5
- 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
More TP-Link Tl-wr802n Firmware vulnerabilities
- TI-2021-10089 TP-Link TL-WR802N(US), Archer_C50v5_US v4_200 <= 2020.06 contains a buffer overflow… CVSS 3.1HIGH 8.1
- TI-2021-03018 TP-Link wifi router TL-WR802N V4(JP), with firmware version prior to 211202, is vulnerable to OS command injection. CVSS 3.1HIGH 8.8
- TI-2023-18330 OS command injection in TP-Link TL-WR802N CVSS 3.1HIGH 8.8
- TI-2021-02295 Unauthenticated stored cross-site scripting (XSS) exists in multiple TP-Link products… CVSS 3.1MEDIUM 6.1
Sources
- CVE-2026-3227 · CVE Program
- CVE-2026-3227 · NVD
- FIRST EPSS
- GHSA-7vvh-gmhq-282v · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences