CVE-2021-36260 is an unauthenticated command injection in the web server of many Hikvision IP cameras and some NVRs: crafted messages sent to the HTTP or HTTPS port give an attacker a root shell, with no password and no action by the owner. NVD scores it 9.8, CISA added it to the KEV catalog on 2022-01-10, and the first patched builds date from June 2021.
Vulnerability summary
CVSS base score
9.8
Critical severity
EPSS score (FIRST)
99.9%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
Yes
Listed as known exploited
Published
Vulnerability ID: CVE-2021-36260 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| Hikvision IP cameras (DS-2CD, DS-2DF, DS-2TD, DS-2DY, DS-2XE, PTZ-N and iDS models in NVD's CPE list) | — | IPC_E0, E2, E6, E7, G3, G5, H1, H5, H8 and R2 and IPD_E7, G3, H5, H7 and H8 firmware types up to their mid-2021 builds, legacy IPC_R7, IPD_R7, IPC_G0, IPC_H3 and IPD_H3 up to 5.4.x (Watchful IP); first patched builds IPC_G3 and IPC_H5 V5.5.800 build 210628 |
| Hikvision NVRs (DS-7104NI-Q1, DS-7108NI-Q1, DS-7604NI-K1/Q1, DS-7608NI-K1/Q1/Q2 and DS-7616NI-K1/Q1/Q2 variants in NVD's CPE list) | — | per model; NVD lists the firmware CPEs without a version range, so the fixed build comes from Hikvision's security notification |
What does this mean for affected devices?
NVD describes CVE-2021-36260 as "a command injection vulnerability in the web server of some Hikvision product": "due to the insufficient input validation, attacker can exploit the vulnerability to launch a command injection attack by sending some messages with malicious commands." The record is Analyzed. NVD's Primary CVSS v3.1 score is 9.8 (critical), vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, with CWE-78; the legacy CVSS v2 score is 9.3. Its configuration lists 256 Hikvision firmware CPEs: 130 DS-2CD fixed cameras, 46 DS-2DF and 31 DS-2TD models, 25 DS-71xxNI and DS-76xxNI recorders, and smaller DS-2DY, DS-2XE, PTZ-N and iDS groups. None of them carries a version range (NVD).
The researcher who found it, Watchful IP, found the bug on 20 June 2021 and reported it to Hikvision the next day. The Watchful IP report calls it a zero-click remote code execution that needs "only access to the http(s) server port (typically 80/443)", with no username or password and no action by the owner, and says it "will not be detectable by any logging on the camera itself." The shell it gives is unrestricted, which is more than the owner gets: Hikvision limits owners to a "protected shell" (psh) that filters input to a set of mostly informational commands. The latest firmware was vulnerable as of 21 June 2021, and the researcher found affected firmware as far back as 2016. Some NVRs are affected too, "though this is less widespread".
The report lists the affected firmware types with the most recent vulnerable build of each:
- Fixed cameras: IPC_E0, IPC_E1, IPC_E2, IPC_E4, IPC_E6, IPC_E7, IPC_G3, IPC_G5, IPC_H1, IPC_H5, IPC_H8 and IPC_R2, for example
IPC_G3_EN_STD_5.5.160_210416andIPC_G5_EN_STD_5.5.113_210317. - PTZ cameras: IPD_E7, IPD_G3, IPD_H5, IPD_H7 and IPD_H8, up to
IPD_H8_EN_STD_5.7.1_210619. - Legacy types: IPC_R7, IPD_R7, IPC_G0, IPC_H3 and IPD_H3 up to 5.4.x, where newer firmware without the flaw has existed for some time.
OEM firmware is not in the list because "there's too many to try to obtain and check", so a camera sold under another brand on a Hikvision board needs its own check.
Hikvision's Security Response Center sent patched IPC_G3 and IPC_H5 firmware, V5.5.800 build 210628, which the researcher tested on 18 August 2021. Hikvision and Watchful IP published their advisory and report on 18 September 2021. At that point the patched firmware was fully deployed on Hikvision's China region portal but only partly on the global site, and much of it was missing from the European and Russian portals. Hikvision's security notification holds the per-model fix list; on 2026-11-17 its body required a Hikvision ID login, so this page does not quote its model table.
CISA added CVE-2021-36260 to the KEV catalog on 2022-01-10 with a due date of 2022-01-24 and the required action "Apply updates per vendor instructions"; known ransomware use is listed as Unknown (catalog version 2026.11.13, checked 2026-11-17). CISA's SSVC entry on the NVD record rates exploitation active, automatable yes and technical impact total. FIRST EPSS gives it 0.99869, the 99.96th percentile, in the 2026-11-16 dataset (FIRST EPSS).
For device makers, our IP camera and NVR firmware vulnerabilities guide ranks this CVE first among the camera KEV entries and shows how to find the Hikvision firmware type and build in an image. The bug class, request data reaching a shell without validation, is the one our command injection fix guide covers. The other Hikvision KEV entry on this site is CVE-2017-7921, an authentication bypass in 2014-2016 camera firmware.
To fix it, install Hikvision firmware built after the June 2021 patch for each model's firmware type, from the vendor portal for your region or an authorised distributor. Because NVD's CPEs carry no version range, a scanner match on model alone does not prove exposure: compare the build date in the device's version string with the patched build. Until a unit is updated, keep its web ports off the internet and reachable only from a management network.
Evidence
- Command injection in the web server of some Hikvision products through insufficient input validation; NVD Analyzed; Primary CVSS v3.1 9.8; CWE-78; CVSS v2 9.3; 256 Hikvision firmware CPEs without version ranges, including 25 DS-71xxNI/DS-76xxNI models. — NVD
- Found 20 June 2021, reported 21 June; zero-click, needs only the HTTP(S) port, no credentials, not logged on the camera; unrestricted root shell versus the owner's psh; firmware back to 2016 affected; some NVRs affected; affected firmware types listed; OEM firmware not listed. — Watchful IP
- Patched IPC_G3 and IPC_H5 V5.5.800 build 210628 tested on 18 August 2021; joint publication 18 September 2021; patched firmware fully on the China portal, partly on the global site, much of it missing on European and Russian portals. — Watchful IP
- Hikvision security notification for the command injection vulnerability; body behind a Hikvision ID login on 2026-11-17. — Hikvision
- Added to the KEV catalog 2022-01-10, due 2022-01-24, required action 'Apply updates per vendor instructions', ransomware use Unknown (catalog version 2026.11.13). — CISA KEV
- EPSS 0.99869, 99.96th percentile, 2026-11-16 dataset. — FIRST EPSS

Related advisories
Sources
Frequently asked questions
Does an attacker need a password to exploit CVE-2021-36260?
No. The Watchful IP report says only access to the camera's HTTP or HTTPS port, typically 80 or 443, is needed, with no username, no password and no action by the owner, and NVD's vector records no privileges and no user interaction (per Watchful IP and NVD).
Which Hikvision firmware fixes CVE-2021-36260?
The first patched builds were IPC_G3 and IPC_H5 V5.5.800 build 210628, from June 2021. Other firmware types got their own patched builds; Hikvision's security notification holds the per-model list, so compare each device's build date with it (per Watchful IP and Hikvision).
Are Hikvision NVRs affected by CVE-2021-36260?
Some are. Watchful IP says some NVRs are affected, though less widely than cameras, and NVD's CPE list includes 25 DS-71xxNI and DS-76xxNI recorder models, such as DS-7608NI-K1 and DS-7616NI-Q2 (per Watchful IP and NVD).
Is CVE-2021-36260 in the CISA KEV catalog?
Yes. CISA added it on 2022-01-10 with a due date of 2022-01-24, and it is still listed in catalog version 2026.11.13, checked 2026-11-17. FIRST EPSS gives it 0.99869 in the 2026-11-16 dataset (per CISA KEV and FIRST EPSS).
Questions about this page?