CVE-2025-40937 Command injection in SIMATIC CN 4100
An authenticated attacker can execute arbitrary code with limited privileges via improper input validation in the REST API of SIMATIC CN 4100 devices.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-40937?
CVE-2025-40937 is a high-severity command injection vulnerability in Siemens SIMATIC CN 4100, published on 9 Dec 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
A vulnerability has been identified in SIMATIC CN 4100 (All versions < V4.0.1). The affected application do not properly validate input parameters in its REST API, resulting in improper handling of unexpected arguments. This could allow an authenticated attacker to execute arbitrary code with limited privileges.
Weakness: CWE-77
Which versions are affected by CVE-2025-40937?
It affects 1 product.
Products include Siemens Simatic Cn 4100 Firmware.
How do I fix CVE-2025-40937?
No fix has been published for CVE-2025-40937 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2025-40937 being exploited?
There is no known exploitation of CVE-2025-40937 in the wild and no public exploit code.
Other vulnerabilities in Siemens SIMATIC CN 4100
Sources
Also known as GHSA-f729-p9c9-fm58.