CVE-2025-40604 Code injection in Email Security
Attackers with datastore access can modify root filesystem images to gain persistent arbitrary code execution on SonicWall Email Security appliances.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-40604?
CVE-2025-40604 is a medium-severity code injection vulnerability in SonicWall Email Security, published on 20 Nov 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Download of Code Without Integrity Check Vulnerability in the SonicWall Email Security appliance loads root filesystem images without verifying signatures, allowing attackers with VMDK or datastore access to modify system files and gain persistent arbitrary code execution.
Weakness: CWE-494
Which versions are affected by CVE-2025-40604?
It affects 5 products.
Products include Sonicwall Email Security Appliance 5000 Firmware, Sonicwall Email Security Appliance 5050 Firmware, Sonicwall Email Security Appliance 7000 Firmware, Sonicwall Email Security Appliance 7050 Firmware, Sonicwall Email Security Appliance 9000 Firmware.
How do I fix CVE-2025-40604?
No fix has been published for CVE-2025-40604 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-40604 being exploited?
There is no known exploitation of CVE-2025-40604 in the wild and no public exploit code.
Other vulnerabilities in SonicWall Email Security
Sources
Also known as GHSA-pcxg-qcmm-jh7x.