{"schemaVersion":3,"id":"CVE-2026-3227","aliases":[],"status":"published","duplicateOf":null,"title":"Authenticated Command Injection on TP-Link TL-WR802N, TL-WR841N and TL-WR840N","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.\nSuccessful exploitation allows an authenticated attacker to execute system commands with root privileges, leading to full device compromise.","dates":{"published":"2026-03-13T21:38:31.666Z","modified":"2026-07-01T17:31:49.401Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.5,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":8.5,"severity":"high","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":8.5,"severity":"high","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.8,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01876,"percentile":0.79241,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":-0.059000000000000025,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.01935},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01935,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01935,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01935,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01935,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01935,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01935,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01935,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01935,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01935,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01935,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01876,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01876,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01876,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01876,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01876,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01876,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01876,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01876,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01876,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01876,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01876,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.01876,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.01876,"percentile":0.79241}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.01935,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01935,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01789,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01876,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01876,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01876,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01876,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01876,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01876,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01876,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01876,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01876,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01876,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01876,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.01876,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.01876,"percentile":0.79241}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","description":"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.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/78.html"}],"affected":[{"vendor":"tp link systems inc.","product":"tl-wr840n v6","name":"TL-WR840N v6","label":"tl-wr840n v6","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< V6_260304","noFixRecorded":false,"fixedIn":null}],"versionsText":"< V6_260304","eol":null,"hubHref":"/vendor/tp_link_systems_inc/tl-wr840n_v6"},{"vendor":"tp-link systems inc.","product":"tl-wr802n v4","name":"TL-WR802N v4","label":"tl-wr802n v4","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< V4_260304","noFixRecorded":false,"fixedIn":null}],"versionsText":"< V4_260304","eol":null,"hubHref":"/vendor/tp-link_systems_inc/tl-wr802n_v4"},{"vendor":"tp-link systems inc.","product":"tl-wr841n v14","name":"TL-WR841N v14","label":"tl-wr841n v14","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< V14_260303","noFixRecorded":false,"fixedIn":null}],"versionsText":"< V14_260303","eol":null,"hubHref":"/vendor/tp-link_systems_inc/tl-wr841n_v14"},{"vendor":"tp-link","product":"tl-wr802n_firmware","name":"tl-wr802n firmware","label":"tl-wr802n_firmware","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"< 260304","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 260304","eol":null,"hubHref":"/vendor/tp-link/tl-wr802n"},{"vendor":"tp-link","product":"tl-wr840n_firmware","name":"tl-wr840n firmware","label":"tl-wr840n_firmware","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"< 260304","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 260304","eol":null,"hubHref":"/vendor/tp-link/tl-wr840n"},{"vendor":"tp-link","product":"tl-wr841n_firmware","name":"TL-WR841N","label":"tl-wr841n_firmware","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"< 260303","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 260303","eol":null,"hubHref":"/vendor/tp-link/tl-wr841n"}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.tp-link.com/en/support/download/tl-wr802n/v4/#Firmware","label":"www.tp-link.com/en/support/download/tl-wr802n/v4/","hostname":"www.tp-link.com","tags":["Patch","Product"]},{"url":"https://www.tp-link.com/us/support/download/tl-wr802n/v4/#Firmware","label":"www.tp-link.com/us/support/download/tl-wr802n/v4/","hostname":"www.tp-link.com","tags":["Patch","Product"]},{"url":"https://www.tp-link.com/en/support/download/tl-wr841n/v14/#Firmware","label":"www.tp-link.com/en/support/download/tl-wr841n/v14/","hostname":"www.tp-link.com","tags":["Patch","Product"]},{"url":"https://www.tp-link.com/us/support/download/tl-wr841n/v14/#Firmware","label":"www.tp-link.com/us/support/download/tl-wr841n/v14/","hostname":"www.tp-link.com","tags":["Patch","Product"]},{"url":"https://www.tp-link.com/en/support/download/tl-wr840n/v6/#Firmware","label":"www.tp-link.com/en/support/download/tl-wr840n/v6/","hostname":"www.tp-link.com","tags":["Patch","Product"]},{"url":"https://www.tp-link.com/us/support/faq/5018/","label":"www.tp-link.com/us/support/faq/5018/","hostname":"www.tp-link.com","tags":["Vendor Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-03-13T21:38:31.666Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-01T17:31:49.401Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":34,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T18:26:19.544Z","stale":false,"partial":false}}