CVE-2021-40358
Siemens SIMATIC WinCC vulnerability analysis and mitigation

Overview

A path traversal vulnerability (CVE-2021-40358) was identified in multiple versions of Siemens SIMATIC PCS 7 and SIMATIC WinCC systems. The vulnerability affects the web server component where legitimate file operations do not properly neutralize special elements within pathnames (NVD, Siemens Advisory).

Technical details

The vulnerability is classified as an Improper Limitation of a Pathname to a Restricted Directory (CWE-22). It received a CVSS v3.1 base score of 9.8 CRITICAL (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) from NVD and 9.9 CRITICAL (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H) from Siemens AG (NVD).

Impact

If exploited, an attacker could cause the pathname to resolve to a location outside of the restricted directory on the server, enabling them to read, write, or delete unexpected critical files (CISA).

Mitigation and workarounds

Siemens has released updates for affected products and recommends updating to the latest versions. For systems where updates are not available, Siemens recommends hardening the application's host to prevent local access by untrusted personnel and disabling the webserver or only enabling it temporarily when needed (CISA).

Additional resources


SourceThis report was generated using AI

Related Siemens SIMATIC WinCC vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-30033HIGH8.5
  • Telecontrol Server BasicTelecontrol Server Basic
  • cpe:2.3:a:siemens:simatic_wincc
NoYesAug 12, 2025
CVE-2023-48364HIGH7.1
  • Siemens SIMATIC WinCCSiemens SIMATIC WinCC
  • cpe:2.3:a:siemens:simatic_wincc
NoYesFeb 13, 2024
CVE-2023-48363HIGH7.1
  • Siemens SIMATIC WinCCSiemens SIMATIC WinCC
  • cpe:2.3:a:siemens:simatic_wincc
NoYesFeb 13, 2024
CVE-2023-32735HIGH7
  • Siemens SIMATIC WinCCSiemens SIMATIC WinCC
  • cpe:2.3:a:siemens:simatic_wincc
NoYesJul 09, 2024
CVE-2024-42513MEDIUM5.3
  • C#C#
  • OPCFoundation.NetStandard.Opc.Ua
NoYesFeb 10, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management