CVE-2021-40359 in Siemens SIMATIC WinCC and 5 more products
A vulnerability has been identified in OpenPCS 7 V8.2 (All versions), OpenPCS 7 V9.0 (All versions < V9.0 Upd4), OpenPCS 7 V9.1 (All versions), SIMATIC BATCH V8.2 (All versions), SIMATIC BATCH V9.0 (All versions), SIMATIC BATCH V9.1 (All versions), SIMATIC NET PC Software V14 (All versions), SIMATIC NET PC Software V15 (All versions), SIMATIC NET PC Software V16 (All versions < V16 Update 6), SIMATIC NET PC Software V17 (All versions < V17 SP1), 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 Route Control V8.2 (All versions), SIMATIC Route Control V9.0 (All versions), SIMATIC Route Control V9.1 (All versions), 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). When downloading files, 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 unexpected critical files.
Affects 6 products from 1 vendor. Description from NVD and MITRE.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Siemens | SIMATIC WinCC | 15 16 17 < 7.5 SP2 Update 5 |
| Siemens | SIMATIC Pcs 7 | < 9.1 SP1 |
| Siemens | WinCC | 15 16 17 < 7.5 SP2 Update 5 |
| Siemens | SIMATIC Batch | 8.2 9.0 9.1 |
| Siemens | SIMATIC Net Pc | 14 15 16 17 |
| Siemens | SIMATIC Route Control | 8.2 9.0 9.1 |
| Siemens | Openpcs 7 | < 9.0 Upd4 |
| Siemens | Simatic Net Pc-Software | < 17 SP1 |
| Siemens | Simatic Net Pc Software Firmware | < 17 SP1 |
Fix and vendor advisory
- SIMATIC PCS 7 V8.2: Update to V8.2 SP1; then update SIMATIC WinCC to V7.4 SP1 Update 19 or later version to fix CVE-2021-40358 and CVE-2021-40364
- SIMATIC WinCC V15 and earlier: Update to V15 SP1 Update 7 or later version
- SIMATIC WinCC V16: Update to V16 Update 5 or later version
- SIMATIC WinCC V17: Update to V17 Update 2 or later version
- SIMATIC WinCC V7.4: Update to V7.4 SP1 Update 19 or later version
- SIMATIC WinCC V7.5: Update to V7.5 SP2 Update 5 or later version
- SIMATIC PCS 7 V9.1: Update to V9.1 SP1 or later version
- SIMATIC PCS 7 V9.0: Update to V9.0 SP3 UC04 or later version to fix CVE-2021-40358 and CVE-2021-40364
- OpenPCS 7 V9.0: Update to V9.0 Upd4 or later version; V9.0 Upd4 is bundled in PCS 7 V9.0 SP3 UC04
- OpenPCS 7 V9.1, SIMATIC BATCH V9.1, SIMATIC Route Control V9.1: See remediation for SIMATIC PCS 7 V9.1
Source: ICSA-21-315-03
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Record details
| CVE ID | CVE-2021-40359 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-073468-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N |
| Published | 2021-11-09 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Compensating controls AI-drafted, review before use
Implement strict input validation and sanitization for all file path inputs to prevent directory traversal attacks. Use a whitelist approach to restrict file access to specific directories.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Check devices from your own code or AI agent: free 14-day trial
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.