ICS Advisory

Siemens SINAMICS Medium Voltage Products Remote Access (Update B)

Last Revised
Alert Code
ICSA-21-131-04

1. EXECUTIVE SUMMARY

  • CVSS v3 9.8
  • ATTENTION: Exploitable remotely
  • Vendor: Siemens
  • Equipment: SINAMICS Medium Voltage Products, Remote Access
  • Vulnerabilities: Improper Restriction of Operations Within the Bounds of a Memory Buffer, Access of Memory Location After End of Buffer, Uncontrolled Resource Consumption, Improper Initialization, Out-of-Bound Read, Heap-based Buffer Overflow, Stack-based Buffer Overflow, Improper Null Termination

2. UPDATE INFORMATION

This updated advisory is a follow-up to the advisory update titled ICSA-21-131-04 Siemens Medium Voltage Products (Update A) that was published May 11, 2021, to the ICS webpage on us-cert.cisa.gov.

3. RISK EVALUATION

Successful exploitation of this vulnerability could allow an attacker to gain full remote access to the HMI.

4. TECHNICAL DETAILS

4.1 AFFECTED PRODUCTS

Siemens reports this vulnerability affects the following SINAMICS products with remote access enabled on SIMATIC comfort HMI Panels:

  • SINAMICS GH150: All versions
  • SINAMICS GL150 (with option X30): All versions
  • SINAMICS GM150 (with option X30): All versions
  • SINAMICS SH150: All versions
  • SINAMICS SL150: All versions
  • SINAMICS SM120: All versions
  • SINAMICS SM150: All versions
  • SINAMICS SM150i: All versions

4.2 VULNERABILITY OVERVIEW

4.2.1    IMPROPER RESTRICTION OF OPERATIONS WITHIN THE BOUNDS OF A MEMORY BUFFER CWE-119

SmartVNC has a heap allocation leak vulnerability in the server Tight encoder, which could result in a denial-of-service condition.

CVE-2021-27383 has been assigned to this vulnerability. A CVSS v3 base score of 7.5 has been calculated; the CVSS vector string is (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

4.2.2    ACCESS OF MEMORY LOCATION AFTER END OF BUFFER CWE-788

SmartVNC has an out-of-bounds memory access vulnerability in the device layout handler, represented by a binary data stream on client side, which could result in code execution.

CVE-2021-27384 has been assigned to this vulnerability. A CVSS v3 base score of 9.8 has been calculated; the CVSS vector string is (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

4.2.3    UNCONTROLLED RESOURCE CONSUMPTION CWE-400

A remote attacker could send specially crafted packets to SmartVNC device layout handler on client side, which could influence the amount of resources consumed and result in a denial-of-service (infinite loop) condition.

CVE-2021-27385 has been assigned to this vulnerability. A CVSS v3 base score of 7.5 has been calculated; the CVSS vector string is (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

4.2.4    IMPROPER RESTRICTION OF OPERATIONS WITHIN THE BOUNDS OF A MEMORY BUFFER CWE-119

SmartVNC has a heap allocation leak vulnerability in the device layout handler on client side, which could result in a denial-of-service condition.

CVE-2021-27386 has been assigned to this vulnerability. A CVSS v3 base score of 7.5 has been calculated; the CVSS vector string is (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

4.2.5    IMPROPER INITIALIZATION CWE-665

UltraVNC Revision 1198 contains multiple memory leaks in VNC client code, which could allow an attacker to read stack memory and can be abused for information disclosure. Combined with another vulnerability, it can be used to leak stack memory and bypass ASLR.

CVE-2019-8259 has been assigned to this vulnerability. A CVSS v3 base score of 7.5 has been calculated; the CVSS vector string is (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).

4.2.6    OUT-OF-BOUNDS READ CWE-125

UltraVNC Revision 1199 has an out-of-bounds read vulnerability in VNC client RRE decoder code, caused by multiplication overflow. 

CVE-2019-8260 has been assigned to this vulnerability. A CVSS v3 base score of 9.8 has been calculated; the CVSS vector string is (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

4.2.7    OUT-OF-BOUNDS READ CWE-125

UltraVNC Revision 1199 has an out-of-bounds read vulnerability in VNC code inside client CoRRE decoder, caused by multiplication overflow.

CVE-2019-8261 has been assigned to this vulnerability. A CVSS v3 base score of 9.8 has been calculated; the CVSS vector string is (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

4.2.8    HEAP-BASED BUFFER OVERFLOW CWE-122

UltraVNC Revision 1203 has multiple heap buffer overflow vulnerabilities in VNC client code inside Ultra decoder, which could result in code execution.

CVE-2019-8262 has been assigned to this vulnerability. A CVSS v3 base score of 9.8 has been calculated; the CVSS vector string is (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

4.2.9    STACK-BASED BUFFER OVERFLOW CWE-121

UltraVNC Revision 1205 has a stack-based buffer overflow vulnerability in VNC client code inside ShowConnInfo routine, which could lead to a denial-of-service condition.

CVE-2019-8263 has been assigned to this vulnerability. A CVSS v3 base score of 6.5 has been calculated; the CVSS vector string is (AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H).

4.2.10     ACCESS OF MEMORY LOCATION AFTER END OF BUFFER CWE-788

UltraVNC Revision 1203 has an out-of-bounds access vulnerability in VNC client inside Ultra2 decoder, which could result in code execution.

CVE-2019-8264 has been assigned to this vulnerability. A CVSS v3 base score of 9.8 has been calculated; the CVSS vector string is (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

4.2.11     ACCESS OF MEMORY LOCATION AFTER END OF BUFFER CWE-788

UltraVNC Revision 1207 has multiple out-of-bounds access vulnerabilities connected with improper usage of SETPIXELS macro in VNC client code, which could result in code execution.

CVE-2019-8265 has been assigned to this vulnerability. A CVSS v3 base score of 9.8 has been calculated; the CVSS vector string is (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

4.2.12     IMPROPER NULL TERMINATION CWE-170

UltraVNC Revision 1211 has multiple improper null termination vulnerabilities in VNC server code, which could result in out-of-bounds data being accessed by remote users.

CVE-2019-8275 has been assigned to this vulnerability. A CVSS v3 base score of 9.8 has been calculated; the CVSS vector string is (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

4.2.13     IMPROPER INITIALIZATION CWE-665

UltraVNC Revision 1211 contains multiple memory leaks in VNC server code, which could allow an attacker to read stack memory and can be abused for information disclosure.

CVE-2019-8277 has been assigned to this vulnerability. A CVSS v3 base score of 7.5 has been calculated; the CVSS vector string is (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).

4.2.14     ACCESS OF MEMORY LOCATION AFTER END OF BUFFER CWE-788

UltraVNC Revision 1203 has out-of-bounds access vulnerability in VNC client inside RAW decoder, which could result in code execution.

CVE-2019-8280 has been assigned to this vulnerability. A CVSS v3 base score of 9.8 has been calculated; the CVSS vector string is (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

4.3 BACKGROUND

  • CRITICAL INFRASTRUCTURE SECTORS: Chemical, Commercial Facilities, Critical Manufacturing, Energy, Food and Agriculture, Healthcare and Public Health, Transportation Systems, Water and Wastewater Systems
  • COUNTRIES/AREAS DEPLOYED: Worldwide
  • COMPANY HEADQUARTERS LOCATION: Germany

4.4 RESEARCHER

Siemens reported this vulnerability to CISA.

5. MITIGATIONS

--------- Begin Update B Part 1 of 2 ---------

Only HMI image versions prior to v16 Update 3a are affected. Siemens recommends updating the HMI Panel, as included in the following products:

--------- End Update B Part 1 of 2 ---------

Siemens has identified the following specific workarounds and mitigations users can apply to reduce the risk:

  • Restrict access to Port 5900/TCP to trusted IP addresses only

--------- Begin Update B Part 2 of 2 ---------

  • Disable Sm@rtServer in the SIMATIC HMI Comfort Panels system component of SINAMICS. If this is not possible, apply defense-in-depth principles. Note: Sm@rtServer is disabled by default but can be enabled on request by the system integrator.
  • Follow SINAMICS MV industrial security guidelines.
  • For any questions regarding update, please contact Siemens customer service or the system integrator.

--------- End Update B Part 2 of 2 ---------

As a general security measure, Siemens strongly recommends users protect network access to devices with appropriate mechanisms. In order to operate the devices in a protected IT environment, Siemens recommends users configure the environment according to Siemens’ operational guidelines for industrial security, and follow the recommendations in the product manuals. Additional information on industrial security by Siemens can be found at: https://www.siemens.com/industrialsecurity

For additional information see Siemens Security Advisory SSA-286838

CISA recommends users take defensive measures to minimize the risk of exploitation of this vulnerability. Specifically, users should:

  • Minimize network exposure for all control system devices and/or systems, and ensure that they are not accessible from the Internet.
  • Locate control system networks and remote devices behind firewalls, and isolate them from the business network.
  • When remote access is required, use secure methods, such as Virtual Private Networks (VPNs), recognizing VPNs may have vulnerabilities and should be updated to the most current version available. Also recognize VPN is only as secure as its connected devices.

CISA reminds organizations to perform proper impact analysis and risk assessment prior to deploying defensive measures.



CISA also provides a section for control systems security recommended practices on the ICS webpage on us-cert.cisa.gov. Several recommended practices are available for reading and download, including Improving Industrial Control Systems Cybersecurity with Defense-in-Depth Strategies.

Additional mitigation guidance and recommended practices are publicly available on the ICS webpage on us-cert.cisa.gov in the Technical Information Paper, ICS-TIP-12-146-01B--Targeted Cyber Intrusion Detection and Mitigation Strategies.



Organizations observing any suspected malicious activity should follow their established internal procedures and report their findings to CISA for tracking and correlation against other incidents.

No known public exploits specifically target these vulnerabilities. These vulnerabilities have a high attack complexity.

This product is provided subject to this Notification and this Privacy & Use policy.

Vendor

Siemens