Siemens (CVE-2021-4034)

high Tenable OT Security Plugin ID 501030

Synopsis

The remote OT asset is affected by a vulnerability.

Description

A local privilege escalation vulnerability was found on polkit's pkexec utility. The pkexec application is a setuid tool designed to allow unprivileged users to run commands as privileged users according predefined policies. The current version of pkexec doesn't handle the calling parameters count correctly and ends trying to execute environment variables as commands. An attacker can leverage this by crafting environment variables in such a way it'll induce pkexec to execute arbitrary code. When successfully executed the attack can cause a local privilege escalation given unprivileged users administrative rights on the target machine.

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

Solution

Refer to the vendor advisory.

See Also

https://www.qualys.com/2022/01/25/cve-2021-4034/pwnkit.txt

https://access.redhat.com/security/vulnerabilities/RHSB-2022-001

https://bugzilla.redhat.com/show_bug.cgi?id=2025869

http://www.nessus.org/u?40c4feca

http://www.nessus.org/u?58b9c9fb

http://www.nessus.org/u?cc50a9c7

http://www.nessus.org/u?b7885cda

https://www.suse.com/support/kb/doc/?id=000020564

https://www.vicarius.io/vsociety/posts/pwnkit-pkexec-lpe-cve-2021-4034

https://www.oracle.com/security-alerts/cpuapr2022.html

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

https://www.starwindsoftware.com/security/sw-20220818-0001/

Plugin Details

Severity: High

ID: 501030

Version: 1.12

Type: remote

Family: Tenable.ot

Published: 4/11/2023

Updated: 12/5/2024

Supported Sensors: Tenable OT Security

Risk Information

VPR

Risk Factor: Critical

Score: 9.8

CVSS v2

Risk Factor: High

Base Score: 7.2

Temporal Score: 6.3

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

CVSS Score Source: CVE-2021-4034

CVSS v3

Risk Factor: High

Base Score: 7.8

Temporal Score: 7.5

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:H/RL:O/RC:C

Vulnerability Information

CPE: cpe:/o:siemens:scalance_m804pb_firmware:7.2, cpe:/o:siemens:scalance_m816-1_adsl-router_%28annex_a%29_firmware:7.2, cpe:/o:siemens:scalance_m874-3_firmware:7.2, cpe:/o:siemens:scalance_m876-4_%28nam%29_firmware:7.2, cpe:/o:siemens:scalance_s615_eec_firmware:7.2, cpe:/o:siemens:scalance_lpe9403_firmware:2.0, cpe:/o:siemens:scalance_m876-3_%28evdo%29_firmware:7.2, cpe:/o:siemens:scalance_m816-1_adsl-router_%28annex_b%29_firmware:7.2, cpe:/o:siemens:scalance_s615_firmware:7.2, cpe:/o:siemens:ruggedcom_rm1224_lte%284g%29_eu_firmware:7.2, cpe:/o:siemens:scalance_m812-1_adsl-router_%28annex_a%29_firmware:7.2, cpe:/o:siemens:scalance_mum856-1_%28row%29_firmware:7.2, cpe:/o:siemens:scalance_m812-1_adsl-router_%28annex_b%29_firmware:7.2, cpe:/o:siemens:scalance_mum853-1_%28eu%29_firmware:7.2, cpe:/o:siemens:scalance_m874-2_firmware:7.2, cpe:/o:siemens:ruggedcom_rm1224_lte%284g%29_nam_firmware:7.2, cpe:/o:siemens:scalance_m876-4_%28eu%29_firmware:7.2, cpe:/o:siemens:scalance_m826-2_shdsl-router_firmware:7.2, cpe:/o:siemens:scalance_mum856-1_%28eu%29_firmware:7.2, cpe:/o:siemens:scalance_m876-4_firmware:7.2, cpe:/o:siemens:scalance_m876-3_%28rok%29_firmware:7.2

Required KB Items: Tenable.ot/Siemens

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 1/28/2022

Vulnerability Publication Date: 1/28/2022

CISA Known Exploited Vulnerability Due Dates: 7/18/2022

Exploitable With

CANVAS (CANVAS)

Core Impact

Metasploit (Local Privilege Escalation in polkits pkexec)

Reference Information

CVE: CVE-2021-4034

CWE: 125, 787

ICSA: 22-167-16