CVE-2021-40359

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

7.7 high EPSS 1.17%

Published 9 Nov 2021 Updated 4 Aug 2024 CNA: siemens

Description

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.

Severity (CVSS)

7.7 high CVSS 3.1 from siemens (CNA)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N/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 none, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 1.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 68.4% 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
OpenPCS 7 V8.2
affected All versions
Other versions: unknown
OpenPCS 7 V9.0
affected All versions < V9.0 Upd4
Other versions: unknown
OpenPCS 7 V9.1
affected All versions
Other versions: unknown
SIMATIC BATCH V8.2
affected All versions
Other versions: unknown
SIMATIC BATCH V9.0
affected All versions
Other versions: unknown
SIMATIC BATCH V9.1
affected All versions
Other versions: unknown
SIMATIC NET PC Software V14
affected All versions
Other versions: unknown
SIMATIC NET PC Software V15
affected All versions
Other versions: unknown
SIMATIC NET PC Software V16
affected All versions < V16 Update 6
Other versions: unknown
SIMATIC NET PC Software V17
affected All versions < V17 SP1
Other versions: unknown
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 Route Control V8.2
affected All versions
Other versions: unknown
SIMATIC Route Control V9.0
affected All versions
Other versions: unknown
SIMATIC Route Control V9.1
affected All versions
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 OpenPCS 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-40359 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.