Quantum Secular Labs / Blog / Advisories
CVE-2021-36260: Hikvision Improper Input Validation
CVE-2021-36260 is rated critical with a CVSS v3.1 base score of 9.8 and affects Hikvision Security cameras web server, along with 256 other products in NVD’s configuration data. Per its scoring, it can be exploited over the network, without authentication, without any user interaction. The scored impact on confidentiality, integrity and availability is the highest available. CISA added it to its Known Exploited Vulnerabilities catalog on 2022-01-10, which means exploitation in the wild has been observed.
Vulnerability description
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.
Severity breakdown
CVSS v3.1 9.8: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector: Network. Exploitable remotely over the network, with no need for local or physical access.
- Attack complexity: Low. No special conditions; the attack can be repeated reliably.
- Privileges required: None. No account or prior access is needed.
- User interaction: None. No action from any user is needed.
- Scope: Unchanged. Impact stays within the vulnerable component.
- Confidentiality impact: High. Total loss of confidentiality; sensitive data can be fully disclosed.
- Integrity impact: High. Total loss of integrity; data or system state can be fully modified.
- Availability impact: High. Total loss of availability; the component can be shut down.
Underlying weakness
CWE-78: Improper Neutralization of Special Elements used in an OS Command
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command before it is sent to a downstream component.
Affected products
- Hikvision Ds 2cd2026g2 Iu/Sl Firmware: all versions listed by NVD
- Hikvision Ds 2cd2046g2 Iu/Sl Firmware: all versions listed by NVD
- Hikvision Ds 2cd2066g2 I(U) Firmware: all versions listed by NVD
- Hikvision Ds 2cd2066g2 Iu/Sl Firmware: all versions listed by NVD
- Hikvision Ds 2cd2086g2 I(U) Firmware: all versions listed by NVD
- Hikvision Ds 2cd2086g2 Iu/Sl Firmware: all versions listed by NVD
- Hikvision Ds 2cd2166g2 I(Su) Firmware: all versions listed by NVD
- Hikvision Ds 2cd2186g2 I(Su) Firmware: all versions listed by NVD
- Hikvision Ds 2cd2186g2 Isu Firmware: all versions listed by NVD
- Hikvision Ds 2cd2326g2 Isu/Sl Firmware: all versions listed by NVD
- Hikvision Ds 2cd2346g2 Isu/Sl Firmware: all versions listed by NVD
- Hikvision Ds 2cd2366g2 I(U) Firmware: all versions listed by NVD
- Hikvision Ds 2cd2366g2 Isu/Sl Firmware: all versions listed by NVD
- Hikvision Ds 2cd2386g2 I(U) Firmware: all versions listed by NVD
- Hikvision Ds 2cd2386g2 Isu/Sl Firmware: all versions listed by NVD
References
- https://www.hikvision.com/en/support/cybersecurity/security-advisory/security-notification-command-injection-vulnerability-in-some-hikvision-products/
- http://packetstormsecurity.com/files/164603/Hikvision-Web-Server-Build-210702-Command-Injection.html
- http://packetstormsecurity.com/files/166167/Hikvision-IP-Camera-Unauthenticated-Command-Injection.html
- https://therecord.media/experts-warn-of-widespread-exploitation-involving-hikvision-cameras/
- https://www.cyfirma.com/wp-content/uploads/2022/08/HikvisionSurveillanceCamerasVulnerabilities.pdf
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-36260