CyberSecBulletin
CVE-2025-40943NVD status: Awaiting Analysis

SIMATIC Drive Controller CPU 1504D TF: Improper Neutralization of Directives in Dynamically Evaluated Code

CVE-2025-40943 is a critical-severity improper neutralization of directives in dynamically evaluated code vulnerability in SIMATIC Drive Controller CPU 1504D TF from Siemens, with a CVSS 3.1 base score of 9.6 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, but only if a user takes part, for example by opening a link or file. The record lists version V3.1.6 as the first without the flaw, so updating SIMATIC Drive Controller CPU 1504D TF to that release or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.55% chance of exploitation within 30 days, which is low compared with other CVEs.

Patch this week

Critical severity: a successful attack would have severe impact.

What to do

  1. Update SIMATIC Drive Controller CPU 1504D TF to V3.1.6 or a later version.
  2. Update SIMATIC Drive Controller CPU 1507D TF to V3.1.6 or a later version.
  3. Update SIMATIC ET 200SP CPU 1510SP F-1 PN to V2.9.9 or V4.1.2, whichever matches your release line, or a later version.
  4. Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
  5. Because the attack needs a user to take part, warn users about unexpected links and files related to this product until it is patched.

Affected products and versions

VendorProductAffected versionsFixed in
SiemensSIMATIC Drive Controller CPU 1504D TFbefore V3.1.6V3.1.6
SiemensSIMATIC Drive Controller CPU 1507D TFbefore V3.1.6V3.1.6
SiemensSIMATIC ET 200SP CPU 1510SP F-1 PNbefore V2.9.9; before V4.1.2V2.9.9, V4.1.2
SiemensSIMATIC ET 200SP CPU 1510SP-1 PNbefore V2.9.9; before V4.1.2V2.9.9, V4.1.2
SiemensSIMATIC ET 200SP CPU 1512SP F-1 PNbefore V2.9.9; before V4.1.2V2.9.9, V4.1.2
SiemensSIMATIC ET 200SP CPU 1512SP-1 PNbefore V2.9.9; before V4.1.2V2.9.9, V4.1.2
SiemensSIMATIC ET 200SP CPU 1514SP F-2 PNbefore V4.1.2V4.1.2
SiemensSIMATIC ET 200SP CPU 1514SP-2 PNbefore V4.1.2V4.1.2
SiemensSIMATIC ET 200SP CPU 1514SPT F-2 PNbefore V4.1.2V4.1.2
SiemensSIMATIC ET 200SP CPU 1514SPT-2 PNbefore V4.1.2V4.1.2
SiemensSIMATIC ET 200SP Open Controller CPU 1515SP PC (incl. SIPLUS variants)all versionsNot stated
SiemensSIMATIC ET 200SP Open Controller CPU 1515SP PC2 (incl. SIPLUS variants) V2 CPUs - Windows OSall versionsNot stated
SiemensSIMATIC ET 200SP Open Controller CPU 1515SP PC2 (incl. SIPLUS variants) V3 CPUs - Industrial OSall versionsNot stated
SiemensSIMATIC ET 200SP Open Controller CPU 1515SP PC2 (incl. SIPLUS variants) V3 CPUs - Windows OSall versionsNot stated
SiemensSIMATIC ET 200SP Open Controller CPU 1515SP PC3 V4 CPUsall versionsNot stated
SiemensSIMATIC S7-1500 CPU 1511-1 PNall versions; before V2.9.9; before V4.1.2V2.9.9, V4.1.2
SiemensSIMATIC S7-1500 CPU 1511C-1 PNbefore V2.9.9; before V4.1.2V2.9.9, V4.1.2
SiemensSIMATIC S7-1500 CPU 1511F-1 PNbefore V2.9.9; before V4.1.2V2.9.9, V4.1.2
SiemensSIMATIC S7-1500 CPU 1511T-1 PNbefore V2.9.9; before V4.1.2V2.9.9, V4.1.2
SiemensSIMATIC S7-1500 CPU 1511TF-1 PNbefore V2.9.9; before V4.1.2V2.9.9, V4.1.2
SiemensSIMATIC S7-1500 CPU 1512C-1 PNbefore V2.9.9; before V4.1.2V2.9.9, V4.1.2
SiemensSIMATIC S7-1500 CPU 1513-1 PNbefore V2.9.9; before V4.1.2V2.9.9, V4.1.2
SiemensSIMATIC S7-1500 CPU 1513F-1 PNbefore V2.9.9; before V4.1.2V2.9.9, V4.1.2
SiemensSIMATIC S7-1500 CPU 1513pro F-2 PNbefore V4.1.2V4.1.2
SiemensSIMATIC S7-1500 CPU 1513pro-2 PNbefore V4.1.2V4.1.2

Version data comes from the organisation that assigned the CVE; 35 further products are omitted here. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
NetworkCan be exploited remotely over a network, including the internet.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
NoneNo account or login is needed.
User interaction
RequiredA user must take an action such as opening a file or link.
Scope
ChangedThe attack can reach beyond the vulnerable component into other systems.
Confidentiality
HighAll data handled by the component can be read.
Integrity
HighData or code can be modified at will.
Availability
HighThe component can be taken down completely.

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H. Scored by CNA (siemens.com).

Scoring systemScoreSeverityScored by
CVSS 4.09.4CriticalCNA (siemens.com)
CVSS 3.19.6CriticalCNA (siemens.com)

Official description

Affected devices do not properly sanitize contents of trace files. This could allow an attacker to inject code through social engineering an authorized user, who has the function right "Read diagnostics", to import a specially crafted trace file. The malicious trace file is insufficiently sanitized and malicious code could be executed in the clients browser session and trigger PLC operations via the webserver that the legitimate user is authorized to perform.

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Improper Neutralization of Directives in Dynamically Evaluated Code

The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. eval).

How developers prevent this class of flaw

  • If possible, refactor your code so that it does not need to use eval() at all.
  • For Python programs, it is frequently encouraged to use the ast.literal_eval() function instead of eval, since it is intentionally designed to avoid executing code. However, an adversary could still cause excessive memory or stack consumption via deeply nested structures, so the python documentation discourages use of ast.literal_eval() on untrusted data.

More Improper Neutralization of Directives in Dynamically Evaluated Code vulnerabilities (CWE-95)

Timeline

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
  3. Record last changed materially (score, affected products, status or references).

References

Other vulnerabilities in SIMATIC Drive Controller CPU 1504D TF

All SIMATIC Drive Controller CPU 1504D TF vulnerabilities

Recent Improper Neutralization of Directives in Dynamically Evaluated Code vulnerabilities

Spotted an error? Tell us.