CVE-2021-40358 Path traversal in SIMATIC PCS 7 V8.2

Critical 9.9 Published Updated

Attackers can exploit path traversal in the web server to read, write, or delete critical files outside the restricted directory.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-40358?

CVE-2021-40358 is a critical path traversal vulnerability in Siemens SIMATIC PCS 7 V8.2, published on 9 Nov 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A vulnerability has been identified in SIMATIC PCS 7 V8.2 (All versions), SIMATIC PCS 7 V9.0 (All versions < V9.0 SP3 UC04), SIMATIC PCS 7 V9.1 (All versions < V9.1 SP1), SIMATIC WinCC V15 and earlier (All versions < V15 SP1 Update 7), SIMATIC WinCC V16 (All versions < V16 Update 5), SIMATIC WinCC V17 (All versions < V17 Update 2), SIMATIC WinCC V7.4 (All versions < V7.4 SP1 Update 19), SIMATIC WinCC V7.5 (All versions < V7.5 SP2 Update 5). Legitimate file operations on the web server of the affected systems do not properly neutralize special elements within the pathname. An attacker could then cause the pathname to resolve to a location outside of the restricted directory on the server and read, write or delete unexpected critical files.

Weakness: CWE-22

Which versions are affected by CVE-2021-40358?

It affects 2 products.

Products include Siemens Simatic Pcs 7, Siemens Simatic Wincc.

How do I fix CVE-2021-40358?

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

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2021-40358 being exploited?

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

Sources

Also known as GHSA-rcjv-2hj5-3cmq.

Is CVE-2021-40358 in your software?

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

Check your SBOMs for free