The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2023-1389

CVE-2023-1389: TP-Link Archer AX21 RCE Vulnerability

CVE-2023-1389 is a command injection vulnerability in TP-Link Archer AX21 firmware allowing unauthenticated attackers to execute commands as root. This article covers technical details, affected versions, and mitigation.

Published: February 11, 2026

CVE-2023-1389 Overview

CVE-2023-1389 is a critical command injection vulnerability affecting TP-Link Archer AX21 (AX1800) wireless routers running firmware versions prior to 1.1.4 Build 20230219. The vulnerability exists 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 is not properly sanitized before being passed to a popen() function call, enabling unauthenticated attackers to inject arbitrary commands that execute with root privileges via a simple POST request.

Critical Impact

This vulnerability allows unauthenticated remote command execution with root privileges on affected TP-Link Archer AX21 routers. It has been added to CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating active exploitation in the wild.

Affected Products

  • TP-Link Archer AX21 (AX1800) firmware versions before 1.1.4 Build 20230219
  • TP-Link Archer AX21 hardware devices running vulnerable firmware
  • All regional variants of the Archer AX21 router with unpatched firmware

Discovery Timeline

  • 2023-03-15 - CVE-2023-1389 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2023-1389

Vulnerability Analysis

This command injection vulnerability stems from improper input validation in the router's web management interface. The vulnerable endpoint /cgi-bin/luci;stok=/locale accepts POST requests to configure country-specific settings. When processing the country parameter during a write operation, the firmware fails to sanitize user-supplied input before passing it directly to a popen() system call. This creates a direct pathway for attackers on the adjacent network to inject shell commands that execute in the context of the root user, providing complete control over the affected device.

The attack vector is classified as adjacent network access, meaning an attacker must be on the same network segment as the target router to exploit this vulnerability. However, given the nature of home and small office networks where the router is the primary network gateway, this represents a significant security risk. Successful exploitation grants attackers root-level access to the router, enabling them to intercept network traffic, pivot to other network devices, or enlist the router in botnet activities.

Root Cause

The root cause of CVE-2023-1389 is a classic CWE-77 (Command Injection) vulnerability where user-controlled input is incorporated into a system command without proper sanitization. The country parameter value is directly concatenated into a command string that is subsequently executed via the popen() function. The lack of input validation, character escaping, or parameterized command execution allows attackers to break out of the intended command context and inject arbitrary shell commands.

Attack Vector

The attack requires the adversary to have adjacent network access to the target TP-Link Archer AX21 router. No authentication is required to exploit this vulnerability, making it particularly dangerous. An attacker can craft a malicious POST request to the /cgi-bin/luci;stok=/locale endpoint with a specially crafted country parameter containing shell metacharacters and commands. When the router processes this request, the injected commands are executed with root privileges.

The exploitation process involves:

  1. Identifying a vulnerable TP-Link Archer AX21 router on the local network
  2. Crafting a POST request to the locale configuration endpoint
  3. Injecting shell commands via the unsanitized country parameter
  4. Commands execute with root privileges on the target device

Due to the nature of this vulnerability and its active exploitation status, detailed proof-of-concept code has been intentionally omitted. Technical details are available in the Tenable Security Research Advisory and the Packet Storm Exploit Report.

Detection Methods for CVE-2023-1389

Indicators of Compromise

  • Unusual outbound connections from the router to unknown external IP addresses
  • Unexpected processes running on the router, particularly those spawned by the web server
  • POST requests to /cgi-bin/luci;stok=/locale containing shell metacharacters such as ;, |, $(), or backticks in the country parameter
  • Signs of botnet activity including participation in DDoS attacks or cryptomining
  • Unauthorized configuration changes or new user accounts on the router

Detection Strategies

  • Monitor network traffic for HTTP POST requests to the /cgi-bin/luci;stok=/locale endpoint, especially those containing suspicious characters in the country parameter
  • Deploy intrusion detection system (IDS) rules to alert on command injection patterns targeting TP-Link router endpoints
  • Implement network segmentation to detect and contain lateral movement from compromised routers
  • Review router logs for authentication failures, unusual administrative access, or configuration modifications

Monitoring Recommendations

  • Establish baseline network behavior for router traffic and alert on anomalies
  • Monitor for connections to known botnet command and control infrastructure
  • Track firmware versions across all network devices and flag those running vulnerable versions
  • Implement continuous vulnerability scanning for network infrastructure devices

How to Mitigate CVE-2023-1389

Immediate Actions Required

  • Update TP-Link Archer AX21 firmware to version 1.1.4 Build 20230219 or later immediately
  • Verify firmware updates were successfully applied by checking the router's administration interface
  • Restrict access to the router's web management interface to trusted hosts only
  • Enable the router's built-in firewall and ensure management interfaces are not exposed to untrusted networks
  • Monitor affected devices for signs of compromise before and after patching

Patch Information

TP-Link has released firmware version 1.1.4 Build 20230219 to address this vulnerability. The patch sanitizes the country parameter input before it is used in system calls, preventing command injection attacks. Users should download the latest firmware from the official TP-Link support website and apply it via the router's web administration interface or TP-Link's Tether mobile application.

Given this vulnerability is listed in CISA's Known Exploited Vulnerabilities catalog, federal agencies and organizations following CISA guidance should prioritize patching. For additional details, refer to the CISA Known Exploited Vulnerabilities Catalog entry for CVE-2023-1389.

Workarounds

  • If immediate patching is not possible, disable remote management access to the router's web interface
  • Implement network segmentation to isolate vulnerable routers from critical network assets
  • Use a separate firewall or security appliance to filter malicious requests to the router's management interface
  • Consider replacing end-of-life devices that no longer receive security updates
  • Monitor network traffic from the router for suspicious activity until patching can be completed
bash
# Verify current firmware version via router CLI (if accessible)
# Navigate to: System Tools > Firmware Upgrade in web interface
# Or check via TP-Link Tether app under Device Information

# Recommended: Download latest firmware from TP-Link support
# https://www.tp-link.com/support/download/archer-ax21/

# After updating, verify the new firmware version:
# Firmware Version: 1.1.4 Build 20230219 or later

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechTp Link

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability93.64%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-77
  • Technical References
  • Packet Storm Exploit Report

  • Tenable Security Research Advisory

  • CISA Known Exploits Catalog
  • Related CVEs
  • CVE-2025-15519: TP-Link Archer NX RCE Vulnerability

  • CVE-2025-15518: TP-Link Archer NX Series RCE Vulnerability

  • CVE-2026-0652: TP-Link Tapo C260 RCE Vulnerability

  • CVE-2026-0631: TP-Link Archer BE230 RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English