{"answers":{"affected":"It affects 1 product.","exploited":"Yes. Attackers have exploited CVE-2023-1389 in the wild since at least 1 May 2023.","fix":"No fix has been published for CVE-2023-1389 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 22 May 2023.","what":"CVE-2023-1389 is a high-severity command injection vulnerability in TP-Link Archer AX21 (AX1800), published on 15 Mar 2023. 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-2023-1389 and fix it if it is affected.\n\nWhat it is: CVE-2023-1389 is a high-severity command injection vulnerability in TP-Link Archer AX21 (AX1800), published on 15 Mar 2023. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2023-1389 in the wild since at least 1 May 2023.\n\nAffected product: TP-Link Archer AX21 (AX1800). 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-2023-1389/ (Markdown: https://insights.sbomify.com/CVE-2023-1389/index.md)","id":"CVE-2023-1389","markdown":"https://insights.sbomify.com/CVE-2023-1389/index.md","name":"CVE-2023-1389","record":{"aliases":["GHSA-h49r-m2rg-6pgf"],"analysis":{"component_type":"network_device","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"TP-Link router","requires_auth":"none","summary":"Unauthenticated attackers can execute arbitrary commands as root on TP-Link Archer AX21 routers via the web interface.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"tenable","cpe":[{"product":"archer_ax21_firmware","vendor":"tp-link"}],"cvss":{"score":8.8,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:A/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 Archer AX21 (AX1800) firmware versions before 1.1.4 Build 20230219 contained a command injection vulnerability in the country form of the /cgi-bin/luci;stok=/locale endpoint on the web management interface. Specifically, the country parameter of the write operation was not sanitized before being used in a call to popen(), allowing an unauthenticated attacker to inject commands, which would be run as root, with a simple POST request.","ecosystems":[],"exploits":{"exploitdb":1,"first_seen":"2023-07-28","github_poc":2,"max_poc_stars":17,"metasploit":0,"nuclei":1,"refs":[{"date":"2023-07-28T03:09:00Z","kind":"github_poc","ref":"https://github.com/Voyag3r-Security/CVE-2023-1389","stars":17,"title":null},{"date":"2023-12-25T11:40:47Z","kind":"github_poc","ref":"https://github.com/werwolfz/CVE-2023-1389","stars":1,"title":"TP-Link Archer AX21 - Unauthenticated Command Injection [Loader]"},{"date":"2023-08-10","kind":"exploitdb","ref":"51677","stars":null,"title":"TP-Link Archer AX21 - Unauthenticated Command Injection"},{"date":null,"kind":"nuclei","ref":"http/cves/2023/CVE-2023-1389.yaml","stars":null,"title":"TP-Link Archer AX21 (AX1800) - Unauthenticated Command Injection"}],"tier":"exploited"},"has_fix":null,"headline":"TP-Link Archer AX-21 Command Injection","id":"CVE-2023-1389","indexable":true,"kev":{"dateAdded":"2023-05-01","dueDate":"2023-05-22","knownRansomwareCampaignUse":"Unknown","product":"Archer AX21","requiredAction":"Apply updates per vendor instructions.","vendorProject":"TP-Link","vulnerabilityName":"TP-Link Archer AX-21 Command Injection Vulnerability"},"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2023"},"n_packages":0,"n_references":2,"next":{"headline":"Denial of service in Linux kernel (TIPC kernel module)","id":"CVE-2023-1390"},"packages":[],"prev":{"headline":"Memory corruption in Trellix Agent","id":"CVE-2023-1388"},"products":["TP-Link Archer AX21 (AX1800)"],"published":"2023-03-15","related":[{"cvss_score":9.8,"headline":"TP-Link AX1800 hotplugd Firewall Rule Race Condition Vulnerability","id":"CVE-2023-27359","kev_date_added":null,"published":"2024-05-03"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2023-31710","kev_date_added":null,"published":"2023-08-01"},{"cvss_score":8.8,"headline":"TP-Link Archer AX21 tdpServer Logging Stack-based Buffer Overflow Remote Code Execution Vulnerability","id":"CVE-2023-27332","kev_date_added":null,"published":"2024-05-03"},{"cvss_score":8.8,"headline":"TP-Link AX1800 Firmware Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability","id":"CVE-2023-27346","kev_date_added":null,"published":"2024-05-03"},{"cvss_score":6.8,"headline":"TP-Link Archer AX21 tmpServer Command 0x422 Stack-based Buffer Overflow Remote Code Execution Vulnerability","id":"CVE-2023-27333","kev_date_added":null,"published":"2024-05-03"}],"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":"open","licence":"CC0 1.0","name":"CISA KEV"},{"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":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["n/a"]},"summary":"Unauthenticated attackers can execute arbitrary commands as root on TP-Link Archer AX21 routers via the web interface.","url":"https://insights.sbomify.com/CVE-2023-1389/"}