{"answers":{"affected":"It affects 3 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-3227 exists.","fix":"No fix has been published for CVE-2026-3227 yet. Limit exposure of the affected software until one is available.","what":"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."},"fix_prompt":"Check this codebase for CVE-2026-3227 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-3227 exists.\n\nAffected product: TP Link Systems Inc. TL-WR802N v4. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-3227/ (Markdown: https://insights.sbomify.com/CVE-2026-3227/index.md)","id":"CVE-2026-3227","markdown":"https://insights.sbomify.com/CVE-2026-3227/index.md","name":"CVE-2026-3227","record":{"aliases":["GHSA-7vvh-gmhq-282v"],"analysis":{"component_type":"network_device","fix_type":"patch","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"TP-Link wireless router","requires_auth":"high_privilege","summary":"Authenticated attackers can execute arbitrary OS commands with root privileges via a crafted configuration file, leading to full device compromise.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"TPLink","cpe":[{"product":"tl-wr802n_firmware","vendor":"tp-link"},{"product":"tl-wr840n_firmware","vendor":"tp-link"},{"product":"tl-wr841n_firmware","vendor":"tp-link"}],"cvss":{"score":8.5,"severity":"high","source":"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","version":"4.0"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2026-06-25","github_poc":1,"max_poc_stars":43,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-06-25T16:31:07Z","kind":"github_poc","ref":"https://github.com/do4choo/CVE-2026-3227-TP-Link-authenticated-RCE","stars":43,"title":null}],"tier":"weaponised"},"has_fix":null,"headline":"Authenticated Command Injection on TP-Link TL-WR802N, TL-WR841N and TL-WR840N","id":"CVE-2026-3227","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":0,"n_references":6,"next":{"headline":"Cross-site scripting in NextScripts: Social Networks Auto-Poster","id":"CVE-2026-3228"},"packages":[],"prev":{"headline":"LearnPress \u003c= 4.3.2.8 - Missing Authorization to Authenticated (Subscriber+) Arbitrary Email Notification Triggering","id":"CVE-2026-3226"},"products":["TL-WR802N v4","TL-WR840N v6","TL-WR841N v14"],"published":"2026-03-13","related":[{"cvss_score":8.8,"headline":"Command injection in TL-WR802N","id":"CVE-2023-36489","kev_date_added":null,"published":"2023-09-06"},{"cvss_score":8.8,"headline":"Command injection in TL-WR802N V4(JP)","id":"CVE-2021-4144","kev_date_added":null,"published":"2021-12-23"},{"cvss_score":8.1,"headline":"Memory corruption in n/a","id":"CVE-2021-29302","kev_date_added":null,"published":"2021-04-12"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-01","vendors":["TP Link Systems Inc.","TP-Link Systems Inc."]},"summary":"Authenticated attackers can execute arbitrary OS commands with root privileges via a crafted configuration file, leading to full device compromise.","url":"https://insights.sbomify.com/CVE-2026-3227/"}