CVE-2023-42797 Command injection in CP-8031 MASTER MODULE

Medium 6.6 Published Updated

An authenticated remote attacker can inject commands executed with root privileges on Siemens CP-8031/8050 modules during startup via crafted network configuration.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2023-42797?

CVE-2023-42797 is a medium-severity command injection vulnerability in Siemens CP-8031 MASTER MODULE, published on 9 Jan 2024. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

A vulnerability has been identified in CP-8031 MASTER MODULE (All versions < CPCI85 V05.20), CP-8050 MASTER MODULE (All versions < CPCI85 V05.20). The network configuration service of affected devices contains a flaw in the conversion of ipv4 addresses that could lead to an uninitialized variable being used in succeeding validation steps. By uploading specially crafted network configuration, an authenticated remote attacker could be able to inject commands that are executed on the device with root privileges during device startup.

Weakness: CWE-908

Which versions are affected by CVE-2023-42797?

It affects 2 products.

Products include Siemens Sicam A8000 Cp-8031 Firmware, Siemens Sicam A8000 Cp-8050 Firmware.

How do I fix CVE-2023-42797?

No fix has been published for CVE-2023-42797 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-2023-42797 being exploited?

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

Sources

Also known as GHSA-j695-jhjg-w8vx.

Is CVE-2023-42797 in your software?

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

Check your SBOMs for free