CVE-2021-31893 in Siemens SIMATIC Step 7 and 7 more products
A vulnerability has been identified in SIMATIC PCS 7 V8.2 and earlier (All versions), SIMATIC PCS 7 V9.0 (All versions < V9.0 SP3), SIMATIC PDM (All versions < V9.2), SIMATIC STEP 7 V5.X (All versions < V5.6 SP2 HF3), SINAMICS STARTER (containing STEP 7 OEM version) (All versions < V5.4 HF2). The affected software contains a buffer overflow vulnerability while handling certain files that could allow a local attacker to trigger a denial-of-service condition or potentially lead to remote code execution.
Affects 8 products from 1 vendor. Description from NVD and MITRE.
Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Siemens | SIMATIC Step 7 (device and firmware) | < 5.6 SP2 HF3 |
| Siemens | Sinamics Starter (device and firmware) | < 5.4 HF2 |
| Siemens | SIMATIC Pdm (device and firmware) | < 9.2 |
| Siemens | SIMATIC Pcs (device and firmware) | < 9.0 SP3 |
| Siemens | Simatic Pcs7 | < 9.0 SP3 |
| Siemens | Simatic Pcs 7 Firmware | < 9.0 SP3 |
| Siemens | Simaticpcs 7 | < 9.0 SP3 |
Fix and vendor advisory
- SIMATIC PCS 7 V9.0: Update to V9.0 SP3 or later version
- SIMATIC PDM: Update to V9.2 or later version
- SIMATIC STEP 7 V5.X: Update to V5.6 SP2 HF3 or later version
- SINAMICS STARTER (containing STEP 7 OEM version): Update to V5.4 HF2 or later version
- Workaround: Only use project files from trusted sources
Source: ICSA-21-194-05
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Record details
| CVE ID | CVE-2021-31893 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-280328-H |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Published | 2021-07-13 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Compensating controls AI-drafted, review before use
Implement strict file integrity monitoring and access controls to prevent unauthorized modification of critical files. Regularly audit system logs for suspicious activity.
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.