CVE-2025-40943 Code injection in SIMATIC Drive Controller CPU 1504D TF
Attackers can execute malicious code in a user's browser via crafted trace files, triggering unauthorized PLC operations in Siemens SIMATIC devices.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2025-40943?
CVE-2025-40943 is a critical code injection vulnerability in Siemens SIMATIC Drive Controller CPU 1504D TF, published on 10 Mar 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
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.
Weakness: CWE-95
Which versions are affected by CVE-2025-40943?
How do I fix CVE-2025-40943?
No fix has been published for CVE-2025-40943 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2025-40943 being exploited?
There is no known exploitation of CVE-2025-40943 in the wild and no public exploit code.
Sources
Also known as GHSA-v7h2-5j7f-whwh.