CVE-2021-40358
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedA 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceA path traversal vulnerability exists in the web server components of SIMATIC PCS 7 and WinCC. The file operation functions fail to properly sanitize special path elements, allowing attackers to use '..' sequences to escape the restricted directory and access, modify, or delete arbitrary files on the server filesystem.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data= 8.2= 9.0= 9.1= 7.4= 7.5= 15= 15.1= 16= 17CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- Low
- User interaction
- None
- Scope
- Changed
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify installed product and versionCheck Windows installed programs or registry for Siemens SIMATIC WinCC or SIMATIC PCS 7 version. In Windows, open Programs and Features or check HKEY_LOCAL_MACHINE\SOFTWARE\Siemens\Automation\InstalledProducts in the registry.Affected if The installed version matches 8.2, 9.0, or 9.1 for PCS 7; or 7.4, 7.5, 15, 15.1, 16, or 17 for WinCC.
-
Verify web server component is enabledCheck if the SIMATIC WinCC Web Navigator or PCS 7 Web Server service is running. Use Windows Services console (services.msc) or PowerShell: Get-Service | Where-Object {$_.Name -like '*Web*' -and $_.Name -like '*SIMATIC*'}.Affected if The web server component is installed and running.
-
Check web server configurationLocate the web server configuration files, typically in the WinCC or PCS 7 installation directory under Web\Config or similar web subdirectory. Inspect configuration files for any path settings or access controls.Affected if Web server is present and configured to allow file operations.
-
Review web server access logsExamine web server log files in the web server logs directory for requests containing '..' path sequences. Look for patterns like '../' or '..\' in HTTP requests.Affected if Log entries show path traversal attempts with '..' sequences targeting the web server.
The system is affected if it runs an affected version of SIMATIC PCS 7 (8.2, 9.0, or 9.1) or WinCC (7.4, 7.5, 15, 15.1, 16, or 17) with the web server component enabled.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedApply vendor-supplied patches: update SIMATIC WinCC to V15 SP1 Update 7/V16 Update 5/V17 Update 2/V7.4 SP1 Update 19/V7.5 SP2 Update 5 or later; update SIMATIC PCS 7 to V9.0 SP3 UC04 or V9.1 SP1 or later. If patching is not immediately possible, disable the web server component or restrict network access to trusted IPs.
SIMATIC WinCC: V7.4->V7.4 SP1 Update 19, V7.5->V7.5 SP2 Update 5, V15->V15 SP1 Update 7, V16->V16 Update 5, V17->V17 Update 2; SIMATIC PCS 7: V9.0->V9.0 SP3 UC04, V9.1->V9.1 SP1
- 1. Identify the exact installed version of SIMATIC PCS 7 or WinCC in your environment
- 2. For SIMATIC WinCC V7.4: Upgrade to V7.4 SP1 Update 19 or later
- 3. For SIMATIC WinCC V7.5: Upgrade to V7.5 SP2 Update 5 or later
- 4. For SIMATIC WinCC V15 and earlier: Upgrade to V15 SP1 Update 7 or later
- 5. For SIMATIC WinCC V16: Upgrade to V16 Update 5 or later
- 6. For SIMATIC WinCC V17: Upgrade to V17 Update 2 or later
- 7. For SIMATIC PCS 7 V9.0: Upgrade to V9.0 SP3 UC04 or later
- 8. For SIMATIC PCS 7 V9.1: Upgrade to V9.1 SP1 or later
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation8.0 h
- Implementation12.0 h
- Testing16.0 h
- Review / QA8.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $12,160.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2021-40358 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2021-40358 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data