Siemens SIMATIC and SCALANCE Devices Out-of-bounds Write (CVE-2023-5717)

high Tenable OT Security Plugin ID 502915

Synopsis

The remote OT asset is affected by a vulnerability.

Description

A heap out-of-bounds write vulnerability in the Linux kernel's Linux Kernel Performance Events (perf) component can be exploited to achieve local privilege escalation. If perf_read_group() is called while an event's sibling_list is smaller than its child's sibling_list, it can increment or write to memory locations outside of the allocated buffer. We recommend upgrading past commit 32671e3799ca2e4590773fd0e63aaa4229e50c06.

This plugin only works with Tenable.ot.
Please visit https://www.tenable.com/products/tenable-ot for more information.

Solution

The following text was originally created by the Cybersecurity and Infrastructure Security Agency (CISA). The original can be found at CISA.gov.

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

- All affected products: Update to V3.1 or later version

As a general security measure, Siemens recommends protecting network access to devices with appropriate mechanisms. To operate the devices in a protected IT environment, Siemens recommends configuring the environment according to Siemens' operational guidelines for industrial security and following recommendations in the product manuals.

For more information, see the associated Siemens security advisory in HTML and CSAF.

See Also

https://cert-portal.siemens.com/productcert/pdf/ssa-794697.pdf

https://cert-portal.siemens.com/productcert/html/ssa-398330.html

https://cert-portal.siemens.com/productcert/html/ssa-769027.html

https://support.industry.siemens.com/cs/ww/en/view/109977720/

https://support.industry.siemens.com/cs/ww/en/view/109827684/

https://www.cisa.gov/news-events/ics-advisories/icsa-25-044-09

https://www.cisa.gov/news-events/ics-advisories/icsa-25-226-15

Plugin Details

Severity: High

ID: 502915

File Name: tenable_ot_siemens_CVE-2023-5717.nasl

Version: 1.5

Type: remote

Family: Tenable.ot

Published: 2/24/2025

Updated: 2/27/2026

Supported Sensors: Tenable OT Security

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5

Vector: CVSS2#AV:L/AC:L/Au:S/C:C/I:C/A:C

CVSS Score Source: CVE-2023-5717

CVSS v3

Risk Factor: High

Base Score: 7.8

Temporal Score: 6.8

Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/o:siemens:scalance_wab762-1_firmware:3.0.0, cpe:/o:siemens:scalance_wum766-1_%28me%29_firmware:3.0.0, cpe:/o:siemens:scalance_wum766-1_%28usa%29_firmware:3.0.0, cpe:/o:siemens:scalance_wam766-1_eec_%28me%29_firmware:3.0.0, cpe:/o:siemens:scalance_wam766-1_%28me%29_firmware:3.0.0, cpe:/o:siemens:simatic_s7-1500_cpu_firmware:3.1.5, cpe:/o:siemens:scalance_wam766-1_eec_firmware:3.0.0, cpe:/o:siemens:scalance_wum763-1_firmware:3.0.0, cpe:/o:siemens:scalance_wub762-1_firmware:3.0.0, cpe:/o:siemens:scalance_wam766-1_firmware:3.0.0, cpe:/o:siemens:scalance_wam763-1_%28me%29_firmware:3.0.0, cpe:/o:siemens:scalance_wam766-1_eec_%28us%29_firmware:3.0.0, cpe:/o:siemens:siplus_s7-1500_cpu_firmware:3.1.5, cpe:/o:siemens:scalance_wub762-1_ifeatures_firmware:3.0.0, cpe:/o:siemens:simatic_s7-1500_tm_mfp, cpe:/o:siemens:scalance_wam763-1_%28us%29_firmware:3.0.0, cpe:/o:siemens:scalance_wam763-1_firmware:3.0.0, cpe:/o:siemens:scalance_wum766-1_firmware:3.0.0, cpe:/o:siemens:scalance_wam766-1_%28us%29_firmware:3.0.0, cpe:/o:siemens:scalance_wum763-1_%28us%29_firmware:3.0.0

Required KB Items: Tenable.ot/Siemens

Exploit Ease: No known exploits are available

Patch Publication Date: 6/13/2023

Vulnerability Publication Date: 6/13/2023

Reference Information

CVE: CVE-2023-5717

CWE: 787

ICSA: 25-044-09, 25-226-15