CVE-2022-34820 Command injection in SIMATIC CP 1242-7 V2

High 8.4 Published Updated

Attackers can inject commands during authentication to execute arbitrary code with elevated privileges on Siemens SIMATIC communication processors.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2022-34820?

CVE-2022-34820 is a high-severity command injection vulnerability in Siemens SIMATIC CP 1242-7 V2, published on 12 Jul 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A vulnerability has been identified in SIMATIC CP 1242-7 V2 (All versions < V3.3.46), SIMATIC CP 1243-1 (All versions < V3.3.46), SIMATIC CP 1243-7 LTE EU (All versions < V3.3.46), SIMATIC CP 1243-7 LTE US (All versions < V3.3.46), SIMATIC CP 1243-8 IRC (All versions < V3.3.46), SIMATIC CP 1542SP-1 IRC (All versions >= V2.0 < V2.2.28), SIMATIC CP 1543-1 (All versions < V3.0.22), SIMATIC CP 1543SP-1 (All versions >= V2.0 < V2.2.28), SIPLUS ET 200SP CP 1542SP-1 IRC TX RAIL (All versions >= V2.0 < V2.2.28), SIPLUS ET 200SP CP 1543SP-1 ISEC (All versions >= V2.0 < V2.2.28), SIPLUS ET 200SP CP 1543SP-1 ISEC TX RAIL (All versions >= V2.0 < V2.2.28), SIPLUS NET CP 1242-7 V2 (All versions < V3.3.46), SIPLUS NET CP 1543-1 (All versions < V3.0.22), SIPLUS S7-1200 CP 1243-1 (All versions < V3.3.46), SIPLUS S7-1200 CP 1243-1 RAIL (All versions < V3.3.46). The application does not correctly escape some user provided fields during the authentication process. This could allow an attacker to inject custom commands and execute arbitrary code with elevated privileges.

Weakness: CWE-116, CWE-77

Which versions are affected by CVE-2022-34820?

It affects 15 products.

Products include Siemens Simatic Cp 1242-7 V2 Firmware, Siemens Simatic Cp 1243-1 Firmware, Siemens Simatic Cp 1243-7 Lte Eu Firmware, Siemens Simatic Cp 1243-7 Lte Us Firmware, Siemens Simatic Cp 1243-8 Irc Firmware, Siemens Simatic Cp 1542sp-1 Irc Firmware and 9 more.

How do I fix CVE-2022-34820?

No fix has been published for CVE-2022-34820 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2022-34820 being exploited?

There is no known exploitation of CVE-2022-34820 in the wild and no public exploit code.

Sources

Also known as GHSA-6j7x-87cm-p532.

Is CVE-2022-34820 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free