{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-4045 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2021-4045 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-4045 is a critical command injection vulnerability in TP-Link Tapo C200, published on 7 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-4045 and fix it if it is affected.\n\nWhat it is: CVE-2021-4045 is a critical command injection vulnerability in TP-Link Tapo C200, published on 7 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-4045 in the wild and no public exploit code.\n\nAffected product: TP-Link Tapo C200. 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-2021-4045/ (Markdown: https://insights.sbomify.com/CVE-2021-4045/index.md)","id":"CVE-2021-4045","markdown":"https://insights.sbomify.com/CVE-2021-4045/index.md","name":"CVE-2021-4045","record":{"aliases":["GHSA-574v-3xxh-gwh5"],"analysis":{"component_type":"iot_embedded","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"IP camera","requires_auth":"none","summary":"Unauthenticated attackers can execute arbitrary commands on TP-Link Tapo C200 cameras via the uhttpd binary, gaining full control.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"INCIBE","cpe":[{"product":"tapo_c200_firmware","vendor":"tp-link"}],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"description":"TP-Link Tapo C200 IP camera, on its 1.1.15 firmware version and below, is affected by an unauthenticated RCE vulnerability, present in the uhttpd binary running by default as root. The exploitation of this vulnerability allows an attacker to take full control of the camera.","ecosystems":[],"exploits":{"exploitdb":1,"first_seen":"2021-11-15","github_poc":6,"max_poc_stars":120,"metasploit":0,"nuclei":0,"refs":[{"date":"2021-11-15T14:48:14Z","kind":"github_poc","ref":"https://github.com/hacefresko/CVE-2021-4045","stars":120,"title":"Exploit for command injection vulnerability found in uhttpd binary from TP-Link Tapo c200 IP camera"},{"date":"2023-12-26T08:20:49Z","kind":"github_poc","ref":"https://github.com/0xbinder/CVE-2021-4045","stars":9,"title":"🔐 \"PWNTAPO: Unveiling Command Injection in TP-Link Tapo C200 Cameras (\u003c= v1.1.16 Build 211209)\" 🔓"},{"date":"2025-12-11T11:14:47Z","kind":"github_poc","ref":"https://github.com/234329a423853/CVE-2021-4045","stars":2,"title":"CVE-2021-4045 CVE-2021-4045 is a Command Injection vulnerability that allows Remote Code Execution in the TP-Link Tapo c200 IP camera. It affects all firmware versions prior to 1.1.16 Build 211209 Rel. 37726N due to insufficient checks on user input in uhttpd, which is one of the main binaries of the device."},{"date":"2022-10-11T13:56:15Z","kind":"github_poc","ref":"https://github.com/jeffbezosispogg/CVE-2021-4045","stars":1,"title":"TP-Link Tapo c200 ver \u003c1.1.15 - Remote Code Execution (RCE)"},{"date":"2025-03-30T22:46:00Z","kind":"github_poc","ref":"https://github.com/DorskFR/tapodate","stars":1,"title":"Sets up a local Tapo C200 using CVE-2021-4045"},{"date":"2022-09-23","kind":"exploitdb","ref":"51017","stars":null,"title":"TP-Link Tapo c200 1.1.15 - Remote Code Execution (RCE)"},{"date":"2026-06-11T18:05:17Z","kind":"github_poc","ref":"https://github.com/kaleth4/CVE-2021-4045","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":null,"headline":"TP-LINK Tapo C200 remote code execution vulnerability","id":"CVE-2021-4045","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2021"},"n_packages":0,"n_references":2,"next":{"headline":"TCMAN GIM Cross-Site Scripting (XSS)","id":"CVE-2021-4046"},"packages":[],"prev":{"headline":"Invalid handling of X509_verify_cert() internal errors in libssl","id":"CVE-2021-4044"},"products":["Tapo C200"],"published":"2022-03-07","related":[{"cvss_score":8.7,"headline":"Unauthenticated Access to connectAP API Endpoint on Tapo C100, C200 \u0026 C425","id":"CVE-2025-14300","kev_date_added":null,"published":"2025-12-20"},{"cvss_score":8.7,"headline":"Remote Code Execution via Stack-based Buffer Overflow in ONVIF SOAP Parser in TP-Link Tapo C200 and C520WS","id":"CVE-2025-8065","kev_date_added":null,"published":"2025-12-20"},{"cvss_score":7.1,"headline":"Denial-of-Service via Oversized Encrypted Credential Input in TP-Link Tapo C200","id":"CVE-2026-15316","kev_date_added":null,"published":"2026-08-18"},{"cvss_score":7.1,"headline":"Denial-of-Service Vulnerability via Malformed IPv4 Fragmentation Handling in TP-Link Tapo C200","id":"CVE-2026-12760","kev_date_added":null,"published":"2026-06-24"},{"cvss_score":7.1,"headline":"Authenticated Stack-based Buffer Overflow in RTSP Authentication of Tapo C200","id":"CVE-2026-1871","kev_date_added":null,"published":"2026-06-02"},{"cvss_score":7.1,"headline":"Improper Content-Length Validation in HTTPS Requests on Tapo C200","id":"CVE-2025-14299","kev_date_added":null,"published":"2025-12-20"}],"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":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-17","vendors":["TP-Link"]},"summary":"Unauthenticated attackers can execute arbitrary commands on TP-Link Tapo C200 cameras via the uhttpd binary, gaining full control.","url":"https://insights.sbomify.com/CVE-2021-4045/"}