Security Notification- Command Injection Vulnerability in Some Hikvision products

septembre 18, 2021

Security Notification - Important Product Firmware Update

 

SN No.: HSRC-202109-01

Edit: Hikvision Security Response Center (HSRC)

Initial release date: 2021-09-19

Summary:

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.

CVE ID:

CVE-2021-36260

Scoring:

CVSS v3 is adopted in this vulnerability scoring(http://www.first.org/cvss/specification-document

Base score: 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)

Temporal score: 8.8 (E:P/RL:O/RC:C)

Affected versions and resolved version:

Information of affected versions and resolved versions

Product Category

Product name

Affected version(s)

Fixed Version(s)

Fixed Firmware Download Link

IP Kit

EKI-K41T44(C)
EKI-K82T46(C)
EKI-K164T412(C)
EKI-K41D44(B)
EKI-K82D46(B)
EKI-K164D412(B)
EKI-K82B86 (B)

Versions which Build time from 210224 to 210625

V4.30.216 build210629

https://us.hikvision.com/sites/default/files/firmware/dz_k9b2_ml_std_v4.30.216_210629.zip

Value Express IP

ECI-B12F2, ECI-B12F4
ECI-B12F6, ECI-D12F2
ECI-D12F4, ECI-D12F6
ECI-T22F2, ECI-T22F4
ECI-T22F6, ECI-B62Z2
ECI-D62Z2

Versions which Build time before 210720

V5.5.2 build210720

https://us.hikvision.com/sites/default/files/firmware/pj14pc20210715166_ipchl_e3_en_std_5.5.2_210720.zip

ECI-T22F2 (B), ECI-T22F4 (B)
ECI-D12F2 (B), ECI-D12F4 (B)
ECI-B12F2 (B), ECI-B12F4 (B)

Versions which Build time from 210410 to 210721

V5.5.120 build210721

https://us.hikvision.com/sites/default/files/firmware/pj14pc20210402045_...

ECI-T24F2 (C), ECI-T24F4 (C)
ECI-D14F2 (B), ECI-D14F4 (B)
ECI-B14F2 (B), ECI-B14F4 (B)

Versions which Build time from 210322 to 210630

V5.5.120 build210630

https://us.hikvision.com/sites/default/files/firmware/pj14pc20210629066_ipce_r_e8_en_std_5.5.120_210630.zip

Value IP

DS-2CD2D21G0/M-D/NF
DS-2CD2D21G0-D/NF

Versions which Build time before 210628

V5.5.800 build210628

https://us.hikvision.com/sites/default/files/firmware/ipc_e3_en_std_5.5.800_210628.zip

DS-2CD2086G2-I,  DS-2CD2346G2-I, 
DS-2CD2386G2-I,  DS-2CD2T87G2-L, 
DS-2CD2087G2-L,  DS-2CD2T86G2-4I, 
DS-2CD2147G2-SU,  DS-2CD2686G2T-IZS,
DS-2CD2786G2T-IZS,  DS-2CD2346G2-ISU/SL,  DS-2CD2T46G2-ISU/SL

Versions which Build time before 210625

V5.5.800 210628

https://us.hikvision.com/sites/default/files/firmware/ipc_g3_en_std_5.5.800_210628.zip

DS-2CD2T47G2-L (C),  DS-2CD2087G2-L (C),
DS-2CD2047G2-LU (C),  DS-2CD2147G2-SU (C),  DS-2CD2347G2-LU (C),  DS-2CD2647G2-LZS (C),  DS-2CD2747G2-LZS (C)

Versions which Build time before 210625

V 5.5.800 210727

https://us.hikvision.com/sites/default/files/firmware/ipc_g5_en_std_5.5.801_210727.zip

DS-2CD2510F
DS-2CD2520F
DS-2CD2120F-I

Versions which Build time before 210813

V5.4.800_210813

https://us.hikvision.com/sites/default/files/firmware/ipc_r2_en_std_5.4.800_210813.zip

Performance IP

PCI-B12F2S,  PCI-B12F4S,  PCI-B12F6S, 
PCI-B15F2S,  PCI-B15F4S,  PCI-B15F6S, 
PCI-B18F2S,  PCI-B18F4S,  PCI-B18F6S, 
PCI-D12F2S,  PCI-D12F4S,  PCI-D12F6S, 
PCI-D15F2S,  PCI-D15F4S,  PCI-D15F6S, 
PCI-T12F2S,  PCI-T12F4S,  PCI-T12F6S, 
PCI-T15F2S,  PCI-T15F4S,  PCI-T15F6S, 
PCI-T18F2S,  PCI-T18F4S,  PCI-T18F6S, 
PCI-LB12F2S,  PCI-LB12F4S,  PCI-LB12F6S, 
PCI-LB12F12S,  PCI-LB15F2S,  PCI-LB15F4S,  PCI-LB15F6S,  PCI-LB15F12S,  PCI-LB18F2S,  PCI-LB18F4S,  PCI-LB18F6S,  PCI-LB18F12S,  PCI-B12F2SL,  PCI-B12F4SL,  PCI-B12F6SL, 
PCI-B15F2SL,  PCI-B15F4SL,  PCI-B15F6SL, 
PCI-T12F2SL,  PCI-T12F4SL,  PCI-T12F6SL, 
PCI-T15F2SL,  PCI-T15F4SL,  PCI-T15F6SL, 
PCI-LB12F2SL,  PCI-LB12F4SL, 
PCI-LB12F6SL,  PCI-LB15F2SL, 
PCI-LB15F4SL,  PCI-LB15F6SL, 
PCI-B12Z2S,  PCI-B15Z2S,  PCI-B18Z2S, 
PCI-D12Z2S,  PCI-D15Z2S, PCI-D18Z2S

Versions which Build time before 210703

V5.5.150 build210703

https://us.hikvision.com/sites/default/files/firmware/pj14pc202106291608_g3_en_std_5.5.150_210703.zip

PCI-D18F4S

Versions which Build time before 210805

V5.5.115 build210805

https://us.hikvision.com/sites/default/files/firmware/pj14pc20210803215_ipce_g_g5_en_std_5.5.115_210805.zip

PanoVu

DS-2CD6924G0-HIS
DS-2CD6984G0-HIS

Versions which Build time before 210625

V5.5.800 build210628

https://us.hikvision.com/sites/default/files/firmware/ipcp_h5_en_std_5.5.800_210628.zip

Value PTZ (DE series)

DS-2DE2204IW-DE3

Versions which Build time before 210625

V5.4.800 build210812

https://us.hikvision.com/sites/default/files/firmware/ipd_r0_en_std_5.4.800_210812.zip

DS-2DE2A404IW-DE3

V5.6.800 build210628

https://us.hikvision.com/sites/default/files/firmware/ipde_e7_en_std_5.6.800_210628.zip

DS-2DE3A400BW-DE

V5.5.802 build210629

https://us.hikvision.com/sites/default/files/firmware/ipde_g3_en_std_5.5.802_210629.zip

DS-2DE4225W-DE

V5.6.800 build210628

https://us.hikvision.com/sites/default/files/firmware/ipde_e7_en_std_5.6.800_210628.zip

DS-2DE4225W-DE3

V5.4.800 build210812

https://us.hikvision.com/sites/default/files/firmware/ipd_r0_en_std_5.4.800_210812.zip

DS-2DE4A225IW-DE

V5.6.800 build210628

https://us.hikvision.com/sites/default/files/firmware/ipde_e7_en_std_5.6.800_210628.zip

DS-2DE4A425IW-DE

DS-2DE4425IW-DE

DS-2DE5225IW-AE

Smart Pro PTZ (DF series)

DS-2DF5232X-AEL
DS-2DF5232X-AE3
DS-2DF6A436X-AEL
DS-2DF8242IX-AELW

Versions which Build time before 210625

V5.5.800 build210628

https://us.hikvision.com/sites/default/files/firmware/ipd_h7_en_std_5.5.800_210628.zip

DS-2DF6A836XS-AEL
DS-2DF8442IXS-AELW
DS-2DF8C842IXS-AELW

Versions which Build time before 210625

V5.5.801 build210628

https://us.hikvision.com/sites/default/files/firmware/ipd_h5_en_std_5.5.801_210628.zip

DS-2DF9C245IHS-DLW

Versions which Build time before 210625

V5.5.801 build210701

https://us.hikvision.com/sites/default/files/firmware/ipdhg_h5_l1_en_std_5.5.801_210701.zip

Thermal Fixed Camera

DS-2TD1217-2/PA, DS-2TD1217-3/PA,
DS-2TD1217-6/PA, DS-2TD2617-3/PA,
DS-2TD2617-6/PA, DS-2TD2617-10/PA

DS-2TD2137-7/P, DS-2TD2637-10/P,
DS-2TD2637-15/P, DS-2TD2637-25/P,
DS-2TD2637-35/P, DS-2TD2667-15/P,
DS-2TD2667-35/P

Versions which build time before 210702

V5.5.42 build 210721

https://us.hikvision.com/sites/default/files/firmware/iphc_h7_en_std_5.5.42_210721.zip

DS-2TD1217-2/V1, DS-2TD1217-3/V1,
DS-2TD1217-6/V1, DS-2TD2617-3/V1,
DS-2TD2617-6/V1, DS-2TD2836-25/V1,
DS-2TD2836-50/V1, DS-2TD2866-25/V1,
DS-2TD2866-50/V1

Versions which build time before 210702

V5.5.22 build 210702

https://us.hikvision.com/sites/default/files/firmware/iptcs_h3_en_std_5....

 

DS-2TD2117-3/V1, DS-2TD2117-6/V1,
DS-2TD2136-7/V1, DS-2TD2136-10/V1,
DS-2TD2136-15/V1, DS-2TD2136-25/V1,
DS-2TD2136-35/V1, DS-2TD2137-7/V1,
DS-2TD2137-15/V1, DS-2TD2137-25/V1,
DS-2TD2166-7/V1, DS-2TD2166-15/V1,
DS-2TD2166-25/V1, DS-2TD2166-35/V1,
DS-2TD2615-7, DS-2TD2615-10,
DS-2TD2636-10, DS-2TD2636-15,
DS-2TD2836-25, DS-2TD2836-50,
DS-2TD2866-25, DS-2TD2866-50

Versions which build time before 210702

 V5.5.22 build 210702

https://us.hikvision.com/sites/default/files/firmware/iphc_h3_en_std_5.5.22_210702.zip

DS-2TD2136-7, DS-2TD2136-10,
DS-2TD2136-15, DS-2TD2136-25,
DS-2TD2136-35, DS-2TD2166-7,
DS-2TD2166-15, DS-2TD2166-25, 
DS-2TD2166-35, DS-2TD2136T-10,
DS-2TD2136T-15, DS-2TD2136T-25,
DS-2TD2166T-15, DS-2TD2166T-25,
DS-2TD2336-50, DS-2TD2336-75,
DS-2TD2336-100, DS-2TD2366-50,
DS-2TD2366-75, DS-2TD2366-100,
DS-2TD2466-25Y, DS-2TD2466-50Y

Versions which build time before 210702

V5.5.8 build 210702

https://us.hikvision.com/sites/default/files/firmware/iphc_h1_en_std_5.5...

Thermal PTZ Camera

DS-2TD4137-25/W,
DS-2TD4167-50/W,
DS-2TD6267-75C4L/W,
DS-2TD6267-100C4L/W, 
DS-2TD8167-190ZE2F/W

Versions which build time before 210702

V5.5.33 build 210729

https://us.hikvision.com/sites/default/files/firmware/iptm_h5_en_std_5.5...

DS-2TD4136-25/V2, DS-2TD4136-50/V2,
DS-2TD4166-25/V2, DS-2TD4166-50/V2,
DS-2TD4237-10/V2, DS-2TD4237-25/V2,
DS-2TD6236-50H2L/V2,
DS-2TD6236-75C2L/V2,
DS-2TD6266-100C2L/V2,
DS-2TD6266-50H2L/V2,
DS-2TD6266-75C2L/V2,
DS-2TD8166-150ZE2F/V2,
DS-2TD8166-180ZE2F/V2

Versions which build time before 210702

V5.5.39 build 210702

https://us.hikvision.com/sites/default/files/firmware/iptm_h3_en_std_5.5.39_210702.zip

HAT Camera

DS-2TD1217B-3/PA, DS-2TD1217B-6/PA,
DS-2TD2617B-6/PA, DS-2TD2636B-13/P,
DS-2TD2636B-15/P

Versions which build time before 210702

V5.5.34 build 210702

https://us.hikvision.com/sites/default/files/firmware/iptc_temp_h7_en_std_5.5.34_210702.zip

NVR

DS-7604NI-Q1/4P (C)
DS-7608NI-Q2/8P (C)
DS-7616NI-Q2/16P (C)

V4.30.210 Build201224    V4.30.216 build210111
V4.30.217 build210204
V4.31.100 build210511

V4.31.102 build210626

https://us.hikvision.com/sites/default/files/firmware/nvr_k9b2_bl_ml_std_v4.31.102_210626.zip

Precondition:

The attacker has access to the device network or the device has direct interface with the internet

Attack step:

Send a specially crafted message.

Obtaining fixed firmware:

Users should download the updated firmware to guard against this potential vulnerability. See above chart right column for download links.

FAQ:

Click here to Access the FAQ Document. 

Source of vulnerability information:

This vulnerability is reported to HSRC by UK security researcher Watchful IP.

Contact Us:

Should you have a security problem or concern, please contact Hikvision Security Response Center at hsrc@hikvision.com.

 

2021-09-23 V1.1 Update information of impacted product model/firmware versions and resolved versions.

2021-09-28 V1.2 Update information of impacted product model/affected versions/fix versions.

 

IMPORTANT! Ce modèle nécessite un logiciel non standard. N'installez pas de logiciel standard (par exemple, v.4.1.xx) sur ce modèle. Cela endommagerait définitivement votre système. Vous devez utiliser le logiciel personnalisé v.4.1.25 à partir de la page du produit iDS-9632NXI-I8/16S

View the most updated version of this document here:

https://techsupportca.freshdesk.com/en/support/solutions/articles/17000113531-i-series-nvr-firmware-upgrade-instructions

 

The I-series NVR (such as the DS-7716NI-I4) is one of Hikvision's most popular and feature-rich recorders. As such, many firmware revisions have been introduced over the years to continually ensure the product is compatible with the newest technology available. Due to the many revisions, we recommend that the user closely follows the instructions below in order to reduce the amount of time spent as well as the chance of failure.

 

Database Optimization and Repair

As more affordable IP cameras are introduced over time with greater video resolution and data sizes, more efficient database management also becomes necessary. The introduction of firmware v4.0 brought about a new database architecture in order to be futureproof.

 

After upgrading to v4.X, the recorder database will need to be converted and optimized. If you are experiencing issues where playback is expected but not found, make sure "Database Repair" is performed as indicated in the procedures and scenarios below.

 

Preparing the Upgrade

Before proceeding with upgrade, it is recommended that NVR configuration file is exported from the NVR over the network or on to a local USB drive.

 

Upgrading from v3.4.92 build 170518 or Older

  1. All recorders must reach v3.4.92 before proceeding further. Upgrading from versions before v3.4.92 directly to any version of v4.X will likely cause the recorder to fail.
  2. If the recorder is already at v3.4.92, a full factory default is highly recommended before upgrading to any version of v4.X. There is a high chance of unit failure (requiring RMA) if the unit is not defaulted before upgrade.
  3. After reaching v3.4.92 and performing a full factory default, an upgrade directly to v4.50.00 is acceptable.
  4. After the upgrade is completed and the recorder is reprogrammed, it may be beneficial to perform a Database Repair. For details, refer to the section "Database Optimization and Repair" above.
  5. To verify repair progress, you may refer to the HDD status, or search the recorder log for repair started and stopped entries. Note that while the HDD is repairing, new recordings are still being made, but some existing recordings may not be searchable until repair is complete.
  6. If you continue to observe playback issues after database repair, ensure there are no power, network, or motion detection issues. Should the problem persist, contact technical support.

 

Upgrading from Any v4.X Build to v4.50.00.

  1. Any v4.X build can be upgraded directly to v4.50.00.
  2. Export configuration is highly recommended before performing the upgrade.
  3. If upgrading from any v4.X version that was not v4.22.005, a Database Repair is recommended. Refer to Step 4 and onwards in the previous section.

 

Downgrading

Downgrading is not recommended. Due to new features and parameters constantly being added, downgrading may cause the NVR to factory default itself or require a manual default to operate properly.

View the most updated version of this document here:
K-Series DVR upgrade instruction
The Turbo 4 Hybrid DVR K series has multiple models and across different platform and chipset. It also has similar firmware development of other recording product line; DVR K series has also introduced the GUI4.0 to ensure the series to be compatible to the newest technology available. The new database architecture is also brought into the DVR firmware v4.0 to be future proof and for better recording search experience. 
 


Database Optimization and Repair

As more affordable cameras introduced over time with greater video resolution and data sizes, more efficient database management also becomes necessary. The introduction of firmware v4.0 brought about a new database architecture in order to be futureproof.
After upgrading to v4.X, the recorder database will need to be converted and optimize. If you are experiencing issues, where playback is expected but not found, please make sure to perform "Database Rebuild" as indicated in the procedures and scenarios below.
 


Preparing the Upgrade

Before proceeding with upgrade, it is recommend exporting DVR configuration file from the DVR over the network or on to a local USB drive.

 

Action after firmware upgraded 

1. Upgrade the DVR according to the chart above. 

2. Reconfirming Channel's Recording Schedule 

    - Confirm channel's recording schedule is enable. 

    - Check if the channel is on correct recording schedule.

3. Double Check Storage Setting

    - Make sure all channel are assigned to record on its HDD group when the Storage setting is under Group Mode. 

4. Perform Database Rebuild locally. 

    • Some version above support Database Rebuild via web access - K51 and K72

    • Perform Database Rebuild regardless if system is having any database issue symptom. 

    • Database Rebuild process is average ~30 to 60min per TB. The process may still varies depends recording data.

    • After Database Rebuild - Check log to confirm Database Rebuild has went thru properly. 

    • If Database Rebuild Started and Stopped log has been log only within few minutes. Database rebuild may not has been completed properly. It is strongly recommend performing the Database Rebuild again.

    • To check log > System > Log > Information > Database Rebuild Started and Stopped.

    • If the log option is not available - access system via SSH can also obtain similar result.

5. Recording Data is still missing after database rebuild process. 

If the data has not been recorded or has been overwritten, Database rebuild process is not able retrieve those lost data. Have the system upgraded to the latest available firmware version above to prevent any future data lost is strongly recommended for all application.

 

 

 

 

In light of the global semiconductor shortage, Hikvision has made some hardware changes to the DS-76xxNI-Q1(2)/P NVRs, also known as “Q series.”

 

These changes do not have any effect on the performance, specifications, or the user interface of the NVRs. For the ease of reference, these modified units are known as “C-Version” units. This is clearly indicated on the NVR label and on the box by the serial number.

 

The only difference between the “C-Version” and “non-C-Version” is the firmware. The firmware is not interchangeable:

 

  • The C-Version NVRs must use firmware version v4.31.102 or higher.
  • The non-C-Version (Q series) NVRs must use firmware version v4.30.085 or older.

 

Please do not be alarmed if a “Firmware Mismatch” message pops up on the screen during the firmware upgrade. This simply means that the firmware does not match the NVR’s hardware. Simply download the correct firmware and the upgrade will go through without any issue.

In light of the global semiconductor shortage, Hikvision has made some hardware changes to the Value Express Series NVRs

These changes do not have any effect on the performance and specification of the recorders. For ease of reference, these modified units are known as “C-Version” units. This is clearly indicated on the NVR label and on the box by the serial number.

The only difference between the “C-Version” and “non-C-Version” is the firmware. The firmware is not interchangeable:

  • The C-Version NVRs must use firmware version v4.30.216 or higher.
  • The non-C-Version (Q series) NVRs must use firmware version v3.4.104 or older.

Please do not be alarmed if a “Firmware Mismatch” message pops up on the screen during the firmware upgrade. This simply means that the firmware does not match the NVR’s hardware. Simply download the correct firmware and the upgrade will go through without any issue.

En téléchargeant et en utilisant des logiciels et autres matériels disponibles sur ce site, vous acceptez d'être lié par les Conditions Générales d'Utilisation de HIKVISION. Si vous n'acceptez pas ces conditions, vous ne pouvez télécharger aucun de ces documents. Si vous êtes d'accord sur votre entreprise, vous déclarez et garantissez que vous avez le pouvoir de lier votre entreprise aux Conditions Générales d'Utilisation . Vous déclarez et garantissez également que vous avez l'âge légal de la majorité dans la juridiction dans laquelle vous résidez (au moins 18 ans dans de nombreux pays).