How to Fix CVE-2017-7921: Authentication Bypass in Hikvision Cameras
By Sai Kiran Pandrala
| Severity | CVSS 9.8 - Critical |
|---|---|
| Actively exploited? | Yes, listed in CISA KEV (added 2026-03-05) |
| Affected | Hikvision Cameras Hikvision Cameras |
| Fixed in | See vendor advisory |
| Type (CWE) | CWE-287: CWE-287 |
Patch immediately. CISA added CVE-2017-7921 to the Known Exploited Vulnerabilities catalog on 2026-03-05. Federal civilian agencies must remediate by 2026-03-26. Treat every internet-reachable instance as a priority patch.
What is CVE-2017-7921?
CVE-2017-7921 is an Authentication Bypass flaw in Hikvision Cameras. It carries a CVSS base score of 9.8 (critical). CISA confirmed real-world exploitation by adding it to the Known Exploited Vulnerabilities catalog on 2026-03-05.
From the source record: An Improper Authentication issue was discovered in Hikvision DS-2CD2xx2F-I Series V5.2.0 build 140721 to V5.4.0 build 160530, DS-2CD2xx0F-I Series V5.2.0 build 140721 to V5.4.0 Build 160401, DS-2CD2xx2FWD Series V5.3.1 build 150410 to V5.4.4 Build 161125, DS-2CD4x2xFWD Series V5.2.0 build 140721 to V5.4.0 Build 160414, DS-2CD4xx5 Series V5.2.0 build 140721 to V5.4.0 Build 160421, DS-2DFx Series V5.2.0 build 140805 to V5.4.5 Build 160928, and DS-2CD63xx Series V5.0.9 build 140305 to V5.3.5 Build 160106 devices. The improper authentication vulnerability occurs when an application does not adequa...
Why it matters in practice: KEV-listed CVEs draw continuous internet-wide scanning. Any unpatched, internet-reachable installation is on borrowed time. The blast radius depends on how the affected service is exposed. An internet-facing instance with no compensating controls is the highest-risk configuration.
Am I affected?
You are affected if your installation of Hikvision Cameras matches a version listed in the Affected row above.
Check the installed version of Hikvision Cameras against the Affected row above. If the version sits at or below the affected range and the vendor patch has not been applied, you are vulnerable.
How to fix CVE-2017-7921
Apply the vendor patch. Target the patched build listed on the vendor advisory. The runnable command set below covers the most common deployment patterns for Hikvision Cameras.
Generic upgrade path
# Debian / Ubuntu
sudo apt-get update && sudo apt-get install --only-upgrade hikvision
# RHEL / Rocky / Alma
sudo dnf upgrade --security -y
# Windows
# PowerShell:
# winget upgrade --all --silent --accept-package-agreements --accept-source-agreements
# macOS
sudo softwareupdate -i -a -R
After applying the patch
- Restart the service or device so the patched binary loads.
- Confirm the running version matches the Fixed in row using the verification command below.
- Rotate credentials and API keys that the affected service could access if the asset was exposed during the disclosure window.
If you can't patch immediately
Until the patch lands, narrow the attack surface with these runnable controls.
Reduce the attack surface
Restrict network reach to the affected service to the smallest set of hosts that must access it. On Linux:
# Vendor advisory: https://www.hikvision.com/us-en/support/document-center/special-notices/privilege-escalating-vulnerability-in-certain-hikvision-ip-cameras/
sudo iptables -A INPUT -p tcp --dport <service-port> -s 10.10.10.0/24 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport <service-port> -j DROP
On Windows:
# Vendor advisory: https://www.hikvision.com/us-en/support/document-center/special-notices/privilege-escalating-vulnerability-in-certain-hikvision-ip-cameras/
New-NetFirewallRule -DisplayName "Block CVE-2017-7921 inbound" -Direction Inbound -Action Block -Protocol TCP -LocalPort <service-port>
Mitigations are temporary. Apply the vendor patch as soon as a maintenance window opens.
How to verify the fix worked
Confirm the patched build is the one actually running.
Run the product's --version or about command and compare against the Fixed in row (See vendor advisory). Re-run an authenticated vulnerability scan and confirm the scanner no longer flags CVE-2017-7921.
Also worth doing: pull recent log windows for any indicators of compromise listed in the vendor advisory, and re-run an authenticated vulnerability scan with up-to-date signatures.
Frequently asked questions
Related fixes
Other vulnerabilities in the same area that are worth patching alongside this one:
- How to Fix CVE-2017-18362: SQL Injection in Kaseya Virtual System/Server Administrator (VSA) — SQL Injection in Kaseya Virtual System/Server Administrator (VSA)
- How to Fix CVE-2017-9822: Remote Code Execution via untrusted deserialization of Xml data — Remote Code Execution via untrusted deserialization of Xml data
- How to Fix CVE-2017-11317: Inadequate Encryption Strength in Telerik User Interface (UI) for ASP.NET AJAX , Inadequate Encryption Strength in Telerik User Interface (UI) for ASP.NET AJAX
- How to Fix CVE-2017-9248: n/a in n/a , n/a in n/a
- How to Fix CVE-2017-12149: Deserialization of untrusted data in jbossas , Deserialization of untrusted data in jbossas
Is CVE-2017-7921 being exploited in the wild?
Yes. CISA added CVE-2017-7921 to the Known Exploited Vulnerabilities catalog on 2026-03-05. KEV listing means at least one confirmed real-world exploitation report exists.
Do I have to take downtime to patch?
For most Hikvision Cameras deployments, the patched build needs a service restart or device reboot. HA pairs and clusters can roll the upgrade by patching the standby first, failing over, then patching the former primary.
Will a WAF or IDS rule alone close CVE-2017-7921?
No. Network filters cut down opportunistic scans but they do not remove the flaw. The vendor patch is the only durable fix.
Why is CVE-2017-7921 rated critical?
The CVSS base score of 9.8 reflects network reach, low attack complexity, and high impact on confidentiality, integrity, and availability. That combination is what the rating model maps to critical.
References
- Official vendor advisory: https://www.hikvision.com/us-en/support/document-center/special-notices/privilege-escalating-vulnerability-in-certain-hikvision-ip-cameras/
- NVD entry: https://nvd.nist.gov/vuln/detail/CVE-2017-7921
- CISA KEV catalog: https://www.cisa.gov/known-exploited-vulnerabilities-catalog
- CISA KEV entry: "Hikvision Multiple Products Improper Authentication Vulnerability" - added 2026-03-05, due 2026-03-26
- Additional reference: http://www.hikvision.com/us/about_10805.html
- Additional reference: http://www.securityfocus.com/bid/98313
- Additional reference: https://ghostbin.com/paste/q2vq2
- Additional reference: https://ics-cert.us-cert.gov/advisories/ICSA-17-124-01
*Assembled from the official vendor advisory, the NVD record, and the CISA KEV listing on 2026-05-25. Always confirm against the vendor advisory before applying changes in production.*