CVE-2021-40358

Siemens SIMATIC PCS 7 V8.2: Improper Limitation of a Pathname to a Restricted Directory

9.9 critical EPSS 1.27%

Published 9 Nov 2021 Updated 4 Aug 2024 CNA: siemens

Description

A 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.

Severity (CVSS)

9.9 critical CVSS 3.1 from siemens (CNA)
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
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
changed: the damage reaches other components, such as the host of a container or other users
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 1.27%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 70.7% of all scored CVEs. Scores of 1 Dec 2026.

Weakness

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

Affected products

As the CNA lists them.

ProductVersions
SIMATIC PCS 7 V8.2
affected All versions
Other versions: unknown
SIMATIC PCS 7 V9.0
affected All versions < V9.0 SP3 UC04
Other versions: unknown
SIMATIC PCS 7 V9.1
affected All versions < V9.1 SP1
Other versions: unknown
SIMATIC WinCC V15 and earlier
affected All versions < V15 SP1 Update 7
Other versions: unknown
SIMATIC WinCC V16
affected All versions < V16 Update 5
Other versions: unknown
SIMATIC WinCC V17
affected All versions < V17 Update 2
Other versions: unknown
SIMATIC WinCC V7.4
affected All versions < V7.4 SP1 Update 19
Other versions: unknown
SIMATIC WinCC V7.5
affected All versions < V7.5 SP2 Update 5
Other versions: unknown

Is my server affected?

This CVE is in SIMATIC PCS 7 V8.2 of Siemens, which Linux distributions and language package managers do not ship. The advisory of the vendor is in the references below.

Vulnpocalypse matches the package lists of Linux servers and containers against the Trivy vulnerability database, which does not list this product.

References

Other references

Source: the record CVE-2021-40358 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.