CVE-2021-40358 is a path traversal in the web server of Siemens SIMATIC WinCC and PCS 7: file operations do not neutralize special elements in pathnames, so an attacker could resolve a path outside the restricted directory and read, write or delete critical files. NVD's Primary score is CVSS v2 7.5; Siemens scores it CVSS v3.1 9.9. Siemens fixed it in WinCC V7.4 SP1 Update 19, V7.5 SP2 Update 5 and PCS 7 V9.1 SP1, and advises disabling the web server when not needed.
Vulnerability summary
CVSS base score
7.5
High severity
EPSS score (FIRST)
1.3%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
No
Not listed
Published
Vulnerability ID: CVE-2021-40358 · Source: NVD

Affected components
| Component | CPE | Version range |
|---|---|---|
| Siemens SIMATIC WinCC V7.4 and V7.5 | cpe:2.3:a:siemens:simatic_wincc:7.4:*:*:*:*:*:*:* | V7.4 before V7.4 SP1 Update 19; V7.5 before V7.5 SP2 Update 5; fixed in those updates or later (Siemens SSA-840188) |
| Siemens SIMATIC WinCC V15 and earlier, V16, V17 | — | V15 and earlier before V15 SP1 Update 7; V16 before V16 Update 5; V17 before V17 Update 2; fixed in those updates or later |
| Siemens SIMATIC PCS 7 | cpe:2.3:a:siemens:simatic_pcs_7:9.1:-:*:*:*:*:*:* | V8.2 (all; update to V8.2 SP1 and then WinCC V7.4 SP1 Update 19 or later), V9.0 before V9.0 SP3 UC04, V9.1 before V9.1 SP1. NVD CPEs: simatic_pcs_7 8.2, 9.0, 9.1 |
What does this mean for affected devices?
NVD's description, from Siemens, says: "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." It lists PCS 7 V8.2, V9.0 before V9.0 SP3 UC04 and V9.1 before V9.1 SP1, and WinCC V15 and earlier, V16, V17, V7.4 and V7.5 before the fixed updates. NVD, Siemens and CISA all classify it as CWE-22 (NVD, CVE record).
Which score applies?
NVD's only Primary metric is CVSS v2 7.5 (AV:N/AC:L/Au:N/C:P/I:P/A:P), so this page uses 7.5 as the headline score. NVD also shows its own CVSS v3.1 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), but labels that metric Secondary. Siemens, the CNA, scores CVSS v3.1 9.9 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H/E:P/RL:O/RC:C): low privileges required and a changed scope. Every source rates the flaw as network-reachable.
What does Siemens say?
Siemens advisory SSA-840188 ("Multiple Vulnerabilities in SIMATIC WinCC Affecting Other SIMATIC Software Products", first published 2021-11-09, current version 7 of 2023-04-11) lists these fixes for CVE-2021-40358: WinCC V7.4 SP1 Update 19, V7.5 SP2 Update 5, V15 SP1 Update 7, V16 Update 5 and V17 Update 2, each "or later version"; PCS 7 V9.1 SP1 and V9.0 SP3 UC04; and for PCS 7 V8.2, update to V8.2 SP1 and then WinCC V7.4 SP1 Update 19 or later. The mitigation for every affected product is: "Disable the webserver or only enable it temporarily, when needed."
What does CISA say?
CISA advisory ICSA-21-315-03 (CSAF), "Siemens SIMATIC WinCC (Update E)", republishes Siemens' 9.9 score, CWE-22 and the same product list.
What should an owner do?
- Find every WinCC and PCS 7 station with the web server enabled, and switch it off where no one uses it.
- Install the fixed Update for each line, or the PCS 7 service pack or update collection Siemens names.
- Where the web server must stay on, allow it only from named clients and never from the office network or the internet.
The Siemens WinCC and PCS 7 guide covers the WinCC web components (WebNavigator, DataMonitor and the WinCC web server) as a family. CVE-2019-10916 and CVE-2019-10918 are other WinCC paths from limited access to command execution. The OT/ICS security guide for small manufacturers explains how to keep SCADA web services inside the cell.
CVE-2021-40358 is not in the CISA KEV catalog as of 2026-11-28 (catalog version 2026.11.27, 1,808 entries). FIRST EPSS gives it 0.01274, a percentile of 70.0, in the 2026-11-27 dataset (CISA KEV, FIRST EPSS).


Evidence
- NVD (read 2026-11-28): status Modified; published 2021-11-09; NVD Primary CVSS v2 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P; NVD CVSS v3.1 9.8 labelled Secondary; Siemens Secondary 9.9; CWE-22; CPEs simatic_pcs_7 8.2, 9.0, 9.1 and simatic_wincc 7.4 and 7.5 sub-versions. — NVD
- Siemens SSA-840188 CSAF version 7, 2023-04-11 (read 2026-11-28): CVSS v3.1 9.9 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H/E:P/RL:O/RC:C; fixes per product; mitigation disable the webserver or only enable it temporarily. — Siemens ProductCERT SSA-840188
- CISA ICSA-21-315-03 (Update E) CSAF (read 2026-11-28): CVSS v3.1 9.9, CWE-22, same products. — CISA ICSA-21-315-03
- CVE record (read 2026-11-28): state PUBLISHED, assigner siemens, CNA CVSS v3.1 9.9, CWE-22. — CVE.org
- Not in the CISA KEV catalog, catalog version 2026.11.27, 1,808 entries, checked 2026-11-28. — CISA KEV
- EPSS 0.01274, percentile 0.69978, dataset 2026-11-27, read 2026-11-28. — FIRST EPSS

Related advisories
Sources
Frequently asked questions
Why does this page show 7.5 when Siemens says 9.9?
NVD's only Primary metric for CVE-2021-40358 is CVSS v2 7.5. NVD's own CVSS v3.1 9.8 is labelled Secondary, and Siemens' CVSS v3.1 9.9 is the CNA score, so the page shows NVD's Primary 7.5 and names the other two.
Which WinCC versions fix CVE-2021-40358?
Siemens SSA-840188 lists WinCC V7.4 SP1 Update 19, V7.5 SP2 Update 5, V15 SP1 Update 7, V16 Update 5 and V17 Update 2, each or later, plus PCS 7 V9.1 SP1, V9.0 SP3 UC04 and, for V8.2, V8.2 SP1 with WinCC V7.4 SP1 Update 19.
What is the workaround?
Siemens' mitigation is to disable the web server, or only enable it temporarily when it is needed.
Is CVE-2021-40358 in the CISA KEV catalog?
No, not as of 2026-11-28 (catalog version 2026.11.27, 1,808 entries). FIRST EPSS rates it 0.01274 (percentile 70.0) in the 2026-11-27 dataset.
Questions about this page?